@atscript/db-postgres 0.1.101 → 0.1.103
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.
- package/dist/index.cjs +2 -1
- package/dist/index.d.cts +2 -3
- package/dist/index.d.mts +2 -3
- package/dist/index.mjs +2 -1
- package/dist/plugin.cjs +1 -1
- package/dist/plugin.d.cts +1 -1
- package/dist/plugin.d.mts +1 -1
- package/dist/plugin.mjs +1 -1
- package/package.json +8 -8
- /package/dist/{index-HFavdjnf.d.mts → index-Cky7JZNO.d.cts} +0 -0
- /package/dist/{index-Tl2u3rTo.d.cts → index-Cky7JZNO.d.mts} +0 -0
- /package/dist/{plugin-C4tRUZGB.mjs → plugin-CAuSb5sS.mjs} +0 -0
- /package/dist/{plugin-Cx6tCzk4.cjs → plugin-D8KAYro7.cjs} +0 -0
package/dist/index.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_plugin = require("./plugin-
|
|
2
|
+
const require_plugin = require("./plugin-D8KAYro7.cjs");
|
|
3
3
|
let _atscript_db = require("@atscript/db");
|
|
4
4
|
let _atscript_db_sql_tools = require("@atscript/db-sql-tools");
|
|
5
5
|
//#region src/sql-builder.ts
|
|
@@ -262,6 +262,7 @@ function parseCount(value) {
|
|
|
262
262
|
* ```
|
|
263
263
|
*/
|
|
264
264
|
var PostgresAdapter = class PostgresAdapter extends _atscript_db.BaseDbAdapter {
|
|
265
|
+
driver;
|
|
265
266
|
supportsColumnModify = true;
|
|
266
267
|
static NATIVE_DEFAULT_FNS = new Set([
|
|
267
268
|
"now",
|
package/dist/index.d.cts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { t as PostgresPlugin } from "./index-
|
|
1
|
+
import { t as PostgresPlugin } from "./index-Cky7JZNO.cjs";
|
|
2
2
|
import { BaseDbAdapter, DbQuery, DbSpace, FilterExpr, TColumnDiff, TDbDefaultFn, TDbDeleteResult, TDbFieldMeta, TDbInsertManyResult, TDbInsertResult, TDbUpdateResult, TExistingColumn, TFieldOps, TSearchIndexInfo, TSyncColumnResult, TValueFormatterPair } from "@atscript/db";
|
|
3
3
|
import { TMetadataMap } from "@atscript/typescript/utils";
|
|
4
|
-
import * as _$pg from "pg";
|
|
5
4
|
import { TSqlFragment } from "@atscript/db-sql-tools";
|
|
6
5
|
|
|
7
6
|
//#region src/types.d.ts
|
|
@@ -243,7 +242,7 @@ declare class PostgresAdapter extends BaseDbAdapter {
|
|
|
243
242
|
declare class PgDriver implements TPgDriver {
|
|
244
243
|
private pool;
|
|
245
244
|
private poolInit;
|
|
246
|
-
constructor(poolOrConfig: string |
|
|
245
|
+
constructor(poolOrConfig: string | import("pg").Pool | import("pg").PoolConfig);
|
|
247
246
|
private getPool;
|
|
248
247
|
run(sql: string, params?: unknown[]): Promise<TPgRunResult>;
|
|
249
248
|
all<T = Record<string, unknown>>(sql: string, params?: unknown[]): Promise<T[]>;
|
package/dist/index.d.mts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { t as PostgresPlugin } from "./index-
|
|
1
|
+
import { t as PostgresPlugin } from "./index-Cky7JZNO.mjs";
|
|
2
2
|
import { BaseDbAdapter, DbQuery, DbSpace, FilterExpr, TColumnDiff, TDbDefaultFn, TDbDeleteResult, TDbFieldMeta, TDbInsertManyResult, TDbInsertResult, TDbUpdateResult, TExistingColumn, TFieldOps, TSearchIndexInfo, TSyncColumnResult, TValueFormatterPair } from "@atscript/db";
|
|
3
3
|
import { TSqlFragment } from "@atscript/db-sql-tools";
|
|
4
4
|
import { TMetadataMap } from "@atscript/typescript/utils";
|
|
5
|
-
import * as _$pg from "pg";
|
|
6
5
|
|
|
7
6
|
//#region src/types.d.ts
|
|
8
7
|
/**
|
|
@@ -243,7 +242,7 @@ declare class PostgresAdapter extends BaseDbAdapter {
|
|
|
243
242
|
declare class PgDriver implements TPgDriver {
|
|
244
243
|
private pool;
|
|
245
244
|
private poolInit;
|
|
246
|
-
constructor(poolOrConfig: string |
|
|
245
|
+
constructor(poolOrConfig: string | import("pg").Pool | import("pg").PoolConfig);
|
|
247
246
|
private getPool;
|
|
248
247
|
run(sql: string, params?: unknown[]): Promise<TPgRunResult>;
|
|
249
248
|
all<T = Record<string, unknown>>(sql: string, params?: unknown[]): Promise<T[]>;
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as PostgresPlugin } from "./plugin-
|
|
1
|
+
import { t as PostgresPlugin } from "./plugin-CAuSb5sS.mjs";
|
|
2
2
|
import { AtscriptDbView, BaseDbAdapter, DbError, DbSpace } from "@atscript/db";
|
|
3
3
|
import { buildAggregateCount, buildAggregateSelect, buildCreateView, buildDelete, buildInsert, buildSelect, buildUpdate, buildWhere as buildWhere$1, defaultValueForType, defaultValueToSqlLiteral, finalizeParams, parseRegexString, refActionToSql } from "@atscript/db-sql-tools";
|
|
4
4
|
//#region src/sql-builder.ts
|
|
@@ -261,6 +261,7 @@ function parseCount(value) {
|
|
|
261
261
|
* ```
|
|
262
262
|
*/
|
|
263
263
|
var PostgresAdapter = class PostgresAdapter extends BaseDbAdapter {
|
|
264
|
+
driver;
|
|
264
265
|
supportsColumnModify = true;
|
|
265
266
|
static NATIVE_DEFAULT_FNS = new Set([
|
|
266
267
|
"now",
|
package/dist/plugin.cjs
CHANGED
|
@@ -2,6 +2,6 @@ Object.defineProperties(exports, {
|
|
|
2
2
|
__esModule: { value: true },
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
|
-
const require_plugin = require("./plugin-
|
|
5
|
+
const require_plugin = require("./plugin-D8KAYro7.cjs");
|
|
6
6
|
exports.PostgresPlugin = require_plugin.PostgresPlugin;
|
|
7
7
|
exports.default = require_plugin.PostgresPlugin;
|
package/dist/plugin.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as PostgresPlugin } from "./index-
|
|
1
|
+
import { t as PostgresPlugin } from "./index-Cky7JZNO.cjs";
|
|
2
2
|
export { PostgresPlugin, PostgresPlugin as default };
|
package/dist/plugin.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as PostgresPlugin } from "./index-
|
|
1
|
+
import { t as PostgresPlugin } from "./index-Cky7JZNO.mjs";
|
|
2
2
|
export { PostgresPlugin, PostgresPlugin as default };
|
package/dist/plugin.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as PostgresPlugin } from "./plugin-
|
|
1
|
+
import { t as PostgresPlugin } from "./plugin-CAuSb5sS.mjs";
|
|
2
2
|
export { PostgresPlugin, PostgresPlugin as default };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atscript/db-postgres",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.103",
|
|
4
4
|
"description": "PostgreSQL adapter for @atscript/db with pg (node-postgres) driver support.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"atscript",
|
|
@@ -43,20 +43,20 @@
|
|
|
43
43
|
"access": "public"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@atscript/core": "^0.1.
|
|
47
|
-
"@atscript/typescript": "^0.1.
|
|
46
|
+
"@atscript/core": "^0.1.75",
|
|
47
|
+
"@atscript/typescript": "^0.1.75",
|
|
48
48
|
"@types/pg": "^8.11.0",
|
|
49
49
|
"@uniqu/core": "^0.1.6",
|
|
50
50
|
"pg": "^8.13.0",
|
|
51
|
-
"unplugin-atscript": "^0.1.
|
|
51
|
+
"unplugin-atscript": "^0.1.75"
|
|
52
52
|
},
|
|
53
53
|
"peerDependencies": {
|
|
54
|
-
"@atscript/core": "^0.1.
|
|
55
|
-
"@atscript/typescript": "^0.1.
|
|
54
|
+
"@atscript/core": "^0.1.75",
|
|
55
|
+
"@atscript/typescript": "^0.1.75",
|
|
56
56
|
"@uniqu/core": "^0.1.6",
|
|
57
57
|
"pg": ">=8.0.0",
|
|
58
|
-
"@atscript/db
|
|
59
|
-
"@atscript/db": "^0.1.
|
|
58
|
+
"@atscript/db": "^0.1.103",
|
|
59
|
+
"@atscript/db-sql-tools": "^0.1.103"
|
|
60
60
|
},
|
|
61
61
|
"peerDependenciesMeta": {
|
|
62
62
|
"pg": {
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|