A MySQL database dumper for Node.js that exports schema and data into SQL files. Version 0.0.1, released as a utility by the Antares SQL project. Supports both mysql and mysql2 clients. Key differentiators: per-table control over structure/content, optional compression, configurable INSERT chunking, and support for views, triggers, routines, functions, and schedulers. Stable but early-stage, with integration tests using Docker.
npm install antares-mysql-dumperNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Connects to a MySQL database and dumps its entire schema and data to a file.
Ensure the connection object is from mysql2 (not mysql2/promise) or adjust type assertions.
Use an absolute path or ensure the working directory is as expected.
Avoid using compress until it is officially documented and tested.
Use mysql2.createConnection() directly, not mysql2.createConnectionPool() or the promise-based API.
Run npm install antares-mysql-dumper or yarn add antares-mysql-dumper.