Documentation
¶
Overview ¶
Package schema implements the read-only exploration commands that mirror the original MCP's get_schema_info, get_table_sample, list_resources and read_resource. All identifiers are validated before interpolation.
Index ¶
- func Analyze(ctx context.Context, pool *conn.Pool, table string) (result.Result, error)
- func Databases(ctx context.Context, pool *conn.Pool) (result.Result, error)
- func Explore(ctx context.Context, pool *conn.Pool) (result.Result, error)
- func Read(ctx context.Context, pool *conn.Pool, table string) (result.Result, error)
- func Sample(ctx context.Context, pool *conn.Pool, table string, limit int) (result.Result, error)
- func Schema(ctx context.Context, pool *conn.Pool, table string) (result.Result, error)
- func Tables(ctx context.Context, pool *conn.Pool, db string) (result.Result, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Analyze ¶
Analyze returns a combined view: schema columns followed by a 5-row sample. Rows are tagged by section in the first column so an agent can distinguish.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.