Documentation
¶
Overview ¶
Package db2toon extracts database schemas into a database-neutral model and optionally renders that model as TOON.
Provide exactly one of Request.DB and Request.Dump. Dump files are parsed offline and are never executed.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Error ¶
type Error struct {
Operation string
Dialect string
Source string
Line int
Statement int
Err error
}
Error describes an extraction failure without including a DSN, password, dump path, or dump contents in its rendered message.
type Options ¶
type Options struct {
Schemas []string
IncludeViews bool
IncludePartitioned bool
ExampleSample int
ExampleSampleOrdered bool
ExcludeTables []string
ExcludeExampleTables []string
ExcludeExampleFields []string
Seed int64
}
Options controls schema selection and bounded example extraction.
Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
db2toon
command
|
|
|
db2toon-mcp
command
|
|
|
pg2toon
command
|
|
|
internal
|
|
|
database/cockroachdb
Package cockroachdb extracts CockroachDB catalogs through its PostgreSQL-compatible API.
|
Package cockroachdb extracts CockroachDB catalogs through its PostgreSQL-compatible API. |
|
database/duckdb
Package duckdb extracts DuckDB catalogs into the canonical schema model.
|
Package duckdb extracts DuckDB catalogs into the canonical schema model. |
|
database/mongodb
Package mongodb contains the MongoDB database adapter.
|
Package mongodb contains the MongoDB database adapter. |
|
database/mysql
Package mysql extracts MySQL and MariaDB relational catalogs.
|
Package mysql extracts MySQL and MariaDB relational catalogs. |
|
database/sqlite
Package sqlite contains the SQLite database adapter.
|
Package sqlite contains the SQLite database adapter. |
|
mcp
Package mcp implements the MCP JSON-RPC surface used by db2toon.
|
Package mcp implements the MCP JSON-RPC surface used by db2toon. |
|
service
Package service contains the database extraction orchestration shared by local commands and LLM tool adapters.
|
Package service contains the database extraction orchestration shared by local commands and LLM tool adapters. |
|
pkg
|
|
|
toon
Package toon renders a database-neutral schema model as TOON text.
|
Package toon renders a database-neutral schema model as TOON text. |
Click to show internal directories.
Click to hide internal directories.