db-migrate 0.11.9 → 0.11.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,22 @@
1
+ const path = require('path');
2
+ const log = require('db-migrate-shared').log;
3
+
4
+ async function prepare (internals, config) {
5
+ const index = require('../../connect');
6
+
7
+ return index.driver({
8
+ config: config.getCurrent().settings,
9
+ internals: internals
10
+ });
11
+ }
12
+
13
+ module.exports = async function (internals, config) {
14
+ const driver = await prepare(internals, config);
15
+
16
+ try {
17
+ const res = await driver.backupGet(internals.argv);
18
+ return internals.onComplete(driver, internals, null, res);
19
+ } catch (err) {
20
+ return internals.onComplete(driver, internals, err);
21
+ }
22
+ };
@@ -8,6 +8,7 @@ const files = {
8
8
  "create-migration": require('./create-migration.js'),
9
9
  "db": require('./db.js'),
10
10
  "down": require('./down.js'),
11
+ "dump": require('./dump.js'),
11
12
  "fn/plugin": require('./fn/plugin.js'),
12
13
  "generated": require('./generated.js'),
13
14
  "helper/assert": require('./helper/assert.js'),
package/package.json CHANGED
@@ -31,7 +31,7 @@
31
31
  "programable",
32
32
  "api"
33
33
  ],
34
- "version": "0.11.9",
34
+ "version": "0.11.13",
35
35
  "engines": {
36
36
  "node": ">=8.0.0"
37
37
  },
@@ -76,6 +76,10 @@
76
76
  "rimraf": "^2.6.2",
77
77
  "sinon": "^4.1.2"
78
78
  },
79
+ "funding": {
80
+ "type": "opencollective",
81
+ "url": "https://opencollective.com/node-db-migrate"
82
+ },
79
83
  "scripts": {
80
84
  "prepublishOnly": "node generateLoader.js",
81
85
  "pretest": "eslint *.js lib/*.js test/*.js bin/*",