database-tools

command
v0.9.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 22, 2026 License: MIT Imports: 4 Imported by: 0

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.

  1. SQLiteSearchTool — query an in-memory SQLite database
  2. PGSearchTool — shows connection error handling (no PG server)
  3. MySQLSearchTool — shows connection error handling (no MySQL server)
  4. NL2SQLTool — uses a mock LLM to translate a question into SQL

Usage:

go run ./examples/features/database-tools/

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL