Node.js package (v0.4.4) that extracts a MySQL database schema into JSON files for tables, foreign keys, indexes, and issues. Designed to facilitate migrations by outputting structured schema representations, including column types, constraints, and known naming/type issues. The library supports a range of MySQL column types and provides filtering options via callback. It offers minimal dependencies and a straightforward API. Development appears to be in maintenance mode with no recent updates.
npm install mysql-extractorNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Connects to a MySQL database, extracts schema info, and writes JSON files for tables, keys, indexes, and issues.
Consider migrating to 'mysql2' for better security and features. The package itself may need to be forked or replaced.
Wrap calls in a synchronous context or use a different library that supports promises.
Create custom .d.ts or use // @ts-ignore.
Replace dependency with 'mysql2' and adjust the connection options accordingly.
Run: npm install mysql
Use: const MySqlExtractor = require('mysql-extractor');