doix-db 1.0.21 → 1.0.23

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.
package/README.md CHANGED
@@ -3,10 +3,10 @@
3
3
 
4
4
  # node-doix-db
5
5
  `doix-db` is a plug in for [doix](https://github.com/do-/node-doix) framework implementing a common interface to relational databases. It features:
6
- * [DbClient](DbClient) — the database API available to `doix` [Job](https://github.com/do-/node-doix/wiki/Job)s;
7
- * [DbModel](DbModel) — the set of classes representing the database structure;
8
- * [DbQuery](DbQuery) — a `DbModel` based `SELECT` builder;
9
- * [DbMigrationPlan](DbMigrationPlan) — a diff/patch tool to compare existing database structure with the required `DbModel`;
10
- * [DbLang](DbLang) — a set of SQL generating functions for miscellaneous application tasks.
6
+ * [DbClient](https://github.com/do-/node-doix-db/wiki/DbClient) — the database API available to `doix` [Job](https://github.com/do-/node-doix/wiki/Job)s;
7
+ * [DbModel](https://github.com/do-/node-doix-db/wiki/DbModel) — the set of classes representing the database structure;
8
+ * [DbQuery](https://github.com/do-/node-doix-db/wiki/DbQuery) — a `DbModel` based `SELECT` builder;
9
+ * [DbMigrationPlan](https://github.com/do-/node-doix-db/wiki/DbMigrationPlan) — a `DbModel` based deployment automation tool;
10
+ * [DbLang](https://github.com/do-/node-doix-db/wiki/DbLang) — a set of SQL generating functions for miscellaneous application tasks.
11
11
 
12
- * More information is available at https://github.com/do-/node-doix-db/wiki
12
+ * More information is available at https://github.com/do-/node-doix-db/wiki
package/lib/DbCall.js CHANGED
@@ -89,6 +89,8 @@ class DbCall extends EventEmitter {
89
89
  this.params = params
90
90
  this.options = options
91
91
 
92
+ this.on ('error', error => this.error = error)
93
+
92
94
  }
93
95
 
94
96
  get objectMode () {
@@ -242,7 +244,7 @@ class DbCall extends EventEmitter {
242
244
  }
243
245
  catch (error) {
244
246
 
245
- this.emit ('error', this.error = error)
247
+ this.emit ('error', error)
246
248
 
247
249
  throw error
248
250
 
package/lib/DbClient.js CHANGED
@@ -121,6 +121,8 @@ class DbClient extends EventEmitter {
121
121
 
122
122
  await call.exec ()
123
123
 
124
+ call.finish ()
125
+
124
126
  return call
125
127
 
126
128
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "doix-db",
3
- "version": "1.0.21",
3
+ "version": "1.0.23",
4
4
  "description": "Shared database related code for doix",
5
5
  "main": "index.js",
6
6
  "files": [