@ketvietlab/ketjs-postgres 0.1.1 → 0.1.3
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/LICENSE +1 -1
- package/dist/postgres.d.ts.map +1 -1
- package/dist/postgres.js +84 -37
- package/dist/postgres.js.map +1 -1
- package/package.json +2 -2
package/LICENSE
CHANGED
package/dist/postgres.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"postgres.d.ts","sourceRoot":"","sources":["../../../../packages/ketjs-postgres/src/postgres.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,OAAO,EAAkB,MAAM,mBAAmB,CAAA;
|
|
1
|
+
{"version":3,"file":"postgres.d.ts","sourceRoot":"","sources":["../../../../packages/ketjs-postgres/src/postgres.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,OAAO,EAAkB,MAAM,mBAAmB,CAAA;AAoDhE,KAAK,GAAG,GAAG;IACT,MAAM,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC,GAAG;QAAE,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,CAAA;IACjF,OAAO,IAAI,OAAO,CAAC,GAAG,GAAG;QAAE,OAAO,IAAI,IAAI,CAAA;KAAE,CAAC,CAAA;IAC7C,GAAG,CAAC,IAAI,CAAC,EAAE;QAAE,OAAO,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;IAC/C,MAAM,CAAC,CACL,OAAO,EAAE,MAAM,EACf,SAAS,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,EACpC,OAAO,CAAC,EAAE,MAAM,IAAI,GACnB,OAAO,CAAC;QAAE,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC,CAAA;KAAE,CAAC,CAAA;CAC1C,CAAA;AAED,MAAM,MAAM,eAAe,GAAG;IAC5B,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,8DAA8D;IAC9D,OAAO,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,GAAG,CAAA;CAC9D,CAAA;AAED,wBAAgB,eAAe,CAAC,GAAG,SAAiC,EAAE,IAAI,GAAE,eAAoB,GAAG,OAAO,CAqJzG"}
|
package/dist/postgres.js
CHANGED
|
@@ -8,7 +8,7 @@ const SQL = {
|
|
|
8
8
|
text: 'TEXT',
|
|
9
9
|
int: 'BIGINT',
|
|
10
10
|
float: 'DOUBLE PRECISION',
|
|
11
|
-
// Unbounded numeric, as
|
|
11
|
+
// Unbounded numeric, as the domain contract uses for quantities and money. The driver hands it
|
|
12
12
|
// back as a string, which is exactly what keeps it exact.
|
|
13
13
|
decimal: 'NUMERIC',
|
|
14
14
|
bool: 'BOOLEAN',
|
|
@@ -17,15 +17,39 @@ const SQL = {
|
|
|
17
17
|
datetime: 'TIMESTAMPTZ',
|
|
18
18
|
ref: 'TEXT',
|
|
19
19
|
};
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
20
|
+
/**
|
|
21
|
+
* Dates come back as text, the way SQLite hands them back.
|
|
22
|
+
*
|
|
23
|
+
* The driver parses every date and timestamp column into a JS Date. That is a
|
|
24
|
+
* reasonable default and the wrong one here, because it makes the same field a
|
|
25
|
+
* different type depending on which datastore is underneath — and development and
|
|
26
|
+
* test run on SQLite while production runs on Postgres. A `date` fared worse
|
|
27
|
+
* still: `2026-08-22` arrived as an instant at UTC midnight, so it stopped being
|
|
28
|
+
* a calendar date and started being a timestamp that formats to the day before
|
|
29
|
+
* anywhere west of Greenwich.
|
|
30
|
+
*
|
|
31
|
+
* Only `parse` is overridden. Without a `serialize` the driver keeps its own, so
|
|
32
|
+
* writing a Date still works exactly as before.
|
|
33
|
+
*/
|
|
34
|
+
const TEXT_DATES = {
|
|
35
|
+
// 1082 DATE — already the calendar text the column holds.
|
|
36
|
+
ketDate: { from: [1082], parse: (value) => value },
|
|
37
|
+
// 1114 TIMESTAMP, 1184 TIMESTAMPTZ — normalised to the ISO-8601 SQLite stores.
|
|
38
|
+
ketTimestamp: { from: [1114, 1184], parse: (value) => new Date(value).toISOString() },
|
|
28
39
|
};
|
|
40
|
+
/**
|
|
41
|
+
* Postgres has real booleans and real json, so unlike SQLite there is almost
|
|
42
|
+
* nothing to coerce.
|
|
43
|
+
*
|
|
44
|
+
* An object is handed to the driver as an object. Stringifying it first looks
|
|
45
|
+
* like the SQLite path — where JSON really is text a column holds — but the
|
|
46
|
+
* driver already encodes a parameter bound to JSONB, so the string was encoded a
|
|
47
|
+
* second time and the column ended up holding a JSON *string* rather than the
|
|
48
|
+
* object: `jsonb_typeof` said `string`, and every `json` field read back as text.
|
|
49
|
+
* SQLite never showed it, because reads there parse the text back; the Postgres
|
|
50
|
+
* read path does not, trusting the driver to have handed back an object.
|
|
51
|
+
*/
|
|
52
|
+
const bind = (v) => (v === undefined ? null : v);
|
|
29
53
|
export function postgresAdapter(url = process.env.DATABASE_URL ?? '', opts = {}) {
|
|
30
54
|
let sql = null;
|
|
31
55
|
const need = () => {
|
|
@@ -41,33 +65,53 @@ export function postgresAdapter(url = process.env.DATABASE_URL ?? '', opts = {})
|
|
|
41
65
|
(tables[r.table_name] ??= {})[r.column_name] = r.data_type;
|
|
42
66
|
return tables;
|
|
43
67
|
};
|
|
44
|
-
const fromHandle = (handle) =>
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
68
|
+
const fromHandle = (handle) => {
|
|
69
|
+
let active = true;
|
|
70
|
+
const needActive = () => {
|
|
71
|
+
if (!active)
|
|
72
|
+
throw new Error('transaction-scoped adapter used after its transaction ended');
|
|
73
|
+
return handle;
|
|
74
|
+
};
|
|
75
|
+
return {
|
|
76
|
+
adapter: {
|
|
77
|
+
...a,
|
|
78
|
+
transaction: true,
|
|
79
|
+
async open() {
|
|
80
|
+
throw new Error('a transaction-scoped adapter is already open');
|
|
81
|
+
},
|
|
82
|
+
async close() {
|
|
83
|
+
throw new Error('a transaction-scoped adapter cannot close its root connection');
|
|
84
|
+
},
|
|
85
|
+
notifications: {
|
|
86
|
+
// pg_notify participates in the transaction on this reserved connection;
|
|
87
|
+
// PostgreSQL delivers it only after COMMIT and drops it on ROLLBACK.
|
|
88
|
+
async publish(channel, payload) {
|
|
89
|
+
await needActive().unsafe('SELECT pg_notify($1, $2)', [channel, payload]);
|
|
90
|
+
},
|
|
91
|
+
},
|
|
92
|
+
async exec(text) {
|
|
93
|
+
await needActive().unsafe(text);
|
|
94
|
+
},
|
|
95
|
+
async all(text, params = []) {
|
|
96
|
+
return (await needActive().unsafe(text, params.map(bind)));
|
|
97
|
+
},
|
|
98
|
+
async run(text, params = []) {
|
|
99
|
+
const r = (await needActive().unsafe(text, params.map(bind)));
|
|
100
|
+
return { changes: Number(r.count ?? r.length ?? 0) };
|
|
101
|
+
},
|
|
102
|
+
async tx() {
|
|
103
|
+
needActive();
|
|
104
|
+
throw new Error('nested transactions are not supported');
|
|
105
|
+
},
|
|
106
|
+
async introspect() {
|
|
107
|
+
return introspect(needActive());
|
|
108
|
+
},
|
|
52
109
|
},
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
return (await handle.unsafe(text, params.map(bind)));
|
|
59
|
-
},
|
|
60
|
-
async run(text, params = []) {
|
|
61
|
-
const r = (await handle.unsafe(text, params.map(bind)));
|
|
62
|
-
return { changes: Number(r.count ?? r.length ?? 0) };
|
|
63
|
-
},
|
|
64
|
-
async tx() {
|
|
65
|
-
throw new Error('nested transactions are not supported');
|
|
66
|
-
},
|
|
67
|
-
async introspect() {
|
|
68
|
-
return introspect(handle);
|
|
69
|
-
},
|
|
70
|
-
});
|
|
110
|
+
deactivate: () => {
|
|
111
|
+
active = false;
|
|
112
|
+
},
|
|
113
|
+
};
|
|
114
|
+
};
|
|
71
115
|
const a = {
|
|
72
116
|
name: 'postgres',
|
|
73
117
|
async open() {
|
|
@@ -84,7 +128,7 @@ export function postgresAdapter(url = process.env.DATABASE_URL ?? '', opts = {})
|
|
|
84
128
|
}
|
|
85
129
|
const mod = await import('postgres');
|
|
86
130
|
const factory = (mod.default ?? mod);
|
|
87
|
-
sql = factory(url, { max: opts.max ?? 10, onnotice: () => { } });
|
|
131
|
+
sql = factory(url, { max: opts.max ?? 10, onnotice: () => { }, types: TEXT_DATES });
|
|
88
132
|
},
|
|
89
133
|
async close() {
|
|
90
134
|
await sql?.end({ timeout: 5 });
|
|
@@ -122,15 +166,18 @@ export function postgresAdapter(url = process.env.DATABASE_URL ?? '', opts = {})
|
|
|
122
166
|
const scoped = fromHandle(conn);
|
|
123
167
|
try {
|
|
124
168
|
await conn.unsafe('BEGIN');
|
|
125
|
-
const r = await fn(scoped);
|
|
169
|
+
const r = await fn(scoped.adapter);
|
|
170
|
+
scoped.deactivate();
|
|
126
171
|
await conn.unsafe('COMMIT');
|
|
127
172
|
return r;
|
|
128
173
|
}
|
|
129
174
|
catch (e) {
|
|
175
|
+
scoped.deactivate();
|
|
130
176
|
await conn.unsafe('ROLLBACK').catch(() => { });
|
|
131
177
|
throw e;
|
|
132
178
|
}
|
|
133
179
|
finally {
|
|
180
|
+
scoped.deactivate();
|
|
134
181
|
conn.release();
|
|
135
182
|
}
|
|
136
183
|
},
|
package/dist/postgres.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"postgres.js","sourceRoot":"","sources":["../../../../../packages/ketjs-postgres/src/postgres.ts"],"names":[],"mappings":"AAAA,uEAAuE;AACvE,EAAE;AACF,kFAAkF;AAClF,qEAAqE;AAErE,OAAO,EAAE,aAAa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gBACnB,MAAM,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAA;gBAC3B,OAAO,CAAC,CAAA;YACV,CAAC;YAAC,OAAO,CAAC,EAAE,CAAC;gBACX,MAAM,CAAC,UAAU,EAAE,CAAA;gBACnB,MAAM,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,KAAK,CAAC,GAAG,EAAE,GAAE,CAAC,CAAC,CAAA;gBAC7C,MAAM,CAAC,CAAA;YACT,CAAC;oBAAS,CAAC;gBACT,MAAM,CAAC,UAAU,EAAE,CAAA;gBACnB,IAAI,CAAC,OAAO,EAAE,CAAA;YAChB,CAAC;QACH,CAAC;QAED,UAAU,CAAC,CAAC;YACV,OAAO,IAAI,MAAM,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,IAAI,EAAE,IAAI,CAAC,GAAG,CAAA;QAC7C,CAAC;QACD,SAAS,CAAC,CAAC;YACT,OAAO,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,MAAM,CAAA;QAC9B,CAAC;QAED,KAAK,CAAC,UAAU;YACd,OAAO,UAAU,CAAC,IAAI,EAAE,CAAC,CAAA;QAC3B,CAAC;KACF,CAAA;IAED,OAAO,aAAa,CAAC,CAAC,CAAC,CAAA;AACzB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ketvietlab/ketjs-postgres",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "Postgres adapter for Ket. The one package permitted a dependency (decision D4a) — which is why it is a package.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
}
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@ketvietlab/ketjs": "0.1.
|
|
38
|
+
"@ketvietlab/ketjs": "0.1.3"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
41
|
"postgres": "^3.4.9"
|