pg-manipulator 1.0.3 → 1.0.4
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.
|
@@ -12,7 +12,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
12
12
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
13
|
};
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
const database_1 = __importDefault(require("
|
|
15
|
+
const database_1 = __importDefault(require("../../database"));
|
|
16
16
|
const users_1 = __importDefault(require("./users"));
|
|
17
17
|
exports.default = {
|
|
18
18
|
query(query_string_1, query_params_1) {
|
|
@@ -9,7 +9,7 @@ class entity_store extends base_1.default {
|
|
|
9
9
|
super('', '');
|
|
10
10
|
this.index = 1;
|
|
11
11
|
this.database = database;
|
|
12
|
-
this.import_general = `import db from '
|
|
12
|
+
this.import_general = `import db from '../../database'\nimport { PoolClient } from 'pg'\nimport { pool_tsx } from '../../@types'\n`;
|
|
13
13
|
this.export_general = `\nexport default {
|
|
14
14
|
async query(query_string: string, query_params: Array<any>, transaction: PoolClient | any = undefined) {
|
|
15
15
|
return await db.query('${database}', query_string, query_params, transaction)
|