{"_id":"mysqldump","_rev":"41-97bffc074feb59b894a7a1d083f19204","name":"mysqldump","description":"Create a DUMP from MySQL","dist-tags":{"latest":"3.2.0","next":"3.0.0"},"versions":{"1.0.0":{"name":"mysqldump","version":"1.0.0","description":"Create a DUMP from MySQL","main":"index.js","scripts":{"test":"mocha test"},"repository":{"type":"git","url":"https://github.com/webcaetano/mysqldump"},"keywords":["backup","mysql","mysql-dump","dump","restore","database","backup","database"],"author":{"name":"Andre Caetano"},"license":"MIT","bugs":{"url":"https://github.com/webcaetano/mysqldump/issues"},"homepage":"https://github.com/webcaetano/mysqldump","dependencies":{"async":"^1.4.2","lodash":"^3.10.1","mq-node":"^1.0.7"},"devDependencies":{"chai":"^3.2.0","mocha":"^2.3.2"},"gitHead":"3277826af634fd1e282b923153f800e1df280bac","_id":"mysqldump@1.0.0","_shasum":"3607842a3775531e47dfb0475f25042b6d756ff5","_from":".","_npmVersion":"2.5.1","_nodeVersion":"0.12.0","_npmUser":{"name":"webcaetano","email":"dezaodoido@gmail.com"},"dist":{"shasum":"3607842a3775531e47dfb0475f25042b6d756ff5","tarball":"https://registry.npmjs.org/mysqldump/-/mysqldump-1.0.0.tgz","integrity":"sha512-uANcDYUgj6TbBiJfIWm/3vANAOpa7fC5vgQrmGOZzA7sMphRATzjYJEg9xrKR2Vv7+huJV6oIgbA9/Ch4mvBJw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHA73mb915SdseyD0gSuFjLIebS4iRr4mVoY5fK0k0xUAiBaykYtHSqUzQG22iYxifKzv28s1jPxzi5ue0fNJeiDyQ=="}]},"maintainers":[{"name":"webcaetano","email":"dezaodoido@gmail.com"}],"directories":{}},"1.0.1":{"name":"mysqldump","version":"1.0.1","description":"Create a DUMP from MySQL","main":"index.js","scripts":{"test":"mocha test"},"repository":{"type":"git","url":"https://github.com/webcaetano/mysqldump"},"keywords":["backup","mysql","mysql-dump","dump","restore","database","backup","database"],"author":{"name":"Andre Caetano"},"license":"MIT","bugs":{"url":"https://github.com/webcaetano/mysqldump/issues"},"homepage":"https://github.com/webcaetano/mysqldump","dependencies":{"async":"^1.4.2","lodash":"^3.10.1","mq-node":"^1.0.7"},"devDependencies":{"chai":"^3.2.0","mocha":"^2.3.2"},"gitHead":"497dc6daadd5b5192440980b45d2ec5c45b50cd6","_id":"mysqldump@1.0.1","_shasum":"ccc6bd5980cec03bbea37bf09a406bb8a1072729","_from":".","_npmVersion":"2.5.1","_nodeVersion":"0.12.0","_npmUser":{"name":"webcaetano","email":"dezaodoido@gmail.com"},"dist":{"shasum":"ccc6bd5980cec03bbea37bf09a406bb8a1072729","tarball":"https://registry.npmjs.org/mysqldump/-/mysqldump-1.0.1.tgz","integrity":"sha512-3pdD22C6unpvKSAy53Hip7jRgL01pXcOJqLqB2XeGHSga1a/j2629RLE/bUCV7jeqxo1SmPanuylHj85HUcRsw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDLAa28K7xmW557cbYoB3giYWM/mPPZLu8YarBA0ZYfAwIhAOtLIbugzFY+pqh53AyVlm4tMpOLIrLrLdj573Z/bb1p"}]},"maintainers":[{"name":"webcaetano","email":"dezaodoido@gmail.com"}],"directories":{}},"1.0.2":{"name":"mysqldump","version":"1.0.2","description":"Create a DUMP from MySQL","main":"index.js","scripts":{"test":"mocha test"},"repository":{"type":"git","url":"https://github.com/webcaetano/mysqldump"},"keywords":["backup","mysql","mysql-dump","dump","restore","database","backup","database"],"author":{"name":"Andre Caetano"},"license":"MIT","bugs":{"url":"https://github.com/webcaetano/mysqldump/issues"},"homepage":"https://github.com/webcaetano/mysqldump","dependencies":{"async":"^1.4.2","lodash":"^3.10.1","mq-node":"^1.0.7"},"devDependencies":{"chai":"^3.2.0","mocha":"^2.3.2"},"gitHead":"7b8f5d60c804629d441cdb6e45c2c6630fd23ad0","_id":"mysqldump@1.0.2","_shasum":"06262e5d556bb0bb59ec2bc753d3a55bc96fb4de","_from":".","_npmVersion":"2.5.1","_nodeVersion":"0.12.0","_npmUser":{"name":"webcaetano","email":"dezaodoido@gmail.com"},"dist":{"shasum":"06262e5d556bb0bb59ec2bc753d3a55bc96fb4de","tarball":"https://registry.npmjs.org/mysqldump/-/mysqldump-1.0.2.tgz","integrity":"sha512-oDMx0FFNuh2N4DE47J1olQVO7HubWEY4DOhMp4j/7yzTyVes3sB3MdhEiul7k1yToOipZu/H4j/q4bls8jnM3A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICgcBZTKhlg7vnvznBaH5GX2mDWtew3p1+h00cPosi8RAiEAqmcH18Wn4uEec92rp2No53+Xad8lWLUyiNSiC6ZRkTQ="}]},"maintainers":[{"name":"webcaetano","email":"dezaodoido@gmail.com"}],"directories":{}},"1.1.0":{"name":"mysqldump","version":"1.1.0","description":"Create a DUMP from MySQL","main":"index.js","scripts":{"test":"mocha test"},"repository":{"type":"git","url":"git+https://github.com/webcaetano/mysqldump.git"},"keywords":["backup","mysql","mysql-dump","dump","restore","database","backup","database"],"author":{"name":"Andre Caetano"},"license":"MIT","bugs":{"url":"https://github.com/webcaetano/mysqldump/issues"},"homepage":"https://github.com/webcaetano/mysqldump","dependencies":{"async":"^1.4.2","lodash":"^3.10.1","mq-node":"^1.0.7"},"devDependencies":{"chai":"^3.2.0","mocha":"^2.3.2"},"gitHead":"e6b66dc20a8d241bc2ca6834d9bf3ac2f02684ab","_id":"mysqldump@1.1.0","_shasum":"4b9e22cd822300a7e644989f6515533c2462e115","_from":".","_npmVersion":"2.14.9","_nodeVersion":"0.12.9","_npmUser":{"name":"webcaetano","email":"dezaodoido@gmail.com"},"dist":{"shasum":"4b9e22cd822300a7e644989f6515533c2462e115","tarball":"https://registry.npmjs.org/mysqldump/-/mysqldump-1.1.0.tgz","integrity":"sha512-ssg5LgcAWPJk38G4Jk8e9I/IVKjrc4OwV+LFvw2YQ/FCZr0FiQORIxGjfHHfRnSdA3Cy4t8ixohzuPs3lBhctw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAnhzPfL42dObMwVWQ7IHXjQplJgMYO/AaNgNCfObkPvAiB8VxcVnI18sE9JSprox7TorJU+0t127V3TeboknIW/Tw=="}]},"maintainers":[{"name":"webcaetano","email":"dezaodoido@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/mysqldump-1.1.0.tgz_1463684615012_0.6641001980751753"},"directories":{}},"1.1.1":{"name":"mysqldump","version":"1.1.1","description":"Create a DUMP from MySQL","main":"index.js","scripts":{"test":"mocha test"},"repository":{"type":"git","url":"git+https://github.com/webcaetano/mysqldump.git"},"keywords":["backup","mysql","mysql-dump","dump","restore","database","backup","database"],"author":{"name":"Andre Caetano"},"license":"MIT","bugs":{"url":"https://github.com/webcaetano/mysqldump/issues"},"homepage":"https://github.com/webcaetano/mysqldump","dependencies":{"async":"^1.4.2","lodash":"^3.10.1","mq-node":"^1.0.7"},"devDependencies":{"chai":"^3.2.0","mocha":"^2.3.2"},"gitHead":"6320e5fbc758756b39fd3cc9699277bea44f2e12","_id":"mysqldump@1.1.1","_shasum":"0dcec39591f96789df30165f48f7bb24e29b2827","_from":".","_npmVersion":"3.8.9","_nodeVersion":"6.2.0","_npmUser":{"name":"webcaetano","email":"dezaodoido@gmail.com"},"dist":{"shasum":"0dcec39591f96789df30165f48f7bb24e29b2827","tarball":"https://registry.npmjs.org/mysqldump/-/mysqldump-1.1.1.tgz","integrity":"sha512-HoH3bBlB07rQoe0TPEtnb/VVwgTWb0u1Hoc0v+dda9LTEau4jDggcIZBCQSLB0big0ZlWxtjZXX95tMM9nHGFA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBWZZG/nQnkebOsbhclfTaaE52aXxzt5VBWO0gGfQfraAiEAsFoMloN2nfbIvGElNqaysIQE2SGHp3lhYG6CWFrmOLQ="}]},"maintainers":[{"name":"webcaetano","email":"dezaodoido@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/mysqldump-1.1.1.tgz_1463793250950_0.5647824199404567"},"directories":{}},"1.2.0":{"name":"mysqldump","version":"1.2.0","description":"Create a DUMP from MySQL","main":"index.js","scripts":{"test":"mocha test"},"repository":{"type":"git","url":"git+https://github.com/webcaetano/mysqldump.git"},"keywords":["backup","mysql","mysql-dump","dump","restore","database","backup","database"],"author":{"name":"Andre Caetano"},"license":"MIT","bugs":{"url":"https://github.com/webcaetano/mysqldump/issues"},"homepage":"https://github.com/webcaetano/mysqldump","dependencies":{"async":"^1.4.2","lodash":"^3.10.1","mq-node":"^1.0.7"},"devDependencies":{"chai":"^3.2.0","mocha":"^2.3.2"},"gitHead":"b3362b598e4655ad3ba91238e575eec9aa40688a","_id":"mysqldump@1.2.0","_shasum":"8abf0cb1e080d3d6431f9308de26a8f913866e4b","_from":".","_npmVersion":"3.9.5","_nodeVersion":"6.2.2","_npmUser":{"name":"webcaetano","email":"dezaodoido@gmail.com"},"dist":{"shasum":"8abf0cb1e080d3d6431f9308de26a8f913866e4b","tarball":"https://registry.npmjs.org/mysqldump/-/mysqldump-1.2.0.tgz","integrity":"sha512-H42ZGjabS1ZgI1wsd0HeNU87DbcbI80vsXMwm9/5QQow2HUIp3z+2RD2DOo5wyNY+rlKlucCzTAYOyibW0UOyg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCfp4cGjdIXm2tf9D/K3DwTZ5YN5WTZ/CXbZDMgZofbqgIhAP0ERDH7hndNZhK+neKcM84mMnBB69oOKnTNPh2aknK+"}]},"maintainers":[{"name":"webcaetano","email":"dezaodoido@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/mysqldump-1.2.0.tgz_1467649821109_0.01804416603408754"},"directories":{}},"1.3.0":{"name":"mysqldump","version":"1.3.0","description":"Create a DUMP from MySQL","main":"index.js","scripts":{"test":"mocha test"},"repository":{"type":"git","url":"git+https://github.com/webcaetano/mysqldump.git"},"keywords":["backup","mysql","mysql-dump","dump","restore","database","backup","database"],"author":{"name":"Andre Caetano"},"license":"MIT","bugs":{"url":"https://github.com/webcaetano/mysqldump/issues"},"homepage":"https://github.com/webcaetano/mysqldump","dependencies":{"async":"^1.4.2","lodash":"^3.10.1","mq-node":"^1.0.7"},"devDependencies":{"chai":"^3.2.0","mocha":"^2.3.2"},"gitHead":"3c0feb9c2efc9d0b63bb669ac490b8ef6afe18a3","_id":"mysqldump@1.3.0","_shasum":"67fbe6e828f5ee8dec5a9decb8dab8b28ad80e0a","_from":".","_npmVersion":"3.9.5","_nodeVersion":"6.2.2","_npmUser":{"name":"webcaetano","email":"dezaodoido@gmail.com"},"dist":{"shasum":"67fbe6e828f5ee8dec5a9decb8dab8b28ad80e0a","tarball":"https://registry.npmjs.org/mysqldump/-/mysqldump-1.3.0.tgz","integrity":"sha512-jR2RUaouUs+5nmH9btXIykqxXd6ghwl2KEbZ5YDYqYePOvRYoU40ck1TUxHMY4rlj4Uf74KrN2L+kSn+/yb0sg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQClpwWV1xeobkI6uqRx4H5L4Q9WJ5RFfsFc/YjAbbd/JAIhANFsWo/xelytXO8HEi4mIO+QKsRus+ApGgKJS6LOxGYw"}]},"maintainers":[{"name":"webcaetano","email":"dezaodoido@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/mysqldump-1.3.0.tgz_1475055601538_0.6601684791967273"},"directories":{}},"1.3.1":{"name":"mysqldump","version":"1.3.1","description":"Create a DUMP from MySQL","main":"index.js","scripts":{"test":"mocha test"},"repository":{"type":"git","url":"git+https://github.com/webcaetano/mysqldump.git"},"keywords":["backup","mysql","mysql-dump","dump","restore","database","backup","database"],"author":{"name":"Andre Caetano"},"license":"MIT","bugs":{"url":"https://github.com/webcaetano/mysqldump/issues"},"homepage":"https://github.com/webcaetano/mysqldump","dependencies":{"async":"^1.4.2","lodash":"^3.10.1","mq-node":"^1.0.7"},"devDependencies":{"chai":"^3.2.0","mocha":"^2.3.2"},"gitHead":"2f0429ffd2800a2309d16f8a5fa86cfd3710cbde","_id":"mysqldump@1.3.1","_shasum":"0b46e8c33f5c5f4fa9cf2cefafc0031a4e6a3d89","_from":".","_npmVersion":"3.9.5","_nodeVersion":"6.2.2","_npmUser":{"name":"webcaetano","email":"dezaodoido@gmail.com"},"dist":{"shasum":"0b46e8c33f5c5f4fa9cf2cefafc0031a4e6a3d89","tarball":"https://registry.npmjs.org/mysqldump/-/mysqldump-1.3.1.tgz","integrity":"sha512-pusIwgwgD5leX7PiOEl8HaPKO9q9jxTkydm8a6yoKXWEwkXJi9NdKjTCFJYrNUn/06T1+uxi4MHAJUhpXJ5ZVQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDE5uc7t/CcwMFE7dgGrVKDgzMCLC0FF/hhPtyGcBJ8PgIgPm/isWsFMDvdDIFfumBzFXSvTXdORwGu+vkKttxzF9c="}]},"maintainers":[{"name":"webcaetano","email":"dezaodoido@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/mysqldump-1.3.1.tgz_1478433627521_0.1888767008204013"},"directories":{}},"1.4.0":{"name":"mysqldump","version":"1.4.0","description":"Create a DUMP from MySQL","main":"index.js","scripts":{"test":"mocha test.js"},"repository":{"type":"git","url":"git+https://github.com/webcaetano/mysqldump.git"},"keywords":["backup","mysql","mysql-dump","dump","restore","database","backup","database"],"author":{"name":"Andre Caetano"},"license":"MIT","bugs":{"url":"https://github.com/webcaetano/mysqldump/issues"},"homepage":"https://github.com/webcaetano/mysqldump","dependencies":{"async":"^1.4.2","lodash":"^3.10.1","mq-node":"^1.0.7"},"devDependencies":{"chai":"^3.2.0","mocha":"^2.3.2"},"gitHead":"cbab0b116419da3491cb33bb4589e335fa2d7b08","_id":"mysqldump@1.4.0","_shasum":"f399e2261ea0770012a76aaa3896412316ed15df","_from":".","_npmVersion":"3.9.5","_nodeVersion":"6.2.2","_npmUser":{"name":"webcaetano","email":"dezaodoido@gmail.com"},"dist":{"shasum":"f399e2261ea0770012a76aaa3896412316ed15df","tarball":"https://registry.npmjs.org/mysqldump/-/mysqldump-1.4.0.tgz","integrity":"sha512-i6zOhZ7hupMm6k/tX20L33u1Eqxn8LiO1nks7+OIJ41TRKGkyMJ+FrqUFOfLxyHbWMTKp6XibVUWClhRa3AhOg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC6W+33BXpmP1kedCjNR2qzISu5JMEqQkVAXxTW3h7CGwIhAJ+EqhsrSiilpWgzop/uiUCMc3o998n6GtOZSzFqthQ/"}]},"maintainers":[{"name":"webcaetano","email":"dezaodoido@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/mysqldump-1.4.0.tgz_1491942582071_0.3813323425129056"},"directories":{}},"1.4.1":{"name":"mysqldump","version":"1.4.1","description":"Create a DUMP from MySQL","main":"index.js","scripts":{"test":"mocha test.js"},"repository":{"type":"git","url":"git+https://github.com/webcaetano/mysqldump.git"},"keywords":["backup","mysql","mysql-dump","dump","restore","database","backup","database"],"author":{"name":"Andre Caetano"},"license":"MIT","bugs":{"url":"https://github.com/webcaetano/mysqldump/issues"},"homepage":"https://github.com/webcaetano/mysqldump","dependencies":{"async":"^1.4.2","lodash":"^3.10.1","mq-node":"^1.0.7"},"devDependencies":{"chai":"^3.2.0","mocha":"^2.3.2"},"gitHead":"3c3a785733fa169d042c0cac18d949fa86bcbdb2","_id":"mysqldump@1.4.1","_shasum":"d29087a6664d9c80e426f3e8c23d51e01c0ca75f","_from":".","_npmVersion":"3.9.5","_nodeVersion":"6.2.2","_npmUser":{"name":"webcaetano","email":"dezaodoido@gmail.com"},"dist":{"shasum":"d29087a6664d9c80e426f3e8c23d51e01c0ca75f","tarball":"https://registry.npmjs.org/mysqldump/-/mysqldump-1.4.1.tgz","integrity":"sha512-FwYSbDAt3jXT3aWcuLs0IWBSsnOuiycWpCO3nu6XVc06nrKuEsixRrXyqquBE91aywjbI8Ziz0fH40UUYWm9Xw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCFfImpynrG6Fy1zsTzAzcMtQD1Rx6l6MDXGaNtFtWQfgIhAKih/syoLIDAiSIck4WR2cNXLgyyQBrRGBTpR+3OhpyK"}]},"maintainers":[{"name":"webcaetano","email":"dezaodoido@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/mysqldump-1.4.1.tgz_1491942635931_0.6221605995669961"},"directories":{}},"1.4.2":{"name":"mysqldump","version":"1.4.2","description":"Create a DUMP from MySQL","main":"index.js","scripts":{"test":"mocha test.js"},"repository":{"type":"git","url":"git+https://github.com/webcaetano/mysqldump.git"},"keywords":["backup","mysql","mysql-dump","dump","restore","database","backup","database"],"author":{"name":"Andre Caetano"},"license":"MIT","bugs":{"url":"https://github.com/webcaetano/mysqldump/issues"},"homepage":"https://github.com/webcaetano/mysqldump","dependencies":{"async":"^1.4.2","lodash":"^3.10.1","mq-node":"^1.0.7"},"devDependencies":{"chai":"^3.2.0","mocha":"^2.3.2"},"gitHead":"a3f15ca4228efe0a1ce6e0a73492b721f52ba5ca","_id":"mysqldump@1.4.2","_shasum":"2cdab691c98b6a6c7f9577072e7d5b0d2281226d","_from":".","_npmVersion":"3.9.5","_nodeVersion":"6.2.2","_npmUser":{"name":"webcaetano","email":"dezaodoido@gmail.com"},"dist":{"shasum":"2cdab691c98b6a6c7f9577072e7d5b0d2281226d","tarball":"https://registry.npmjs.org/mysqldump/-/mysqldump-1.4.2.tgz","integrity":"sha512-ncuLZyjzr7o533t9lAAnSi2bm4Jrs2i4RfB/qmY3fKubwbAx1CnnNoaKTRxSIaVnXuD3Rnrdp2xitAcp1Vyw1Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDGEP5xVttIoHU0GEZrRPYPs9u2ZECRAfpSEQ+IENGw7gIgGo5fKLsjLgTgFoJdK6rYekXURtqigu6Gk+T7Ts4UinI="}]},"maintainers":[{"name":"webcaetano","email":"dezaodoido@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/mysqldump-1.4.2.tgz_1491942684013_0.07141787349246442"},"directories":{}},"2.2.0-rc.0":{"name":"mysqldump","version":"2.2.0-rc.0","description":"Create a DUMP from MySQL","main":"dist/cjs.js","module":"dist/es.js","typings":"dist/mysqldump.d.ts","scripts":{"pretest":"ts-node -P ./tsconfig.json --files ./test/scripts/initDb.ts","pretest-prod":"ts-node -P ./tsconfig.json --files ./test/scripts/initDb.ts","setup-travis":"node ./test/setupTravis.js","test":"jest --ci --config=./jest.json","test-prod":"JEST_USE_NPM_BUILD=true jest --ci --config=./test/jest-prod-config.js","view-coverage":"open ./coverage/index.html","build":"rollup -c && dts-bundle-generator -o dist/mysqldump.d.ts build-decl/main.d.ts --umd-module-name=mysqldump && rimraf build-decl","clean":"rimraf dist && rimraf build-decl","lint":"eslint src --ext \".ts\"","start":"ts-node -P ./tsconfig.json --files ./test/scripts/launch.ts","ci":"yarn lint --quiet && yarn build"},"repository":{"type":"git","url":"git+https://github.com/assignar/mysqldump.git"},"keywords":["backup","mysql","mysql-dump","dump","restore","database","backup","database"],"author":{"name":"Brad Zacher"},"license":"MIT","bugs":{"url":"https://github.com/assignar/mysqldump/issues"},"homepage":"https://github.com/assignar/mysqldump","dependencies":{"deepmerge":"^2.1.1","mysql2":"^1.5.3","sql-formatter":"^2.3.1","sqlstring":"^2.3.1"},"devDependencies":{"@types/deepmerge":"^2.1.0","@types/extend":"^3.0.0","@types/invariant":"^2.2.29","@types/jest":"^23.1.2","@types/mysql":"^2.15.5","@types/sqlstring":"^2.2.0","@types/tmp":"^0.0.33","babel":"^6.23.0","babel-plugin-transform-object-rest-spread":"^6.26.0","copyfiles":"^2.0.0","dts-bundle-generator":"^1.5.0","eslint":"^4.18.1","eslint-config-airbnb-base":"^12.1.0","eslint-plugin-import":"^2.9.0","eslint-plugin-typescript":"^0.9.0","eslint-restricted-globals":"^0.1.1","jest":"^23.2.0","rimraf":"^2.6.2","rollup":"^0.52.1","rollup-plugin-commonjs":"^8.2.6","rollup-plugin-typescript2":"^0.9.0","tmp":"^0.0.33","ts-jest":"^22.4.6","ts-node":"^7.0.0","typescript":"^2.9.2","typescript-eslint-parser":"^14.0.0"},"readme":"# Mysql Dump\n\n[![npm version](https://badge.fury.io/js/mysqldump.svg)](https://npmjs.com/package/mysqldump) [![Build Status](https://travis-ci.org/assignar/mysqldump.svg)](https://travis-ci.org/assignar/mysqldump)\n\nCreate a backup of a MySQL database.\n\n## Installation\n\n```\nyarn add mysqldump\n// or\nnpm install mysqldump\n```\n\n## Usage\n```typescript\nimport mysqldump from 'mysqldump'\n// or const mysqldump = require('mysqldump')\n\n// dump the result straight to a file\nmysqldump({\n    connection: {\n        host: 'localhost',\n        user: 'root',\n        password: '123456',\n        database: 'my_database',\n    },\n    dumpToFile: './dump.sql',\n})\n\n// return the dump from the function and not to a file\nconst result = await mysqldump({\n    connection: {\n        host: 'localhost',\n        user: 'root',\n        password: '123456',\n        database: 'my_database',\n    },\n})\n```\n\n\n## Options\nAll the below options are documented in the [typescript declaration file](./dist/mysqldump.d.ts):\n```TS\nexport interface ConnectionOptions {\n\t/**\n\t * The database host to connect to.\n\t * Defaults to 'localhost'.\n\t */\n\thost?: string;\n\t/**\n\t * The port on the host to connect to.\n\t * Defaults to 3306.\n\t */\n\tport?: number;\n\t/**\n\t * The database to dump.\n\t */\n\tdatabase: string;\n\t/**\n\t * The DB username to use to connect.\n\t */\n\tuser: string;\n\t/**\n\t * The password to use to connect.\n\t */\n\tpassword: string;\n\t/**\n\t * The charset to use for the connection.\n\t * Defaults to 'UTF8_GENERAL_CI'.\n\t */\n\tcharset?: string;\n}\nexport interface SchemaDumpOptions {\n\t/**\n\t * True to include autoincrement values in schema, false otherwise.\n\t * Defaults to true.\n\t */\n\tautoIncrement?: boolean;\n\t/**\n\t * True to include engine values in schema, false otherwise.\n\t * Defaults to true.\n\t */\n\tengine?: boolean;\n\t/**\n\t * True to run a sql formatter over the output, false otherwise.\n\t * Defaults to true.\n\t */\n\tformat?: boolean;\n\t/**\n\t * Options for table dumps\n\t */\n\ttable?: {\n\t\t/**\n\t\t * Guard create table calls with an \"IF NOT EXIST\"\n\t\t * Defaults to true.\n\t\t */\n\t\tifNotExist?: boolean;\n\t\t/**\n\t\t * Drop tables before creation (overrides `ifNotExist`).\n\t\t * Defaults to false.\n\t\t */\n\t\tdropIfExist?: boolean;\n\t\t/**\n\t\t * Include the `DEFAULT CHARSET = x` at the end of the table definition\n\t\t * Set to true to include the value form the DB.\n\t\t * Set to false to exclude it altogether.\n\t\t * Set to a string to explicitly set the charset.\n\t\t * Defaults to true.\n\t\t */\n\t\tcharset?: boolean | string;\n\t};\n\tview?: {\n\t\t/**\n\t\t * Uses `CREATE OR REPLACE` to define views.\n\t\t * Defaults to true.\n\t\t */\n\t\tcreateOrReplace?: boolean;\n\t\t/**\n\t\t * Include the `DEFINER = {\\`user\\`@\\`host\\` | CURRENT_USER}` in the view definition or not\n\t\t * Defaults to false.\n\t\t */\n\t\tdefiner?: boolean;\n\t\t/**\n\t\t * Include the `ALGORITHM = {UNDEFINED | MERGE | TEMPTABLE}` in the view definition or not\n\t\t * Defaults to false.\n\t\t */\n\t\talgorithm?: boolean;\n\t\t/**\n\t\t * Incldue the `SQL SECURITY {DEFINER | INVOKER}` in the view definition or not\n\t\t * Defaults to false.\n\t\t */\n\t\tsqlSecurity?: boolean;\n\t};\n}\nexport interface TriggerDumpOptions {\n\t/**\n\t * The temporary delimiter to use between statements.\n\t * Set to false to not use delmiters\n\t * Defaults to ';;'.\n\t */\n\tdelimiter?: string | false;\n\t/**\n\t * Drop triggers before creation.\n\t * Defaults to false.\n\t */\n\tdropIfExist?: boolean;\n\t/**\n\t * Include the `DEFINER = {\\`user\\`@\\`host\\` | CURRENT_USER}` in the view definition or not\n\t * Defaults to false.\n\t */\n\tdefiner?: boolean;\n}\nexport interface DataDumpOptions {\n\t/**\n\t * True to run a sql formatter over the output, false otherwise.\n\t * Defaults to true.\n\t */\n\tformat?: boolean;\n\t/**\n\t * Dump data from views.\n\t * Defaults to false.\n\t */\n\tincludeViewData?: boolean;\n\t/**\n\t * Maximum number of rows to include in each multi-line insert statement\n\t * Defaults to 1 (i.e. new statement per row).\n\t */\n\tmaxRowsPerInsertStatement?: number;\n\t/**\n\t * True to return the data in a function, false to not.\n\t * This is useful in databases with a lot of data.\n\t *\n\t * We stream data from the DB to reduce the memory footprint.\n\t * However note that if you want the result returned from the function,\n\t * this will result in a larger memory footprint as the string has to be stored in memory.\n\t *\n\t * Defaults to false if dumpToFile is truthy, or true if not dumpToFile is falsey.\n\t */\n\treturnFromFunction?: boolean;\n\t/**\n\t * A map of tables to additional where strings to add.\n\t * Use this to limit the number of data that is dumped.\n\t * Defaults to no limits\n\t */\n\twhere?: {\n\t\t[k: string]: string;\n\t};\n}\nexport interface DumpOptions {\n\t/**\n\t * The list of tables that you want to dump.\n\t * Defaults to all tables (signalled by passing an empty array).\n\t */\n\ttables?: string[];\n\t/**\n\t * True to use the `tables` options as a blacklist, false to use it as a whitelist.\n\t * Defaults to false.\n\t */\n\texcludeTables?: boolean;\n\t/**\n\t * Explicitly set to false to not include the schema in the dump.\n\t * Defaults to including the schema.\n\t */\n\tschema?: false | SchemaDumpOptions;\n\t/**\n\t * Explicitly set to false to not include data in the dump.\n\t * Defaults to including the data.\n\t */\n\tdata?: false | DataDumpOptions;\n\t/**\n\t * Explicitly set to false to not include triggers in the dump.\n\t * Defaults to including the triggers.\n\t */\n\ttrigger?: false | TriggerDumpOptions;\n}\nexport interface Options {\n\t/**\n\t * Database connection options\n\t */\n\tconnection: ConnectionOptions;\n\t/**\n\t * Dump configuration options\n\t */\n\tdump?: DumpOptions;\n\t/**\n\t * Set to a path to dump to a file.\n\t * Exclude to just return the string.\n\t */\n\tdumpToFile?: string;\n}\nexport interface ColumnList {\n\t/**\n\t * Key is the name of the column\n\t */\n\t[k: string]: {\n\t\t/**\n\t\t * The type of the column as reported by the underlying DB.\n\t\t */\n\t\ttype: string;\n\t\t/**\n\t\t * True if the column is nullable, false otherwise.\n\t\t */\n\t\tnullable: boolean;\n\t};\n}\nexport interface Table {\n\t/**\n\t * The name of the table.\n\t */\n\tname: string;\n\t/**\n\t * The raw SQL schema dump for the table.\n\t * Null if configured to not dump.\n\t */\n\tschema: string | null;\n\t/**\n\t * The raw SQL data dump for the table.\n\t * Null if configured to not dump.\n\t */\n\tdata: string | null;\n\t/**\n\t * The list of column definitions for the table.\n\t */\n\tcolumns: ColumnList;\n\t/**\n\t * An ordered list of columns (for consistently outputing as per the DB definition)\n\t */\n\tcolumnsOrdered: string[];\n\t/**\n\t * True if the table is actually a view, false otherwise.\n\t */\n\tisView: boolean;\n\t/**\n\t * A list of triggers attached to the table\n\t */\n\ttriggers: string[];\n}\nexport interface DumpReturn {\n\t/**\n\t * The result of the dump\n\t */\n\tdump: {\n\t\t/**\n\t\t * The concatenated SQL schema dump for the entire database.\n\t\t * Null if configured not to dump.\n\t\t */\n\t\tschema: string | null;\n\t\t/**\n\t\t * The concatenated SQL data dump for the entire database.\n\t\t * Null if configured not to dump.\n\t\t */\n\t\tdata: string | null;\n\t\t/**\n\t\t * The concatenated SQL trigger dump for the entire database.\n\t\t * Null if configured not to dump.\n\t\t */\n\t\ttrigger: string | null;\n\t};\n\ttables: Table[];\n}\nexport default function main(inputOptions: Options): Promise<DumpReturn>;\n\nexport as namespace mysqldump;\n```\n\n---------------------------------\n\nThe MIT [License](./LICENSE.md)\n\n## Contributing\n\n### Installation\n\nMake sure to first install all the required development dependencies:\n```\nyarn\n// or\nnpm install .\n```\n\n### Linting\n\nWe use [eslint](https://www.npmjs.com/package/eslint) in conjunction with [typescript-eslint-parser](https://www.npmjs.com/package/typescript-eslint-parser) for code linting.\n\nPRs are required to pass the linting with no errors and preferrably no warnings.\n\n### Testing\n\nTests can be run via the `test` script - `yarn test` / `npm test`.\n\nAdditionally it's required that you do a build and run your test against the public package to ensure the build doesn't cause regressions - `yarn run test-prod` / `npm run test-prod`.\n\nPRs are required to maintain the 100% test coverage, and all tests must pass successfully.\n","readmeFilename":"README.md","gitHead":"08e580cce14b1ea7f0f179c496e3bdb0f2079ad0","_id":"mysqldump@2.2.0-rc.0","_npmVersion":"6.0.1","_nodeVersion":"8.10.0","_npmUser":{"name":"bradzacher","email":"brad.zacher@gmail.com"},"dist":{"integrity":"sha512-e3V/qU52kfC+eKPp8GhupVCTGPlkusmkZn/d4aC0iDZspbkcydfyDmlScPFx0oV2UH/kCCI9FHpd9yv2JbKdYg==","shasum":"0bebfdb0652b4528e9303bba50ba621e0787116d","tarball":"https://registry.npmjs.org/mysqldump/-/mysqldump-2.2.0-rc.0.tgz","fileCount":6,"unpackedSize":84399,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbT+3/CRA9TVsSAnZWagAA7OUP/33ej7jKBZpwXlY70RVH\nFM/EslvPONTWAnls0i8Br8EEfcWcB1QvmX3RbZz55Q/vKP2HJ+xDyYbax5h5\nS7ZNp8fT5weY4NJ49uHTM52C04+7Eb6w8168/1XCJLe9iHW6l3/JhQvop7VW\n74xYNqO+R+U6h+FumHY2G9nC2/FKXAUwZCwOBPLDGG6K0akUAzRn3psP3lw7\nq4Pt0vMG03cAJVNDuGz/GsrWlRA57XQuVN9YN7YXMWWI+XUcjK2nie850JVy\n/u3J1PEi0S0UrU+/wvFUgAkBXqyfHIf+FsciZKi0Dfr8eoKdhrSukaCYL6aE\nEibBnGserPiMicizEwkqTuhT/ygtQz4qaq+Hpn+DVpiTzdhyQFbG45c8eEPM\ne9f2wCZfWs0BQrYkuh1C8+g7aILgu8X3b66eFBu7iNNho93SGhiadIbHHcTV\nxlzGfOl8Pk6FrQS/kF7hBe8c0bIsxh0X8mbuuDdl5OfXQ+ze82/yxbWA5r15\nP4devFLHe/gwyoItGAJpL7Zgcv8Fqah/Uy8aoOgzami2gWiQ3vroacpzQugx\nG32ssPp9qrL6H1nGMDPr2GLKikxXnHVpAUTIy9OVBVRHp+gVtXsVnrGQJLQ/\nknW2ad8hI3a+cNBFbhkZDUdZ3vbKRoQIk7Mx6zPLkviQOtMnIg5dyYo48XLb\nDHN3\r\n=PW2Y\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIG7NjVfAKZhlFt5IqeJFVklpOseerCEpxcXBsHsIbEE5AiEA8M2lsYv7KjTc35gm9x/iD8lhuVjGfLO1KgTnx759fyM="}]},"maintainers":[{"email":"brad.zacher@gmail.com","name":"bradzacher"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mysqldump_2.2.0-rc.0_1531964927528_0.8209899392274467"},"_hasShrinkwrap":false},"2.2.0-rc.1":{"name":"mysqldump","version":"2.2.0-rc.1","description":"Create a DUMP from MySQL","main":"dist/cjs.js","module":"dist/es.js","typings":"dist/mysqldump.d.ts","scripts":{"pretest":"ts-node -P ./tsconfig.json --files ./test/scripts/initDb.ts","pretest-prod":"ts-node -P ./tsconfig.json --files ./test/scripts/initDb.ts","setup-travis":"node ./test/setupTravis.js","test":"jest --ci --config=./jest.json","test-prod":"JEST_USE_NPM_BUILD=true jest --ci --config=./test/jest-prod-config.js","view-coverage":"open ./coverage/index.html","build":"rollup -c && dts-bundle-generator -o dist/mysqldump.d.ts build-decl/main.d.ts --umd-module-name=mysqldump && rimraf build-decl","clean":"rimraf dist && rimraf build-decl","lint":"eslint src --ext \".ts\"","start":"ts-node -P ./tsconfig.json --files ./test/scripts/launch.ts","ci":"yarn lint --quiet && yarn build"},"repository":{"type":"git","url":"git+https://github.com/assignar/mysqldump.git"},"keywords":["backup","mysql","mysql-dump","dump","restore","database","backup","database"],"author":{"name":"Brad Zacher"},"license":"MIT","bugs":{"url":"https://github.com/assignar/mysqldump/issues"},"homepage":"https://github.com/assignar/mysqldump","dependencies":{"deepmerge":"^2.1.1","mysql2":"^1.5.3","sql-formatter":"^2.3.1","sqlstring":"^2.3.1"},"devDependencies":{"@types/deepmerge":"^2.1.0","@types/extend":"^3.0.0","@types/invariant":"^2.2.29","@types/jest":"^23.1.2","@types/mysql":"^2.15.5","@types/sqlstring":"^2.2.0","@types/tmp":"^0.0.33","babel":"^6.23.0","babel-plugin-transform-object-rest-spread":"^6.26.0","copyfiles":"^2.0.0","dts-bundle-generator":"^1.5.0","eslint":"^4.18.1","eslint-config-airbnb-base":"^12.1.0","eslint-plugin-import":"^2.9.0","eslint-plugin-typescript":"^0.9.0","eslint-restricted-globals":"^0.1.1","jest":"^23.2.0","rimraf":"^2.6.2","rollup":"^0.52.1","rollup-plugin-commonjs":"^8.2.6","rollup-plugin-typescript2":"^0.9.0","tmp":"^0.0.33","ts-jest":"^22.4.6","ts-node":"^7.0.0","typescript":"^2.9.2","typescript-eslint-parser":"^14.0.0"},"readme":"# Mysql Dump\n\n[![npm version](https://badge.fury.io/js/mysqldump.svg)](https://npmjs.com/package/mysqldump) [![Build Status](https://travis-ci.org/assignar/mysqldump.svg)](https://travis-ci.org/assignar/mysqldump)\n\nCreate a backup of a MySQL database.\n\n## Installation\n\n```\nyarn add mysqldump\n// or\nnpm install mysqldump\n```\n\n## Usage\n```typescript\nimport mysqldump from 'mysqldump'\n// or const mysqldump = require('mysqldump')\n\n// dump the result straight to a file\nmysqldump({\n    connection: {\n        host: 'localhost',\n        user: 'root',\n        password: '123456',\n        database: 'my_database',\n    },\n    dumpToFile: './dump.sql',\n})\n\n// return the dump from the function and not to a file\nconst result = await mysqldump({\n    connection: {\n        host: 'localhost',\n        user: 'root',\n        password: '123456',\n        database: 'my_database',\n    },\n})\n```\n\n\n## Options\nAll the below options are documented in the [typescript declaration file](./dist/mysqldump.d.ts):\n```TS\nexport interface ConnectionOptions {\n\t/**\n\t * The database host to connect to.\n\t * Defaults to 'localhost'.\n\t */\n\thost?: string;\n\t/**\n\t * The port on the host to connect to.\n\t * Defaults to 3306.\n\t */\n\tport?: number;\n\t/**\n\t * The database to dump.\n\t */\n\tdatabase: string;\n\t/**\n\t * The DB username to use to connect.\n\t */\n\tuser: string;\n\t/**\n\t * The password to use to connect.\n\t */\n\tpassword: string;\n\t/**\n\t * The charset to use for the connection.\n\t * Defaults to 'UTF8_GENERAL_CI'.\n\t */\n\tcharset?: string;\n}\nexport interface SchemaDumpOptions {\n\t/**\n\t * True to include autoincrement values in schema, false otherwise.\n\t * Defaults to true.\n\t */\n\tautoIncrement?: boolean;\n\t/**\n\t * True to include engine values in schema, false otherwise.\n\t * Defaults to true.\n\t */\n\tengine?: boolean;\n\t/**\n\t * True to run a sql formatter over the output, false otherwise.\n\t * Defaults to true.\n\t */\n\tformat?: boolean;\n\t/**\n\t * Options for table dumps\n\t */\n\ttable?: {\n\t\t/**\n\t\t * Guard create table calls with an \"IF NOT EXIST\"\n\t\t * Defaults to true.\n\t\t */\n\t\tifNotExist?: boolean;\n\t\t/**\n\t\t * Drop tables before creation (overrides `ifNotExist`).\n\t\t * Defaults to false.\n\t\t */\n\t\tdropIfExist?: boolean;\n\t\t/**\n\t\t * Include the `DEFAULT CHARSET = x` at the end of the table definition\n\t\t * Set to true to include the value form the DB.\n\t\t * Set to false to exclude it altogether.\n\t\t * Set to a string to explicitly set the charset.\n\t\t * Defaults to true.\n\t\t */\n\t\tcharset?: boolean | string;\n\t};\n\tview?: {\n\t\t/**\n\t\t * Uses `CREATE OR REPLACE` to define views.\n\t\t * Defaults to true.\n\t\t */\n\t\tcreateOrReplace?: boolean;\n\t\t/**\n\t\t * Include the `DEFINER = {\\`user\\`@\\`host\\` | CURRENT_USER}` in the view definition or not\n\t\t * Defaults to false.\n\t\t */\n\t\tdefiner?: boolean;\n\t\t/**\n\t\t * Include the `ALGORITHM = {UNDEFINED | MERGE | TEMPTABLE}` in the view definition or not\n\t\t * Defaults to false.\n\t\t */\n\t\talgorithm?: boolean;\n\t\t/**\n\t\t * Incldue the `SQL SECURITY {DEFINER | INVOKER}` in the view definition or not\n\t\t * Defaults to false.\n\t\t */\n\t\tsqlSecurity?: boolean;\n\t};\n}\nexport interface TriggerDumpOptions {\n\t/**\n\t * The temporary delimiter to use between statements.\n\t * Set to false to not use delmiters\n\t * Defaults to ';;'.\n\t */\n\tdelimiter?: string | false;\n\t/**\n\t * Drop triggers before creation.\n\t * Defaults to false.\n\t */\n\tdropIfExist?: boolean;\n\t/**\n\t * Include the `DEFINER = {\\`user\\`@\\`host\\` | CURRENT_USER}` in the view definition or not\n\t * Defaults to false.\n\t */\n\tdefiner?: boolean;\n}\nexport interface DataDumpOptions {\n\t/**\n\t * True to run a sql formatter over the output, false otherwise.\n\t * Defaults to true.\n\t */\n\tformat?: boolean;\n\t/**\n\t * Dump data from views.\n\t * Defaults to false.\n\t */\n\tincludeViewData?: boolean;\n\t/**\n\t * Maximum number of rows to include in each multi-line insert statement\n\t * Defaults to 1 (i.e. new statement per row).\n\t */\n\tmaxRowsPerInsertStatement?: number;\n\t/**\n\t * True to return the data in a function, false to not.\n\t * This is useful in databases with a lot of data.\n\t *\n\t * We stream data from the DB to reduce the memory footprint.\n\t * However note that if you want the result returned from the function,\n\t * this will result in a larger memory footprint as the string has to be stored in memory.\n\t *\n\t * Defaults to false if dumpToFile is truthy, or true if not dumpToFile is falsey.\n\t */\n\treturnFromFunction?: boolean;\n\t/**\n\t * A map of tables to additional where strings to add.\n\t * Use this to limit the number of data that is dumped.\n\t * Defaults to no limits\n\t */\n\twhere?: {\n\t\t[k: string]: string;\n\t};\n}\nexport interface DumpOptions {\n\t/**\n\t * The list of tables that you want to dump.\n\t * Defaults to all tables (signalled by passing an empty array).\n\t */\n\ttables?: string[];\n\t/**\n\t * True to use the `tables` options as a blacklist, false to use it as a whitelist.\n\t * Defaults to false.\n\t */\n\texcludeTables?: boolean;\n\t/**\n\t * Explicitly set to false to not include the schema in the dump.\n\t * Defaults to including the schema.\n\t */\n\tschema?: false | SchemaDumpOptions;\n\t/**\n\t * Explicitly set to false to not include data in the dump.\n\t * Defaults to including the data.\n\t */\n\tdata?: false | DataDumpOptions;\n\t/**\n\t * Explicitly set to false to not include triggers in the dump.\n\t * Defaults to including the triggers.\n\t */\n\ttrigger?: false | TriggerDumpOptions;\n}\nexport interface Options {\n\t/**\n\t * Database connection options\n\t */\n\tconnection: ConnectionOptions;\n\t/**\n\t * Dump configuration options\n\t */\n\tdump?: DumpOptions;\n\t/**\n\t * Set to a path to dump to a file.\n\t * Exclude to just return the string.\n\t */\n\tdumpToFile?: string;\n}\nexport interface ColumnList {\n\t/**\n\t * Key is the name of the column\n\t */\n\t[k: string]: {\n\t\t/**\n\t\t * The type of the column as reported by the underlying DB.\n\t\t */\n\t\ttype: string;\n\t\t/**\n\t\t * True if the column is nullable, false otherwise.\n\t\t */\n\t\tnullable: boolean;\n\t};\n}\nexport interface Table {\n\t/**\n\t * The name of the table.\n\t */\n\tname: string;\n\t/**\n\t * The raw SQL schema dump for the table.\n\t * Null if configured to not dump.\n\t */\n\tschema: string | null;\n\t/**\n\t * The raw SQL data dump for the table.\n\t * Null if configured to not dump.\n\t */\n\tdata: string | null;\n\t/**\n\t * The list of column definitions for the table.\n\t */\n\tcolumns: ColumnList;\n\t/**\n\t * An ordered list of columns (for consistently outputing as per the DB definition)\n\t */\n\tcolumnsOrdered: string[];\n\t/**\n\t * True if the table is actually a view, false otherwise.\n\t */\n\tisView: boolean;\n\t/**\n\t * A list of triggers attached to the table\n\t */\n\ttriggers: string[];\n}\nexport interface DumpReturn {\n\t/**\n\t * The result of the dump\n\t */\n\tdump: {\n\t\t/**\n\t\t * The concatenated SQL schema dump for the entire database.\n\t\t * Null if configured not to dump.\n\t\t */\n\t\tschema: string | null;\n\t\t/**\n\t\t * The concatenated SQL data dump for the entire database.\n\t\t * Null if configured not to dump.\n\t\t */\n\t\tdata: string | null;\n\t\t/**\n\t\t * The concatenated SQL trigger dump for the entire database.\n\t\t * Null if configured not to dump.\n\t\t */\n\t\ttrigger: string | null;\n\t};\n\ttables: Table[];\n}\nexport default function main(inputOptions: Options): Promise<DumpReturn>;\n\nexport as namespace mysqldump;\n```\n\n---------------------------------\n\nThe MIT [License](./LICENSE.md)\n\n## Contributing\n\n### Installation\n\nMake sure to first install all the required development dependencies:\n```\nyarn\n// or\nnpm install .\n```\n\n### Linting\n\nWe use [eslint](https://www.npmjs.com/package/eslint) in conjunction with [typescript-eslint-parser](https://www.npmjs.com/package/typescript-eslint-parser) for code linting.\n\nPRs are required to pass the linting with no errors and preferrably no warnings.\n\n### Testing\n\nTests can be run via the `test` script - `yarn test` / `npm test`.\n\nAdditionally it's required that you do a build and run your test against the public package to ensure the build doesn't cause regressions - `yarn run test-prod` / `npm run test-prod`.\n\nPRs are required to maintain the 100% test coverage, and all tests must pass successfully.\n","readmeFilename":"README.md","gitHead":"08e580cce14b1ea7f0f179c496e3bdb0f2079ad0","_id":"mysqldump@2.2.0-rc.1","_npmVersion":"6.0.1","_nodeVersion":"8.10.0","_npmUser":{"name":"bradzacher","email":"brad.zacher@gmail.com"},"dist":{"integrity":"sha512-ltBAoJb3ijQJwLUMgn3nXTIUz+dQhWzEEhaoPrUu+22hl91EtltIGyQJ0pseXWXXlEVD1UWzvbv5BousR3JcNw==","shasum":"3ddfe59b2fa3f7dd854f38ccea53a795b0ce35f8","tarball":"https://registry.npmjs.org/mysqldump/-/mysqldump-2.2.0-rc.1.tgz","fileCount":6,"unpackedSize":84399,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbT+4bCRA9TVsSAnZWagAA/ssQAIkMwhnljTdr7MvAIkzq\nte+ZfHD1q3dAYArviQ7F8Qe2jfTfvLAL9QGPXVOKgiiMAuCDKLO9C1A8XoXn\n64nn9TSjIBTFkap/x2Cwsb6UYhhPiQSXcN1gZOAtvRhrvCkktV6T/ZiNxB6k\n+jRLwgL5OhtWIclKl/RbLc9KD8RTDJHJj8D00k88C/A3CjklnKT8frfU2X46\nGArn5IgczIe9LX2l+gtg+nDFCnCpkoWjmmQWDMXRf7uhWYcw+bNjZDlTJ3KS\naMilPrReetz58IvoRXllikqy9ZRkUXDWqwd2w6UjkN5jsRNdURUcZm3uXd3L\nRHCnOHppddNSK4wzCc4EL7ay45Y4iYdgDGadCwO4xTb9minoyk1sBbo39RVh\nYncpJ30NlZALgruw5CNjMbJ46nav6eEEVJp9Xhb5OzMZTL8yQke7JtVO+SfZ\n7DClV3YkrJvIj5PSE4YRTsVGSnwMTSnu9puQmb1JVPI3Ujv930G/FsXgDrSf\n6o9GEKKGovJGZk39VedsCHbspLajhNq+LNstC40XbkAk6nidPU2osTh1HtgS\nXwBjWiHBAHUdK5w6kAsgm5K+iRau5vZnHg9PdUAMzZGghghIVhJgRWWEtQrU\nYtgNR+V19S9XKTRl8685mytIz7+YjxQkVNP7UwmarCosZTUmNLqSMvMRHSwy\nRX7e\r\n=n4gT\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIA4CRrY0m698gCVVS7lLZkxUgkszxTcswvb7C4HRB0ydAiEA3hDCbpq9FXVE12a/mbuE1AyLfo5PgufxGkrnZhBHxwI="}]},"maintainers":[{"email":"brad.zacher@gmail.com","name":"bradzacher"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mysqldump_2.2.0-rc.1_1531964955864_0.8186490719350001"},"_hasShrinkwrap":false},"2.2.1":{"name":"mysqldump","version":"2.2.1","description":"Create a DUMP from MySQL","main":"dist/cjs.js","module":"dist/es.js","typings":"dist/mysqldump.d.ts","scripts":{"pretest":"ts-node -P ./tsconfig.json --files ./test/scripts/initDb.ts","pretest-prod":"ts-node -P ./tsconfig.json --files ./test/scripts/initDb.ts","setup-travis":"node ./test/setupTravis.js","test":"jest --ci --config=./jest.json","test-prod":"JEST_USE_NPM_BUILD=true jest --ci --config=./test/jest-prod-config.js","view-coverage":"open ./coverage/index.html","build":"rollup -c && dts-bundle-generator -o dist/mysqldump.d.ts build-decl/main.d.ts --umd-module-name=mysqldump && rimraf build-decl","clean":"rimraf dist && rimraf build-decl","lint":"eslint src --ext \".ts\"","start":"ts-node -P ./tsconfig.json --files ./test/scripts/launch.ts","ci":"yarn lint --quiet && yarn build"},"repository":{"type":"git","url":"git+https://github.com/assignar/mysqldump.git"},"keywords":["backup","mysql","mysql-dump","dump","restore","database","backup","database"],"author":{"name":"Brad Zacher"},"license":"MIT","bugs":{"url":"https://github.com/assignar/mysqldump/issues"},"homepage":"https://github.com/assignar/mysqldump","dependencies":{"deepmerge":"^2.1.1","mysql2":"^1.5.3","sql-formatter":"^2.3.1","sqlstring":"^2.3.1"},"devDependencies":{"@types/deepmerge":"^2.1.0","@types/extend":"^3.0.0","@types/invariant":"^2.2.29","@types/jest":"^23.1.2","@types/mysql":"^2.15.5","@types/sqlstring":"^2.2.0","@types/tmp":"^0.0.33","babel":"^6.23.0","babel-plugin-transform-object-rest-spread":"^6.26.0","copyfiles":"^2.0.0","dts-bundle-generator":"^1.5.0","eslint":"^4.18.1","eslint-config-airbnb-base":"^12.1.0","eslint-plugin-import":"^2.9.0","eslint-plugin-typescript":"^0.9.0","eslint-restricted-globals":"^0.1.1","jest":"^23.2.0","rimraf":"^2.6.2","rollup":"^0.52.1","rollup-plugin-commonjs":"^8.2.6","rollup-plugin-typescript2":"^0.9.0","tmp":"^0.0.33","ts-jest":"^22.4.6","ts-node":"^7.0.0","typescript":"^2.9.2","typescript-eslint-parser":"^14.0.0"},"gitHead":"c1886a143c6b99575266cc6a053e528bfd2699e0","_id":"mysqldump@2.2.1","_npmVersion":"6.0.1","_nodeVersion":"8.10.0","_npmUser":{"name":"bradzacher","email":"brad.zacher@gmail.com"},"dist":{"integrity":"sha512-6Lo8pADtE+17Fe0i+WvqtlDeFpboVPfalJxn/E+Uz1E89FAbg4oOV9CDTRmk2ysoxNvjtI9h6DLGznYmO8WTOQ==","shasum":"c622d65d19088450bc760fa2013efc6df88a8445","tarball":"https://registry.npmjs.org/mysqldump/-/mysqldump-2.2.1.tgz","fileCount":6,"unpackedSize":84394,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbT+/ICRA9TVsSAnZWagAAJM4P/0hoDeAM8VsT1Q1DRzBs\nxDeHdkIRkJETH0Jaz2Vep0fbk46wP5xl8OGjGHWDSxVDnjGU22Hkqohw8AKb\nAnGY2MJPdqpZ+uCscB0TOMA5v+u62XyF3jJr3chpqpLMqnRT5dDurVR2rX0V\nn629U2Hkc1QJULsk1fNU041HBgr6aao3Xg7rQ+NKahTf+7v+D59pWaJB5wHH\nH6XAL8dOo5HeC6sPYHYXoiLgbSBVf+NIx0+9gGTv3w4T1R/dpYJ0rAcHup9J\nlLXd/f16Jx7aBsaoODidOOEE+nJorcslWhQGFTFHO9F7ePEUsYiEHimPvv0X\ncn8c4xhMrDhE5HSP2r0TqSrcPIXVNwKpPBW8+w49SjOyknfVpAEy2UL6EP2N\nS99AD15emN/jmamvOqqa+9llO3Ggc03RkYhRDMafHdDbzoDHz8sR3hzkIbN1\nZ6XjX76G+GNkqQ09VjIGImJVO2C88N55tkmQoRxDYBEcDm96LE5gK23VTfCy\nxl30rh2R9C2KbUhe+mnHlcomOhtihe+ZfoukPkBomX/cZFrnu2LNoQxbEeux\npnBitgkbOV9SOBB4zgPiUr8LkJGYExtRBuNa+MZ1OQtEH4aZe1luYbqOzxJO\nAbSft9wNFui4yEB7JUXFoo64BtKeYh4Z6eBNzNv5k1Lubzo/rprdJpaKhg0R\nuO0p\r\n=Yat1\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCFLFcdtpCLwErZsJIrrQipQTSXQui2E+pnZ6TtnmVP+QIhAO76PxZhEHuQRGb0hKHgUAzTUAeU5oNcT2uDhIWX9Daw"}]},"maintainers":[{"email":"brad.zacher@gmail.com","name":"bradzacher"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mysqldump_2.2.1_1531965384335_0.0704951553114348"},"_hasShrinkwrap":false},"2.3.0":{"name":"mysqldump","version":"2.3.0","description":"Create a DUMP from MySQL","main":"dist/cjs.js","module":"dist/es.js","typings":"dist/mysqldump.d.ts","scripts":{"pretest":"ts-node -P ./tsconfig.json --files ./test/scripts/initDb.ts","pretest-prod":"ts-node -P ./tsconfig.json --files ./test/scripts/initDb.ts","setup-travis":"node ./test/setupTravis.js","test":"jest --ci --config=./jest.json","test-prod":"JEST_USE_NPM_BUILD=true jest --ci --config=./test/jest-prod-config.js","view-coverage":"open ./coverage/index.html","build":"rollup -c && dts-bundle-generator -o dist/mysqldump.d.ts build-decl/main.d.ts --umd-module-name=mysqldump && rimraf build-decl","clean":"rimraf dist && rimraf build-decl","lint":"eslint src test --ext \".ts\"","start":"ts-node -P ./tsconfig.json --files ./test/scripts/launch.ts","ci":"yarn lint --quiet && yarn build"},"repository":{"type":"git","url":"git+https://github.com/assignar/mysqldump.git"},"keywords":["backup","mysql","mysql-dump","dump","restore","database","backup","database"],"author":{"name":"Brad Zacher"},"license":"MIT","bugs":{"url":"https://github.com/assignar/mysqldump/issues"},"homepage":"https://github.com/assignar/mysqldump","dependencies":{"@types/node":"^11.11.6","deepmerge":"^3.2.0","eslint-config-brad":"^1.2.0","mysql2":"^1.6.5","sql-formatter":"^2.3.2","sqlstring":"^2.3.1"},"devDependencies":{"@types/extend":"^3.0.1","@types/invariant":"^2.2.29","@types/jest":"^24.0.11","@types/mysql":"^2.15.5","@types/sqlstring":"^2.2.1","@types/tmp":"^0.0.34","babel":"^6.23.0","babel-plugin-transform-object-rest-spread":"^6.26.0","copyfiles":"^2.1.0","dts-bundle-generator":"^2.1.0","eslint-import-resolver-typescript":"^1.1.1","jest":"^24.5.0","rimraf":"^2.6.3","rollup":"^0.52.1","rollup-plugin-commonjs":"^8.2.6","rollup-plugin-typescript2":"^0.9.0","tmp":"^0.0.33","ts-jest":"^24.0.0","ts-node":"^8.0.3","typescript":"^3.3.4000"},"resolutions":{"typescript":"^3.3.4000"},"gitHead":"29aa6ca67670f811b49e78794e7704366eb111f2","_id":"mysqldump@2.3.0","_npmVersion":"6.2.0","_nodeVersion":"10.9.0","_npmUser":{"name":"bradzacher","email":"brad.zacher@gmail.com"},"dist":{"integrity":"sha512-HzaaWjzwtPT5bFc8L++dnsJRsdiXfsh8dwOEjF9Gs5XRIY2Bj/1Q0YJfT1+MqEiwcBtjK5a790DkeznGRSY8ww==","shasum":"3b72aa12debba4ec3aa7d1864c2f0a8fb27c5775","tarball":"https://registry.npmjs.org/mysqldump/-/mysqldump-2.3.0.tgz","fileCount":6,"unpackedSize":88102,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcmAfeCRA9TVsSAnZWagAAIkEP/31JBdfSzdgYzkcjwTv2\nJO9GJILPMwCwQRxw+kZeC34NvOTISkmRHOFFTfuUzhcA+PGOlqpMwpXg5FXu\nBKwazgLBHP43LhW16nRNxmBP6Y7xgFYRfchyohPYZxy2QPmF9kHLVSD0TKbx\n18uF7doIgQAi8c0cj9dNBnupfB9Wic/hpHrSq7QZ7LPbp8iXra4bjWVbNs4a\nKSDSHm2O+jfUvxa7+efgJceyzUpl7hwn45W38VIRYeh7skPLOTz/udss8NYn\nfIkW9E38wNb02UxafMZpgEYC+lPqqoWkFH2un3P4+n935pVr2X7luanQ4NS3\nxpMKeyO4mRjeexyF3EnWmMuseLAHKV2Q2OBqkzl2g7Z1zQ9aYSy3A1/EyMUG\nbyVyxK1glRhIHmM3V+pQwjTnQYYGlqjqiQ3YvXYoTWL0yEmgq2xAvUrvBs07\n4z0W3DySqUDpvVNL2LgLClyQgZdrA8fj4TKXx9dsk1RZHz46ISLhtZKcqVc9\nNUV5zWlmvXqoqfWkpdVZssRwjOxKeBiAbGWD8j3LCflPxdX7O4aGblKMlmv6\nu5QpJ6vMqP7GdCRKilpA7Hw5hhpX+pow7edk1oWJAuLjtFdlEMz2IR35Y1mM\nbxBriEazxd4B1HWJgmomA1iLTLPGHlvwJBRixQ0PyIP0SSXIPhBkHBBNUOcO\nk///\r\n=nUJM\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCbI6aVPklO0PZIdf+zYNfWl/fFWS25b8OD6ia79q0sZAIhAM3uTbF+vib4Ndr1pExC9QIXV1Rot3TrI9WJQ6UwNjai"}]},"maintainers":[{"email":"brad.zacher@gmail.com","name":"bradzacher"},{"email":"noelmartin@gmail.com","name":"dashmug"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mysqldump_2.3.0_1553467357569_0.4721762347903269"},"_hasShrinkwrap":false},"3.0.0":{"name":"mysqldump","version":"3.0.0","description":"Create a DUMP from MySQL","main":"dist/cjs.js","module":"dist/es.js","typings":"dist/mysqldump.d.ts","scripts":{"pretest":"ts-node -P ./tsconfig.json --files ./test/scripts/initDb.ts","pretest-prod":"ts-node -P ./tsconfig.json --files ./test/scripts/initDb.ts","setup-travis":"node ./test/setupTravis.js","test":"jest --ci --config=./jest.json","test-prod":"JEST_USE_NPM_BUILD=true jest --ci --config=./test/jest-prod-config.js","view-coverage":"open ./coverage/index.html","build":"rollup -c && dts-bundle-generator -o dist/mysqldump.d.ts build-decl/main.d.ts --umd-module-name=mysqldump && rimraf build-decl","clean":"rimraf dist && rimraf build-decl","format":"prettier --write \"./**/*.{ts,js,json,md}\"","format-check":"prettier --list-different \"./**/*.{ts,js,json,md}\"","lint":"eslint src test --ext \".ts\"","typecheck":"tsc --noEmit","start":"ts-node -P ./tsconfig.json --files ./test/scripts/launch.ts","ci":"yarn lint --quiet && yarn build"},"repository":{"type":"git","url":"git+https://github.com/assignar/mysqldump.git"},"keywords":["backup","mysql","mysql-dump","dump","restore","database","backup","database"],"author":{"name":"Brad Zacher"},"license":"MIT","bugs":{"url":"https://github.com/assignar/mysqldump/issues"},"homepage":"https://github.com/assignar/mysqldump","dependencies":{"deepmerge":"^3.2.0","mysql2":"^1.6.5","sql-formatter":"^2.3.2","sqlstring":"^2.3.1"},"devDependencies":{"@types/extend":"^3.0.1","@types/invariant":"^2.2.29","@types/jest":"^24.0.13","@types/mysql":"^2.15.6","@types/node":"^12.0.2","@types/sqlstring":"^2.2.1","@types/tmp":"^0.1.0","babel":"^6.23.0","babel-plugin-transform-object-rest-spread":"^6.26.0","copyfiles":"^2.1.0","dts-bundle-generator":"^3.1.0","eslint-config-brad":"^1.6.4","eslint-import-resolver-typescript":"^1.1.1","jest":"^24.8.0","prettier":"^1.17.1","rimraf":"^2.6.3","rollup":"^0.52.1","rollup-plugin-commonjs":"^8.2.6","rollup-plugin-typescript2":"^0.9.0","tmp":"^0.1.0","ts-jest":"^24.0.2","ts-node":"^8.1.0","typescript":"^3.4.5"},"resolutions":{"typescript":"^3.4.5"},"gitHead":"70c92580fca1ff30673ae958c65b6f4e0468a343","_id":"mysqldump@3.0.0","_npmVersion":"6.4.1","_nodeVersion":"10.15.3","_npmUser":{"name":"bradzacher","email":"brad.zacher@gmail.com"},"dist":{"integrity":"sha512-rAyQa8kz9h9XpxpPlh4x7IcKkBKZAvb01eJVqNX7rDA0lP5zmFJd90dwiTbHoLouZvx5a6mPpvbR5nhyg1K4Sw==","shasum":"682cc71f100c4f407bf9c1a34dce340ac2aae197","tarball":"https://registry.npmjs.org/mysqldump/-/mysqldump-3.0.0.tgz","fileCount":6,"unpackedSize":93820,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc3jcyCRA9TVsSAnZWagAA1G0P/iZrnWZ8dKzXjmIYcql5\nSerFx+sugUq3gPBH/3vcZgFFkir0aL3PV6cW6S0OntWs7Z0GyrMd+2uSpCu9\nWlTC6mWmAz+kLgyb3pmTmF61cbYblhsdzLuMDcLX6qeWqnyFCEcy35wjcpxl\nJyt0i0Cw2X/RgyLLFPUGUy0yLf6gp9ccnrdfovtjf98QaD+Xt2xyEzk6Q1cG\nPwF4m8vuC0yB0f42B75+yHNsJgakr1o/6zySSueZh6I6okD15Rp+OQgbRDjH\nUa3kO129td7str1eNRIJ1aaPpUWhP1yWhggDAfmG1dFDFTYHeC3Oy2l2Vn/b\ndqwtK+Qtu6ZJqx7rvzqSFsgt01v8TmY8Fh22uWDLR6kQCcvfRIofbJUj4Eiu\nykqWwU3q1pL5E+HaN3s7OmV3eywU/7a4gIHyiVW35fDgzXl/FzZz+AuK2hZm\nPIe+qlLLaLlKJZi4v8V+F4OsiKstaqOxTZLV4HjMsW0jFIJ+gAdoD5pKLlt8\n0JuYP7lWCYFdtvGRteVoMXCCvsl2G7qaLBJ2rvAXx1gRMrkblTeFfIWBclbg\nFUavOyzPN9nyZFEwYJSzBK06nZa2iHz21K7TF8uiM7FB/jyN7tslF7Oh30j0\nTF5l5uQ4DhQlpZzabVTtz4hsg/4AzAgmVRDG3rQgwRGi1Bv5Wj5S7+LP1sHj\ncmyc\r\n=6ogK\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDiW7ym6dmd4j7U6fTFWsuawG74+7DlBSBL60vuECakCAiEAxpblS1T90P18h6erOPZiHLghHn4xA/biRuu5jtDbMCc="}]},"maintainers":[{"email":"brad.zacher@gmail.com","name":"bradzacher"},{"email":"noelmartin@gmail.com","name":"dashmug"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mysqldump_3.0.0_1558066993427_0.8623480023320174"},"_hasShrinkwrap":false},"3.1.0":{"name":"mysqldump","version":"3.1.0","description":"Create a DUMP from MySQL","main":"dist/cjs.js","module":"dist/es.js","typings":"dist/mysqldump.d.ts","scripts":{"pretest":"ts-node -P ./tsconfig.json --files ./test/scripts/initDb.ts","pretest-prod":"ts-node -P ./tsconfig.json --files ./test/scripts/initDb.ts","setup-travis":"node ./test/setupTravis.js","test":"jest --ci --config=./jest.json","test-prod":"JEST_USE_NPM_BUILD=true jest --ci --config=./test/jest-prod-config.js","view-coverage":"open ./coverage/index.html","build":"rollup -c && dts-bundle-generator -o dist/mysqldump.d.ts build-decl/main.d.ts --umd-module-name=mysqldump && rimraf build-decl","clean":"rimraf dist && rimraf build-decl","format":"prettier --write \"./**/*.{ts,js,json,md}\"","format-check":"prettier --list-different \"./**/*.{ts,js,json,md}\"","lint":"eslint src test --ext \".ts\"","typecheck":"tsc --noEmit","start":"ts-node -P ./tsconfig.json --files ./test/scripts/launch.ts","ci":"yarn lint --quiet && yarn build"},"repository":{"type":"git","url":"git+https://github.com/assignar/mysqldump.git"},"keywords":["backup","mysql","mysql-dump","dump","restore","database","backup","database"],"author":{"name":"Brad Zacher"},"license":"MIT","bugs":{"url":"https://github.com/assignar/mysqldump/issues"},"homepage":"https://github.com/assignar/mysqldump","dependencies":{"deepmerge":"^3.2.0","mysql2":"^1.6.5","sql-formatter":"^2.3.2","sqlstring":"^2.3.1"},"devDependencies":{"@types/extend":"^3.0.1","@types/invariant":"^2.2.29","@types/jest":"^24.0.13","@types/mysql":"^2.15.6","@types/node":"^12.0.2","@types/sqlstring":"^2.2.1","@types/tmp":"^0.1.0","babel":"^6.23.0","babel-plugin-transform-object-rest-spread":"^6.26.0","copyfiles":"^2.1.0","dts-bundle-generator":"^3.1.0","eslint-config-brad":"^1.6.4","eslint-import-resolver-typescript":"^1.1.1","jest":"^24.8.0","prettier":"^1.17.1","rimraf":"^2.6.3","rollup":"^0.52.1","rollup-plugin-commonjs":"^8.2.6","rollup-plugin-typescript2":"^0.9.0","tmp":"^0.1.0","ts-jest":"^24.0.2","ts-node":"^8.1.0","typescript":"^3.4.5"},"resolutions":{"typescript":"^3.4.5"},"gitHead":"fe4f4a2309998518d3508f78d2894f364275c382","_id":"mysqldump@3.1.0","_npmVersion":"6.4.1","_nodeVersion":"10.15.3","_npmUser":{"name":"bradzacher","email":"brad.zacher@gmail.com"},"dist":{"integrity":"sha512-3tx9wIuhfXYe5trzCB23QZosQef+cPdyq+ZqHtmD0MPIXEHwEHUDpTIrV8YXXG0miuXJtmRk7g5vDaPJSWEj5A==","shasum":"5ffa95ddf3dceee55b052806c2e1f46136d8a1d2","tarball":"https://registry.npmjs.org/mysqldump/-/mysqldump-3.1.0.tgz","fileCount":6,"unpackedSize":100100,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdOHy8CRA9TVsSAnZWagAAvsUP/2Pu51AmGI/sj+RPzlKO\noZC4FzJFuxFXlmF0au30Z7O/mxG/n+5fP9TbKXH8hmqL0LjI1fM0foqUKJUh\nNz8HSU3bQnwkMXn8yYwtEvFdtBmkTkzo5ll+ikZ9eqsnKMO3ctDI4l6yMHNC\n6JotAOWBFottSsEEmTpR1eNR//ohRQnY5/gTfQM4UpNfI4gOUgYzemOAQ7lj\nrlYrdh5Y+qCL7aQypSyKMW0VEJkBXMwYQLbVaOq/A4DJJVMqv2xrALmy8bcb\nuUTTSjkYf54Ur8IQLw28ho869fHO/DXoIM1se71KyLmPQJ+xoEiPQ7+Mz1Tv\nlBz3zNtrnrsx01bXSD/B5JN/wICM3a7voajHkMEBJQybW535+jXLNJ0VJQUx\npEPT6lIkB/SwQHw2P2eCxvFXFKbB7i2Pxdb/nmizsF32qOwYnDnCS4Cgjmaz\nkxzZ0jy49F9FCQixLW6NgHXRdqbKrqe35kUbYq+LTbWkkvov7TP6x3xlyfQs\nixnuEV4skuIHppjekuNy/5GgBz3Kd8bMpPFZ2rBiMUlsKiUAHiRYp/7f+p+x\nXUIfzsNIOWIA2qMXatr2SwKx1jM+qF7/Jx4b4WOX9QdhEro3hdya98am2SUQ\ngVwEhss8y8MgZuRXdJrhN8ziTMU4RB/wcMxk03ZoNAZ7r44GbeTRZ3rHlGqE\nz/96\r\n=Lub4\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGeju9fWj/NuszJvWHFvCiGqvmd6mrireQ1l4uaf1kyvAiAxSMZl+3n0z2ER2wUfVa4RZhJ3aEonUc3QGEF9yvzELA=="}]},"maintainers":[{"email":"brad.zacher@gmail.com","name":"bradzacher"},{"email":"noelmartin@gmail.com","name":"dashmug"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mysqldump_3.1.0_1563983035591_0.7243304528631582"},"_hasShrinkwrap":false},"3.2.0":{"name":"mysqldump","version":"3.2.0","description":"Create a DUMP from MySQL","main":"dist/cjs.js","module":"dist/es.js","typings":"dist/mysqldump.d.ts","scripts":{"pretest":"ts-node -P ./tsconfig.json --files ./test/scripts/initDb.ts","pretest-prod":"ts-node -P ./tsconfig.json --files ./test/scripts/initDb.ts","setup-actions":"node ./test/setupGHActions.js","test":"jest --ci --config=./jest.json","test-prod":"JEST_USE_NPM_BUILD=true jest --ci --config=./test/jest-prod-config.js","view-coverage":"open ./coverage/index.html","build":"rollup -c && dts-bundle-generator -o dist/mysqldump.d.ts build-decl/main.d.ts --umd-module-name=mysqldump && rimraf build-decl","clean":"rimraf dist && rimraf build-decl","format":"prettier --write \"./**/*.{ts,js,json,md}\"","format-check":"prettier --list-different \"./**/*.{ts,js,json,md}\"","lint":"eslint src test --ext \".ts\"","typecheck":"tsc --noEmit","start":"ts-node -P ./tsconfig.json --files ./test/scripts/launch.ts","ci":"yarn lint --quiet && yarn build"},"repository":{"type":"git","url":"git+https://github.com/assignar/mysqldump.git"},"keywords":["backup","mysql","mysql-dump","dump","restore","database","backup","database"],"author":{"name":"Brad Zacher"},"license":"MIT","bugs":{"url":"https://github.com/assignar/mysqldump/issues"},"homepage":"https://github.com/assignar/mysqldump","dependencies":{"deepmerge":"^3.2.0","mysql2":"^2.1.0","sql-formatter":"^2.3.2","sqlstring":"^2.3.1"},"devDependencies":{"@types/extend":"^3.0.1","@types/invariant":"^2.2.29","@types/jest":"^24.0.13","@types/mysql":"^2.15.6","@types/node":"^12.0.2","@types/sqlstring":"^2.2.1","@types/tmp":"^0.1.0","babel":"^6.23.0","babel-plugin-transform-object-rest-spread":"^6.26.0","copyfiles":"^2.1.0","dts-bundle-generator":"^3.1.0","eslint-config-brad":"^1.6.4","eslint-import-resolver-typescript":"^1.1.1","jest":"^24.8.0","prettier":"^1.17.1","rimraf":"^2.6.3","rollup":"^0.52.1","rollup-plugin-commonjs":"^8.2.6","rollup-plugin-typescript2":"^0.9.0","tmp":"^0.1.0","ts-jest":"^24.0.2","ts-node":"^8.1.0","typescript":"^3.4.5"},"resolutions":{"typescript":"^3.4.5"},"gitHead":"1af4672a68bc700f1a39182f3746592865748163","_id":"mysqldump@3.2.0","_nodeVersion":"12.14.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-hS4jUk23BT+qZEwp668eGwyFhmsDFHkIDYANLFeNXlvPK1AhOMLV+SGoKpAk8290sUhtUAIG16R3YrNhHmZ+zQ==","shasum":"780abaf82f5c3f216d4e16db585092389d2a5497","tarball":"https://registry.npmjs.org/mysqldump/-/mysqldump-3.2.0.tgz","fileCount":6,"unpackedSize":100104,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe3XyGCRA9TVsSAnZWagAAkO0P/jYdspmaHT7jbMEW1gX1\nUoy2udN0FPP3qwgh5Gdy1Xh6hXZlqN/UqGSnRTqP2vhs9El6IfCyHIgXasXU\nOwUG+YHkPi2P6TKjt12isxtjGIDPL3lw94rWE5t0cUCqXHzypRTGe/NzgB0u\nnPnZ4RH9/n8MQiNrqtzHWJYldOC7XgK+gQn8UOCLj11JENNplpoCiLntDVPl\nrcbw7rWlu5oowIhgAtvSa7vXhIdQrs5WkSGoD05ZZUc/3o6k5oDb++6kZBRE\nls23KdBiJNW18BPOkM+kFAVuq2kJjb6qOQjXp6HwomnbzdRaeYjQq5/H+Gmn\nflGW4irf39zJkVOKkylI642lDIwFqACtvdWwt5K4jUw7MfqLsrrXO917aRks\nLaT+7HuWFb+C0elNN4pzI+ZCbRgxeDWWX+6RAe581sF+9Ag6ExYWPViJ0dQf\nVB7sLZ6Pzx2gU/2PD6Rfi5pR+lZXzV1fWEV2dWTCbiHIfa7Ft9+I12ffFoK6\nLJOfJ9S5SrHCWuxX8ElRWL1TeJZnEQ/zj3U4dYoN9JBzy2RvOfkx/mJnuOcJ\nmDpBXMtTMkRWIGMCv0u+rvJN4oHhCrJWNSxhwleYW/C9fukddPtpE+2Bix2Y\nEyLckscC1RKmvYaqVRWRo94IDmjkOX0ZT0SbCy9qH/eRGz1Wbi6iebfIDNye\n3WtS\r\n=AYdm\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDABProAU9WZcx5dXNc3YOPAcbtwA7LZe8eJ9lHdtwnCAIhAK+1PXBEL6x6FePQmlh2CGhYxWH50KK3a22bQWca2Y4i"}]},"maintainers":[{"email":"brad.zacher@gmail.com","name":"bradzacher"},{"email":"noelmartin@gmail.com","name":"dashmug"}],"_npmUser":{"name":"bradzacher","email":"brad.zacher@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mysqldump_3.2.0_1591573637957_0.9390599931180026"},"_hasShrinkwrap":false}},"readme":"# Mysql Dump\n\n[![npm version](https://badge.fury.io/js/mysqldump.svg)](https://npmjs.com/package/mysqldump) [![Build Status](https://travis-ci.org/bradzacher/mysqldump.svg)](https://travis-ci.org/bradzacher/mysqldump)\n\nCreate a backup of a MySQL database.\n\n## Installation\n\n```bash\n$ npm install mysqldump\n```\n\nIf you're using this package in typescript, you should also\n\n```bash\n$ npm install @types/node\n```\n\n## Usage\n\n```typescript\nimport mysqldump from 'mysqldump';\n// or const mysqldump = require('mysqldump')\n\n// dump the result straight to a file\nmysqldump({\n    connection: {\n        host: 'localhost',\n        user: 'root',\n        password: '123456',\n        database: 'my_database',\n    },\n    dumpToFile: './dump.sql',\n});\n\n// dump the result straight to a compressed file\nmysqldump({\n    connection: {\n        host: 'localhost',\n        user: 'root',\n        password: '123456',\n        database: 'my_database',\n    },\n    dumpToFile: './dump.sql.gz',\n    compressFile: true,\n});\n\n// return the dump from the function and not to a file\nconst result = await mysqldump({\n    connection: {\n        host: 'localhost',\n        user: 'root',\n        password: '123456',\n        database: 'my_database',\n    },\n});\n```\n\n## Result\n\nThe returned result contains the dump property, which is split into schema and data.\n\n```TS\nexport default interface DumpReturn {\n    /**\n     * The result of the dump\n     */\n    dump : {\n        /**\n         * The concatenated SQL schema dump for the entire database.\n         * Null if configured not to dump.\n         */\n        schema : string | null\n        /**\n         * The concatenated SQL data dump for the entire database.\n         * Null if configured not to dump.\n         */\n        data : string | null\n        /**\n         * The concatenated SQL trigger dump for the entire database.\n         * Null if configured not to dump.\n         */\n        trigger : string | null\n    }\n    tables : Table[]\n}\n\n```\n\n## Options\n\nAll the below options are documented in the [typescript declaration file](./dist/mysqldump.d.ts):\n\n```TS\nexport interface ConnectionOptions {\n    /**\n     * The database host to connect to.\n     * Defaults to 'localhost'.\n     */\n    host?: string;\n    /**\n     * The port on the host to connect to.\n     * Defaults to 3306.\n     */\n    port?: number;\n    /**\n     * The database to dump.\n     */\n    database: string;\n    /**\n     * The DB username to use to connect.\n     */\n    user: string;\n    /**\n     * The password to use to connect.\n     */\n    password: string;\n    /**\n     * The charset to use for the connection.\n     * Defaults to 'UTF8_GENERAL_CI'.\n     */\n    charset?: string;\n    /**\n     * SSL configuration options.\n     * Passing 'Amazon RDS' will use Amazon's RDS CA certificate.\n     *\n     * Otherwise you can pass the options which get passed to tls.createSecureContext.\n     * See: https://nodejs.org/api/tls.html#tls_tls_createsecurecontext_options\n     */\n    ssl?: 'Amazon RDS' | null | {\n        /**\n         * Optionally override the trusted CA certificates. Default is to trust the well-known CAs curated by Mozilla.\n         */\n        ca?: string | Buffer;\n        /**\n         * Optional cert chains in PEM format.\n         */\n        cert?: string | Buffer;\n        /**\n         * Optional cipher suite specification, replacing the default.\n         */\n        ciphers?: string;\n        /**\n         * Optional PEM formatted CRLs (Certificate Revocation Lists).\n         */\n        crl?: string | Array<string>;\n        /**\n         * Attempt to use the server's cipher suite preferences instead of the client's.\n         */\n        honorCipherOrder?: boolean;\n        /**\n         * Optional private keys in PEM format.\n         */\n        key?: string | Buffer;\n        /**\n         * Optional shared passphrase used for a single private key and/or a PFX.\n         */\n        passphrase?: string;\n        /**\n         * Optional PFX or PKCS12 encoded private key and certificate chain.\n         */\n        pfx?: string | Buffer;\n        /**\n         * DO NOT USE THIS OPTION UNLESS YOU REALLY KNOW WHAT YOU ARE DOING!!!\n         * Set to false to allow connection to a MySQL server without properly providing the appropraite CA to trust.\n         */\n        rejectUnauthorized?: boolean;\n    };\n}\nexport interface SchemaDumpOptions {\n    /**\n     * True to include autoincrement values in schema, false otherwise.\n     * Defaults to true.\n     */\n    autoIncrement?: boolean;\n    /**\n     * True to include engine values in schema, false otherwise.\n     * Defaults to true.\n     */\n    engine?: boolean;\n    /**\n     * True to run a sql formatter over the output, false otherwise.\n     * Defaults to true.\n     */\n    format?: boolean;\n    /**\n     * Options for table dumps\n     */\n    table?: {\n        /**\n         * Guard create table calls with an \"IF NOT EXIST\"\n         * Defaults to true.\n         */\n        ifNotExist?: boolean;\n        /**\n         * Drop tables before creation (overrides `ifNotExist`).\n         * Defaults to false.\n         */\n        dropIfExist?: boolean;\n        /**\n         * Include the `DEFAULT CHARSET = x` at the end of the table definition\n         * Set to true to include the value form the DB.\n         * Set to false to exclude it altogether.\n         * Set to a string to explicitly set the charset.\n         * Defaults to true.\n         */\n        charset?: boolean | string;\n    };\n    view?: {\n        /**\n         * Uses `CREATE OR REPLACE` to define views.\n         * Defaults to true.\n         */\n        createOrReplace?: boolean;\n        /**\n         * Include the `DEFINER = {\\`user\\`@\\`host\\` | CURRENT_USER}` in the view definition or not\n         * Defaults to false.\n         */\n        definer?: boolean;\n        /**\n         * Include the `ALGORITHM = {UNDEFINED | MERGE | TEMPTABLE}` in the view definition or not\n         * Defaults to false.\n         */\n        algorithm?: boolean;\n        /**\n         * Incldue the `SQL SECURITY {DEFINER | INVOKER}` in the view definition or not\n         * Defaults to false.\n         */\n        sqlSecurity?: boolean;\n    };\n}\nexport interface TriggerDumpOptions {\n    /**\n     * The temporary delimiter to use between statements.\n     * Set to false to not use delmiters\n     * Defaults to ';;'.\n     */\n    delimiter?: string | false;\n    /**\n     * Drop triggers before creation.\n     * Defaults to false.\n     */\n    dropIfExist?: boolean;\n    /**\n     * Include the `DEFINER = {\\`user\\`@\\`host\\` | CURRENT_USER}` in the view definition or not\n     * Defaults to false.\n     */\n    definer?: boolean;\n}\nexport interface DataDumpOptions {\n    /**\n     * True to run a sql formatter over the output, false otherwise.\n     * Defaults to true.\n     */\n    format?: boolean;\n    /**\n     * Include file headers in output\n     * Defaults to true.\n     */\n    verbose?: boolean;\n    /**\n     * Use a read lock during the data dump (see: https://dev.mysql.com/doc/refman/5.7/en/replication-solutions-backups-read-only.html)\n     * Defaults to false.\n     */\n    lockTables?: boolean;\n    /**\n     * Dump data from views.\n     * Defaults to false.\n     */\n    includeViewData?: boolean;\n    /**\n     * Maximum number of rows to include in each multi-line insert statement\n     * Defaults to 1 (i.e. new statement per row).\n     */\n    maxRowsPerInsertStatement?: number;\n    /**\n     * True to return the data in a function, false to not.\n     * This is useful in databases with a lot of data.\n     *\n     * We stream data from the DB to reduce the memory footprint.\n     * However note that if you want the result returned from the function,\n     * this will result in a larger memory footprint as the string has to be stored in memory.\n     *\n     * Defaults to false if dumpToFile is truthy, or true if not dumpToFile is falsey.\n     */\n    returnFromFunction?: boolean;\n    /**\n     * A map of tables to additional where strings to add.\n     * Use this to limit the number of data that is dumped.\n     * Defaults to no limits\n     */\n    where?: {\n        [k: string]: string;\n    };\n}\nexport interface DumpOptions {\n    /**\n     * The list of tables that you want to dump.\n     * Defaults to all tables (signalled by passing an empty array).\n     */\n    tables?: Array<string>;\n    /**\n     * True to use the `tables` options as a blacklist, false to use it as a whitelist.\n     * Defaults to false.\n     */\n    excludeTables?: boolean;\n    /**\n     * Explicitly set to false to not include the schema in the dump.\n     * Defaults to including the schema.\n     */\n    schema?: false | SchemaDumpOptions;\n    /**\n     * Explicitly set to false to not include data in the dump.\n     * Defaults to including the data.\n     */\n    data?: false | DataDumpOptions;\n    /**\n     * Explicitly set to false to not include triggers in the dump.\n     * Defaults to including the triggers.\n     */\n    trigger?: false | TriggerDumpOptions;\n}\nexport interface Options {\n    /**\n     * Database connection options\n     */\n    connection: ConnectionOptions;\n    /**\n     * Dump configuration options\n     */\n    dump?: DumpOptions;\n    /**\n     * Set to a path to dump to a file.\n     * Exclude to just return the string.\n     */\n    dumpToFile?: string | null;\n    /**\n     * Should the output file be compressed (gzip)?\n     * Defaults to false.\n     */\n    compressFile?: boolean;\n}\nexport interface ColumnList {\n    /**\n     * Key is the name of the column\n     */\n    [k: string]: {\n        /**\n         * The type of the column as reported by the underlying DB.\n         */\n        type: string;\n        /**\n         * True if the column is nullable, false otherwise.\n         */\n        nullable: boolean;\n    };\n}\nexport interface Table {\n    /**\n     * The name of the table.\n     */\n    name: string;\n    /**\n     * The raw SQL schema dump for the table.\n     * Null if configured to not dump.\n     */\n    schema: string | null;\n    /**\n     * The raw SQL data dump for the table.\n     * Null if configured to not dump.\n     */\n    data: string | null;\n    /**\n     * The list of column definitions for the table.\n     */\n    columns: ColumnList;\n    /**\n     * An ordered list of columns (for consistently outputing as per the DB definition)\n     */\n    columnsOrdered: Array<string>;\n    /**\n     * True if the table is actually a view, false otherwise.\n     */\n    isView: boolean;\n    /**\n     * A list of triggers attached to the table\n     */\n    triggers: Array<string>;\n}\nexport interface DumpReturn {\n    /**\n     * The result of the dump\n     */\n    dump: {\n        /**\n         * The concatenated SQL schema dump for the entire database.\n         * Null if configured not to dump.\n         */\n        schema: string | null;\n        /**\n         * The concatenated SQL data dump for the entire database.\n         * Null if configured not to dump.\n         */\n        data: string | null;\n        /**\n         * The concatenated SQL trigger dump for the entire database.\n         * Null if configured not to dump.\n         */\n        trigger: string | null;\n    };\n    tables: Array<Table>;\n}\nexport default function main(inputOptions: Options): Promise<DumpReturn>;\n\nexport as namespace mysqldump;\n```\n\n---\n\nThe MIT [License](./LICENSE.md)\n\n## Contributing\n\n### Local Installation\n\nMake sure to first install all the required development dependencies:\n\n```shell\nyarn\n// or\nnpm install .\n```\n\n### Linting\n\nWe use [eslint](https://www.npmjs.com/package/eslint) in conjunction with [typescript-eslint-parser](https://www.npmjs.com/package/typescript-eslint-parser) for code linting.\n\nPRs are required to pass the linting with no errors and preferrably no warnings.\n\n### Testing\n\nTests can be run via the `test` script - `yarn test` / `npm test`.\n\nAdditionally it's required that you do a build and run your test against the public package to ensure the build doesn't cause regressions - `yarn run test-prod` / `npm run test-prod`.\n\nPRs are required to maintain the 100% test coverage, and all tests must pass successfully.\n","maintainers":[{"email":"brad.zacher@gmail.com","name":"bradzacher"},{"email":"noelmartin@gmail.com","name":"dashmug"}],"time":{"modified":"2022-06-20T18:26:39.830Z","created":"2015-09-21T02:04:29.734Z","1.0.0":"2015-09-21T02:04:29.734Z","1.0.1":"2015-09-21T02:11:57.326Z","1.0.2":"2015-09-22T21:39:08.194Z","1.1.0":"2016-05-19T19:03:38.372Z","1.1.1":"2016-05-21T01:14:11.915Z","1.2.0":"2016-07-04T16:30:23.456Z","1.3.0":"2016-09-28T09:40:01.753Z","1.3.1":"2016-11-06T12:00:29.646Z","1.4.0":"2017-04-11T20:29:44.177Z","1.4.1":"2017-04-11T20:30:37.884Z","1.4.2":"2017-04-11T20:31:25.898Z","2.2.0":"2018-07-19T01:32:45.227Z","2.2.0-rc.0":"2018-07-19T01:48:47.642Z","2.2.0-rc.1":"2018-07-19T01:49:15.986Z","2.2.1":"2018-07-19T01:56:24.485Z","2.3.0":"2019-03-24T22:42:37.785Z","3.0.0":"2019-05-17T04:23:13.542Z","3.1.0":"2019-07-24T15:43:55.787Z","3.2.0":"2020-06-07T23:47:18.111Z"},"homepage":"https://github.com/assignar/mysqldump","keywords":["backup","mysql","mysql-dump","dump","restore","database","backup","database"],"repository":{"type":"git","url":"git+https://github.com/assignar/mysqldump.git"},"author":{"name":"Brad Zacher"},"bugs":{"url":"https://github.com/assignar/mysqldump/issues"},"license":"MIT","readmeFilename":"README.md","users":{"warapitiya":true,"fahadfarooqmurawat":true,"marcode_ely":true,"zhaojunlike":true,"losymear":true}}