mysql-schema-ts
JSON →mysql-schema-ts (v1.9.1) is a CLI tool and library that connects to a MySQL database and generates TypeScript interfaces from its schema. It provides simple, opinionated defaults with no configuration files, focusing on MySQL only. It can infer entire schemas or specific tables, supports CLI usage via npx, and also offers programmatic use with inferSchema and inferTable functions. Unlike alternatives like schemats, it avoids namespaces and uses inline enums. The package is stable but in maintenance mode with infrequent updates.
Resources
packagemysql-schema-ts ↗