@sqb/migrator 4.13.0 → 4.14.1
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.
|
@@ -4,7 +4,7 @@ exports.PgMigrationAdapter = void 0;
|
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const postgres_1 = require("@sqb/postgres");
|
|
6
6
|
const path_1 = tslib_1.__importDefault(require("path"));
|
|
7
|
-
const
|
|
7
|
+
const postgrejs_1 = require("postgrejs");
|
|
8
8
|
const migration_adapter_js_1 = require("../migration-adapter.js");
|
|
9
9
|
const migration_package_js_1 = require("../migration-package.js");
|
|
10
10
|
const types_js_1 = require("../types.js");
|
|
@@ -208,7 +208,7 @@ CREATE TABLE IF NOT EXISTS ${adapter.eventTableFull}
|
|
|
208
208
|
const keys = Object.keys(row);
|
|
209
209
|
sql += `insert into ${tableName} (${keys}) values (`;
|
|
210
210
|
for (let i = 0; i < keys.length; i++) {
|
|
211
|
-
sql += (i ? ', ' : '') + (0,
|
|
211
|
+
sql += (i ? ', ' : '') + (0, postgrejs_1.stringifyValueForSQL)(row[keys[i]]);
|
|
212
212
|
}
|
|
213
213
|
sql += ');\n';
|
|
214
214
|
return sql;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PgAdapter } from '@sqb/postgres';
|
|
2
2
|
import path from 'path';
|
|
3
|
-
import { stringifyValueForSQL } from '
|
|
3
|
+
import { stringifyValueForSQL } from 'postgrejs';
|
|
4
4
|
import { MigrationAdapter } from '../migration-adapter.js';
|
|
5
5
|
import { isCustomMigrationTask, isInsertDataMigrationTask, isSqlScriptMigrationTask, } from '../migration-package.js';
|
|
6
6
|
import { MigrationStatus } from '../types.js';
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sqb/migrator",
|
|
3
3
|
"description": "Database migrator for SQB",
|
|
4
|
-
"version": "4.
|
|
4
|
+
"version": "4.14.1",
|
|
5
5
|
"author": "Panates",
|
|
6
6
|
"contributors": [
|
|
7
7
|
"Eray Hanoglu <e.hanoglu@panates.com>",
|
|
@@ -36,16 +36,16 @@
|
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"fast-glob": "^3.3.2",
|
|
39
|
-
"strict-typed-events": "^2.
|
|
39
|
+
"strict-typed-events": "^2.4.0",
|
|
40
40
|
"ts-gems": "^3.4.0"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
43
|
-
"@sqb/builder": "^4.
|
|
44
|
-
"@sqb/connect": "^4.
|
|
45
|
-
"@sqb/postgres": "^4.
|
|
43
|
+
"@sqb/builder": "^4.14.1",
|
|
44
|
+
"@sqb/connect": "^4.14.1",
|
|
45
|
+
"@sqb/postgres": "^4.14.1"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
|
-
"
|
|
48
|
+
"postgrejs": "^2.15.4"
|
|
49
49
|
},
|
|
50
50
|
"engines": {
|
|
51
51
|
"node": ">=16.0",
|