Comparing version 0.5.0-alpha.4 to 0.5.0-alpha.5
@@ -58,7 +58,7 @@ 'use strict'; | ||
class Connection { | ||
constructor({ database, mode }) { | ||
constructor({ database, mode, logger }) { | ||
const { Database, OPEN_READWRITE, OPEN_CREATE } = sqlite; | ||
if (mode == null) mode = OPEN_READWRITE | OPEN_CREATE; | ||
this.database = new Database(database, mode); | ||
this.logger = { info: debug }; | ||
this.logger = logger; | ||
} | ||
@@ -102,4 +102,5 @@ | ||
super(name, opts); | ||
const { logger } = this; | ||
this.type = 'sqlite'; | ||
this.connections = [ new Connection(opts) ]; | ||
this.connections = [ new Connection({ ...opts, logger }) ]; | ||
this.callbacks = []; | ||
@@ -106,0 +107,0 @@ } |
{ | ||
"name": "leoric", | ||
"version": "0.5.0-alpha.4", | ||
"version": "0.5.0-alpha.5", | ||
"description": "JavaScript Object-relational mapping alchemy", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
159621
4581