@sqb/migrator 4.13.0 → 4.14.0

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 postgresql_client_1 = require("postgresql-client");
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, postgresql_client_1.stringifyValueForSQL)(row[keys[i]]);
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 'postgresql-client';
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.13.0",
4
+ "version": "4.14.0",
5
5
  "author": "Panates",
6
6
  "contributors": [
7
7
  "Eray Hanoglu <e.hanoglu@panates.com>",
@@ -40,12 +40,12 @@
40
40
  "ts-gems": "^3.4.0"
41
41
  },
42
42
  "peerDependencies": {
43
- "@sqb/builder": "^4.13.0",
44
- "@sqb/connect": "^4.13.0",
45
- "@sqb/postgres": "^4.13.0"
43
+ "@sqb/builder": "^4.14.0",
44
+ "@sqb/connect": "^4.14.0",
45
+ "@sqb/postgres": "^4.14.0"
46
46
  },
47
47
  "devDependencies": {
48
- "postgresql-client": "^2.12.0"
48
+ "postgrejs": "^2.15.1"
49
49
  },
50
50
  "engines": {
51
51
  "node": ">=16.0",
@@ -1,4 +1,4 @@
1
- import { Connection } from 'postgresql-client';
1
+ import { Connection } from 'postgrejs';
2
2
  import { StrictOmit } from 'ts-gems';
3
3
  import type { DbMigratorOptions } from '../db-migrator.js';
4
4
  import { MigrationAdapter } from '../migration-adapter.js';