objection
Advanced tools
Comparing version 2.2.2 to 2.2.3
@@ -9,2 +9,3 @@ 'use strict'; | ||
this.debug = false; | ||
this.schema = undefined; | ||
} | ||
@@ -19,2 +20,3 @@ | ||
copy.debug = this.debug; | ||
copy.schema = this.schema; | ||
@@ -21,0 +23,0 @@ return copy; |
@@ -847,4 +847,7 @@ 'use strict'; | ||
const columnInfoQuery = knex(last(tableParts)).columnInfo(); | ||
const schema = this.internalOptions().schema; | ||
if (tableParts.length > 1) { | ||
if (schema) { | ||
columnInfoQuery.withSchema(schema); | ||
} else if (tableParts.length > 1) { | ||
columnInfoQuery.withSchema(tableParts[0]); | ||
@@ -861,2 +864,3 @@ } | ||
withSchema(schema) { | ||
this.internalOptions().schema = schema; | ||
this.internalContext().onBuild.push(builder => { | ||
@@ -863,0 +867,0 @@ if (!builder.has(/withSchema/)) { |
{ | ||
"name": "objection", | ||
"version": "2.2.2", | ||
"version": "2.2.3", | ||
"description": "An SQL-friendly ORM for Node.js", | ||
@@ -5,0 +5,0 @@ "main": "lib/objection.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
640500
19886