Files
genai-toolbox/docs/en/resources/sources/sqlite.md
Ajaykumar Yadav 681c2b4f3a feat(prebuilt/sqlite): prebuilt tools for the sqlite. (#1227)
## Description
Prebuilt tools for the sqlite
- [x] `list_table` with simple and detailed(trigger,index,column) for
each table
- [x]  `execute-sql` for executing any SQL statement for sqlite.
- [x]  added tests and done required changes in config.
- [x] **Documentation update**:Done

## PR Checklist

- [x] Make sure you reviewed

[CONTRIBUTING.md](https://github.com/googleapis/genai-toolbox/blob/main/CONTRIBUTING.md)
- [x] Make sure to open an issue as a

[bug/issue](https://github.com/googleapis/langchain-google-alloydb-pg-python/issues/new/choose)
before writing your code! That way we can discuss the change, evaluate
  designs, and agree on the general idea
- [x] Ensure the tests and linter pass
- [x] Code coverage does not decrease (if any source code was changed)
- [ ] Appropriate docs were updated (if necessary)
- [x] Make sure to add `!` if this involves a breaking change

🛠️ Fixes: https://github.com/googleapis/genai-toolbox/issues/1226

---------

Co-authored-by: Averi Kitsch <akitsch@google.com>
2025-09-15 10:09:34 +05:30

2.4 KiB

title, linkTitle, type, weight, description
title linkTitle type weight description
SQLite SQLite docs 1 SQLite is a C-language library that implements a small, fast, self-contained, high-reliability, full-featured, SQL database engine.

About

SQLite is a software library that provides a relational database management system. The lite in SQLite means lightweight in terms of setup, database administration, and required resources.

SQLite has the following notable characteristics:

  • Self-contained with no external dependencies
  • Serverless - the SQLite library accesses its storage files directly
  • Single database file that can be easily copied or moved
  • Zero-configuration - no setup or administration needed
  • Transactional with ACID properties

Available Tools

Pre-built Configurations

Requirements

Database File

You need a SQLite database file. This can be:

  • An existing database file
  • A path where a new database file should be created
  • :memory: for an in-memory database

Example

sources:
    my-sqlite-db:
        kind: "sqlite"
        database: "/path/to/database.db"

For an in-memory database:

sources:
    my-sqlite-memory-db:
        kind: "sqlite"
        database: ":memory:"

Reference

Configuration Fields

field type required description
kind string true Must be "sqlite".
database string true Path to SQLite database file, or ":memory:" for an in-memory database.

Connection Properties

SQLite connections are configured with these defaults for optimal performance:

  • MaxOpenConns: 1 (SQLite only supports one writer at a time)
  • MaxIdleConns: 1