Documentation
¶
Overview ¶
@sk-task database-tools#T2.1: SQLiteSearchTool example @sk-task database-tools#T2.2: PGSearchTool example @sk-task database-tools#T3.1: MySQLSearchTool example @sk-task database-tools#T3.2: NL2SQLTool example
This example demonstrates all four database tools without requiring external databases by using SQLite :memory: mode.
- SQLiteSearchTool — query an in-memory SQLite database
- PGSearchTool — shows connection error handling (no PG server)
- MySQLSearchTool — shows connection error handling (no MySQL server)
- NL2SQLTool — uses a mock LLM to translate a question into SQL
Usage:
go run ./examples/features/database-tools/
Click to show internal directories.
Click to hide internal directories.