Requires the appropriate database driver as a peer dependency:
better-sqlite3, pg, or mysql2.Quick Start
Config
Tools
Peer Dependencies
Install the driver for your database:Security
The SQL toolkit includes built-in protections:- Read-only mode (default): Only
SELECT,SHOW,DESCRIBE,EXPLAIN,PRAGMA, andWITHqueries are permitted. - Parameterized queries: Schema introspection (
sql_describe) uses parameterized queries ($1bind parameters) for PostgreSQL to prevent SQL injection. - Table name validation: Table names are validated against
^[a-zA-Z_]\w*$to reject injection attempts.