internal/

directory
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2026 License: MIT

Directories

Path Synopsis
Package agents installs bundled mysql-cli skills into AI agents in each agent's native format.
Package agents installs bundled mysql-cli skills into AI agents in each agent's native format.
Package cli wires cobra subcommands, global flags, and exit-code mapping.
Package cli wires cobra subcommands, global flags, and exit-code mapping.
Package config loads named datasources from config.toml, builds a datasource from MYSQL_* environment variables (compatible with the original MCP), and resolves a final datasource with precedence: CLI overrides > env > file > default.
Package config loads named datasources from config.toml, builds a datasource from MYSQL_* environment variables (compatible with the original MCP), and resolves a final datasource with precedence: CLI overrides > env > file > default.
Package conn builds a MySQL DSN from a config.Datasource and opens a pooled *sql.DB connection.
Package conn builds a MySQL DSN from a config.Datasource and opens a pooled *sql.DB connection.
Package format renders result.Result values in json/table/csv/tsv and builds the JSON success/error envelopes consumed by AI agents.
Package format renders result.Result values in json/table/csv/tsv and builds the JSON success/error envelopes consumed by AI agents.
Package integration provides integration tests that run against a real MySQL container via testcontainers-go.
Package integration provides integration tests that run against a real MySQL container via testcontainers-go.
Package query executes SQL through a conn.Pool, enforcing the safety gate, single-statement rule, optional row limit, and context timeout.
Package query executes SQL through a conn.Pool, enforcing the safety gate, single-statement rule, optional row limit, and context timeout.
Package repl provides a minimal interactive shell for human debugging.
Package repl provides a minimal interactive shell for human debugging.
Package result defines the shared query result type exchanged between the query/schema packages (producers) and the format/cli packages (consumers).
Package result defines the shared query result type exchanged between the query/schema packages (producers) and the format/cli packages (consumers).
Package safety classifies SQL statements, enforces the read-only/write/ddl gate, validates identifiers, detects multi-statement input, and flags destructive operations.
Package safety classifies SQL statements, enforces the read-only/write/ddl gate, validates identifiers, detects multi-statement input, and flags destructive operations.
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.
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.
Package skillscheck compares installed mysql-cli skills (e.g.
Package skillscheck compares installed mysql-cli skills (e.g.

Jump to

Keyboard shortcuts

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