MySQL provider for zod-dbs, enabling type-safe database schema generation from MySQL or MariaDB databases. Current stable version is 1.0.5 with regular updates. It uses mysql2 for connectivity and introspects via information_schema.columns, supporting both MySQL and MariaDB. Key differentiator: integrates with zod-dbs to generate Zod schemas directly from database schema, providing end-to-end type safety without manual schema definitions.
npm install zod-dbs-mysqlNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Generates Zod schemas from a MySQL database using the zod-dbs-mysql provider.
Install mysql2: npm install mysql2
For views, consider manual schema definitions or feature request.
Use --schema-name option in CLI or schemaName in programmatic config.
npm install mysql2
Provide correct host via connection-string or --host option.
Verify username, password, and database permissions.