pg-manipulator 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.
|
@@ -120,7 +120,7 @@ class select_factory {
|
|
|
120
120
|
prepare() {
|
|
121
121
|
return __awaiter(this, void 0, void 0, function* () {
|
|
122
122
|
var _a;
|
|
123
|
-
console.log(this.fields);
|
|
123
|
+
console.log(this.fields, 'select');
|
|
124
124
|
this.schema = (yield Promise.resolve(`${`../../mapping/${this.database}/${this.table}.js`}`).then(s => __importStar(require(s)))).default;
|
|
125
125
|
this.params = [];
|
|
126
126
|
this.query += 'SELECT ';
|
|
@@ -52,7 +52,7 @@ function where(database_1, table_1, fields_1, index_1, addQuery_1, addParam_1) {
|
|
|
52
52
|
position = index;
|
|
53
53
|
const schema = (yield Promise.resolve(`${`../../mapping/${database}/index.js`}`).then(s => __importStar(require(s)))).default[table];
|
|
54
54
|
addQuery(initialized_clausule);
|
|
55
|
-
console.log(fields);
|
|
55
|
+
console.log(fields, 'where');
|
|
56
56
|
for (let colum of schema.columns) {
|
|
57
57
|
if (!fields || ['undefined', 'function'].indexOf(typeof fields[colum.name]) > -1) {
|
|
58
58
|
continue;
|