A MySQL driver for the dbfixtures package, providing an abstraction layer over the mysql package to facilitate handling database fixtures for testing. Current stable version is 1.2.0. It supports Node.js v8 or higher (with harmony_promise_finally flag for v8 and v9). It can be used standalone or with dbfixtures. Key differentiator: integrates seamlessly with the dbfixtures ecosystem, offering truncate, insertFixtures, and close methods while handling foreign key constraints. Not actively maintained (last release appears old).
npm install dbfixtures-mysql-driverNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates how to create a MySQL driver, set it on dbfixtures, truncate tables, insert fixtures, and close the connection.
Use Node.js v10+ or run with --harmony_promise_finally flag.
Upgrade to 1.1.0+ and use Node v8+.
Ensure build tools (e.g., gcc, python) are installed for native modules.
Switch to dbfixtures-mysql2-driver if available or use mysql2 directly.
Validate connection options before calling create().
Use `const fixturesMysqlDriver = require('dbfixtures-mysql-driver')` (no .default) or ESM import.Run `npm install mysql` as a dependency.
Check connection options (host, port, user, password) and ensure MySQL server is running.
Upgrade to Node v10+ or run with --harmony_promise_finally flag.