Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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`

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'));
```