ismx-nexo-node-app 0.4.134 → 0.4.135

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.
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ const RepositoryDatabasePostgres_1 = require("../RepositoryDatabasePostgres");
3
4
  class PostgresUtils {
4
5
  static camelToSnake(column) {
5
6
  return column.replace(/([A-Z])/g, '_$1').toLowerCase();
@@ -53,5 +54,8 @@ class PostgresUtils {
53
54
  result[key] = value;
54
55
  return result;
55
56
  }
57
+ static op(vals, toWhere) {
58
+ return new RepositoryDatabasePostgres_1.PgOperator(vals, toWhere);
59
+ }
56
60
  }
57
61
  exports.default = PostgresUtils;
@@ -1,4 +1,4 @@
1
- import { Column } from "../RepositoryDatabasePostgres";
1
+ import { Column, PgOperator } from "../RepositoryDatabasePostgres";
2
2
  import { Valuable } from "../RepositoryDatabase";
3
3
  export default abstract class PostgresUtils {
4
4
  static camelToSnake(column: string): string;
@@ -15,4 +15,5 @@ export default abstract class PostgresUtils {
15
15
  static fromEntries(iterable: [string, any][]): {
16
16
  [key: string]: any;
17
17
  };
18
+ static op(vals: Valuable[], toWhere: (column: string, params: string[]) => string): PgOperator;
18
19
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ismx-nexo-node-app",
3
- "version": "0.4.134",
3
+ "version": "0.4.135",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "build": "rm -rf ./dist && npx tsc",
@@ -68,4 +68,8 @@ export default abstract class PostgresUtils
68
68
  result[key] = value;
69
69
  return result;
70
70
  }
71
+
72
+ static op(vals: Valuable[], toWhere: (column: string, params: string[]) => string): PgOperator {
73
+ return new PgOperator(vals, toWhere);
74
+ }
71
75
  }