Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/soulman-is-good/mysqldump
Node.JS streamed implementation of unix utility `mysqldump`
https://github.com/soulman-is-good/mysqldump
Last synced: 2 months ago
JSON representation
Node.JS streamed implementation of unix utility `mysqldump`
- Host: GitHub
- URL: https://github.com/soulman-is-good/mysqldump
- Owner: soulman-is-good
- Created: 2015-10-07T07:48:36.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2016-07-16T22:52:10.000Z (over 8 years ago)
- Last Synced: 2023-09-17T05:06:15.812Z (over 1 year ago)
- Language: JavaScript
- Size: 117 KB
- Stars: 6
- Watchers: 2
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
mysqldump
============Node.js implementation of `mysqldump` utility based on `Readable` stream.
Install
---------```sh
npm install mysqldump-stream
```Usage
-------```javascript
var Mysqldump = require('mysqldump-stream');
var mysqldump = new Mysqldump('mydatabase', {
gzip: true, //default: false
host: 'localhost', //default
port: 3306, //default
user: 'root', //default: process.env.USER || 'root'
password: 'mypassword' //default: false
});
var fs = require('fs');
mysqldump.start();
mysqldump.pipe(fs.createWriteStream('./mydatabase.sql.gz'));
```