A vinyl adapter for gulp-etl that extracts data from MySQL databases using the mysql2 driver and produces Message Stream JSON Lines compliant with the Singer specification. Version 1.0.7 is the current stable release; the project is in maintenance mode with no recent commits. Unlike typical gulp plugins, this is a vinyl adapter that acts as a tap (source) for database records. It uses the mysql2 library for async queries and supports the gulp-data API for dynamic configuration. A dest (target) function is planned but not yet implemented.
npm install gulp-etl-mysql-adapterNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates extracting data from MySQL using mysqlAdapter.src(), converting to CSV via gulp-etl-target-csv, and writing to disk.
Use src() only. For writing to databases, consider combining with other gulp-etl targets like target-csv or target-json.
Pass any string (e.g., 'output.jsonl') as the first argument; it becomes the virtual file name in the stream.
Upgrade Node.js to version 10+.
Ensure config has both 'sql' (string) and 'connection' (object with host, user, password, database).
Run 'npm install gulp-etl-mysql-adapter'
Use: const mysqlAdapter = require('gulp-etl-mysql-adapter'); then mysqlAdapter.src(...)Verify the connection object has host, user, password, database.