A project guide for a Go command-line tool that lets AI agents query and modify MySQL databases through shell commands. MySQL is a database system, and a command-line tool is operated by typing commands rather than using a graphical interface.
Run SQL with mysql-cli: SELECT queries, DML (INSERT/UPDATE/DELETE), DDL (CREATE/ALTER/DROP), and multi-statement atomic transactions. Use when the user asks to run SQL, query data, insert/update/delete rows, execute transactions, or perform DDL. Read-only JSON output by default, stable exit codes, and tiered gating…
Explore MySQL schema with mysql-cli: list databases/tables, table structure, sample/read rows, database overview, one-shot analyze. Use when the user asks about table structures, columns, types, indexes, listing tables/databases, or sampling data. All read-only; no safety flags needed. For DML/DDL/transactions use the…