@nicia-ai/typegraph 0.28.0 → 0.29.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.
Files changed (174) hide show
  1. package/dist/backend/postgres/index.cjs +23 -761
  2. package/dist/backend/postgres/index.cjs.map +1 -1
  3. package/dist/backend/postgres/index.d.cts +24 -5
  4. package/dist/backend/postgres/index.d.ts +24 -5
  5. package/dist/backend/postgres/index.js +10 -752
  6. package/dist/backend/postgres/index.js.map +1 -1
  7. package/dist/backend/postgres/pglite.cjs +52 -0
  8. package/dist/backend/postgres/pglite.cjs.map +1 -0
  9. package/dist/backend/postgres/pglite.d.cts +116 -0
  10. package/dist/backend/postgres/pglite.d.ts +116 -0
  11. package/dist/backend/postgres/pglite.js +50 -0
  12. package/dist/backend/postgres/pglite.js.map +1 -0
  13. package/dist/backend/sqlite/index.cjs +22 -26
  14. package/dist/backend/sqlite/index.d.cts +17 -15
  15. package/dist/backend/sqlite/index.d.ts +17 -15
  16. package/dist/backend/sqlite/index.js +9 -9
  17. package/dist/backend/sqlite/libsql.cjs +17 -13
  18. package/dist/backend/sqlite/libsql.cjs.map +1 -1
  19. package/dist/backend/sqlite/libsql.d.cts +3 -3
  20. package/dist/backend/sqlite/libsql.d.ts +3 -3
  21. package/dist/backend/sqlite/libsql.js +16 -12
  22. package/dist/backend/sqlite/libsql.js.map +1 -1
  23. package/dist/backend/sqlite/local.cjs +17 -16
  24. package/dist/backend/sqlite/local.cjs.map +1 -1
  25. package/dist/backend/sqlite/local.d.cts +3 -3
  26. package/dist/backend/sqlite/local.d.ts +3 -3
  27. package/dist/backend/sqlite/local.js +15 -14
  28. package/dist/backend/sqlite/local.js.map +1 -1
  29. package/dist/{chunk-DFHLG75V.js → chunk-3DTLDGIM.js} +386 -1093
  30. package/dist/chunk-3DTLDGIM.js.map +1 -0
  31. package/dist/{chunk-WVQXAFP3.js → chunk-454I6GDF.js} +46 -5
  32. package/dist/chunk-454I6GDF.js.map +1 -0
  33. package/dist/chunk-4K6IHUW6.cjs +183 -0
  34. package/dist/chunk-4K6IHUW6.cjs.map +1 -0
  35. package/dist/{chunk-ZTREJOGB.js → chunk-7KLVFWXR.js} +113 -68
  36. package/dist/chunk-7KLVFWXR.js.map +1 -0
  37. package/dist/{chunk-UKG7XHZ3.js → chunk-A4H6QMV4.js} +110 -102
  38. package/dist/chunk-A4H6QMV4.js.map +1 -0
  39. package/dist/{chunk-E5ROA3MN.js → chunk-BMDF2S7S.js} +3 -3
  40. package/dist/{chunk-E5ROA3MN.js.map → chunk-BMDF2S7S.js.map} +1 -1
  41. package/dist/{chunk-PN37HVAV.cjs → chunk-C2RWFIYP.cjs} +121 -67
  42. package/dist/chunk-C2RWFIYP.cjs.map +1 -0
  43. package/dist/chunk-CUZGBWFT.js +206 -0
  44. package/dist/chunk-CUZGBWFT.js.map +1 -0
  45. package/dist/chunk-F2Q76CQ4.cjs +266 -0
  46. package/dist/chunk-F2Q76CQ4.cjs.map +1 -0
  47. package/dist/{chunk-YEDQLNVE.cjs → chunk-G6P3OVDY.cjs} +14 -2
  48. package/dist/chunk-G6P3OVDY.cjs.map +1 -0
  49. package/dist/chunk-GPUNAJFH.js +181 -0
  50. package/dist/chunk-GPUNAJFH.js.map +1 -0
  51. package/dist/chunk-HKN622O4.js +254 -0
  52. package/dist/chunk-HKN622O4.js.map +1 -0
  53. package/dist/{chunk-PYJOBZR3.cjs → chunk-HM6XMR3E.cjs} +52 -52
  54. package/dist/chunk-HM6XMR3E.cjs.map +1 -0
  55. package/dist/chunk-IE2TPFBT.js +305 -0
  56. package/dist/chunk-IE2TPFBT.js.map +1 -0
  57. package/dist/chunk-KGAJ5HFO.cjs +319 -0
  58. package/dist/chunk-KGAJ5HFO.cjs.map +1 -0
  59. package/dist/chunk-M6OC455F.js +65 -0
  60. package/dist/chunk-M6OC455F.js.map +1 -0
  61. package/dist/{chunk-U5ROKVRF.js → chunk-MB363HT5.js} +14 -3
  62. package/dist/chunk-MB363HT5.js.map +1 -0
  63. package/dist/{chunk-X53YKGHR.js → chunk-MRMD7S7E.js} +9 -9
  64. package/dist/{chunk-X53YKGHR.js.map → chunk-MRMD7S7E.js.map} +1 -1
  65. package/dist/{chunk-OOS2RKRH.js → chunk-N3VVQDMA.js} +3 -3
  66. package/dist/{chunk-OOS2RKRH.js.map → chunk-N3VVQDMA.js.map} +1 -1
  67. package/dist/{chunk-EJCDOA37.js → chunk-OGUH56BB.js} +4 -4
  68. package/dist/{chunk-EJCDOA37.js.map → chunk-OGUH56BB.js.map} +1 -1
  69. package/dist/chunk-Q3ZZLU3O.cjs +12 -0
  70. package/dist/{chunk-4FJVSF3K.cjs.map → chunk-Q3ZZLU3O.cjs.map} +1 -1
  71. package/dist/chunk-Q5ASTPM4.cjs +208 -0
  72. package/dist/chunk-Q5ASTPM4.cjs.map +1 -0
  73. package/dist/{chunk-WFUN6DCM.cjs → chunk-R2LA6MKR.cjs} +11 -11
  74. package/dist/chunk-R2LA6MKR.cjs.map +1 -0
  75. package/dist/chunk-RP7YITHX.cjs +70 -0
  76. package/dist/chunk-RP7YITHX.cjs.map +1 -0
  77. package/dist/{chunk-33K3ZYFG.cjs → chunk-RU5BBUU2.cjs} +132 -124
  78. package/dist/chunk-RU5BBUU2.cjs.map +1 -0
  79. package/dist/{chunk-TSGBRPNE.js → chunk-SFNUHFON.js} +45 -45
  80. package/dist/chunk-SFNUHFON.js.map +1 -0
  81. package/dist/chunk-UP4QAJND.cjs +740 -0
  82. package/dist/chunk-UP4QAJND.cjs.map +1 -0
  83. package/dist/{chunk-CTHNVU6K.cjs → chunk-UPBXUOW7.cjs} +8 -8
  84. package/dist/{chunk-CTHNVU6K.cjs.map → chunk-UPBXUOW7.cjs.map} +1 -1
  85. package/dist/{chunk-EK6RJ373.cjs → chunk-VGU26WIU.cjs} +5 -5
  86. package/dist/{chunk-EK6RJ373.cjs.map → chunk-VGU26WIU.cjs.map} +1 -1
  87. package/dist/{chunk-ZGEMI7MJ.cjs → chunk-XTQHSOIC.cjs} +101 -101
  88. package/dist/{chunk-ZGEMI7MJ.cjs.map → chunk-XTQHSOIC.cjs.map} +1 -1
  89. package/dist/chunk-Y52UNT66.js +738 -0
  90. package/dist/chunk-Y52UNT66.js.map +1 -0
  91. package/dist/{chunk-OYLF3IC7.js → chunk-Z36W5WUM.js} +4 -4
  92. package/dist/chunk-Z36W5WUM.js.map +1 -0
  93. package/dist/{chunk-X3244EKP.cjs → chunk-ZFWNO3GE.cjs} +48 -4
  94. package/dist/chunk-ZFWNO3GE.cjs.map +1 -0
  95. package/dist/{chunk-2E4VTD2E.cjs → chunk-ZYQEXGYC.cjs} +423 -1139
  96. package/dist/chunk-ZYQEXGYC.cjs.map +1 -0
  97. package/dist/ddl-BwH00BB6.d.ts +38 -0
  98. package/dist/ddl-D3o-RmsV.d.cts +38 -0
  99. package/dist/{extension-types-B78CZfA5.d.ts → extension-types-CwHV-Uk4.d.cts} +4 -4
  100. package/dist/{extension-types-B78CZfA5.d.cts → extension-types-CwHV-Uk4.d.ts} +4 -4
  101. package/dist/graph-extension/index.cjs +18 -18
  102. package/dist/graph-extension/index.d.cts +4 -4
  103. package/dist/graph-extension/index.d.ts +4 -4
  104. package/dist/graph-extension/index.js +3 -3
  105. package/dist/{index-CWdBFWbI.d.ts → index-CapHwi1a.d.ts} +22 -3
  106. package/dist/{index-Bilw0pYm.d.cts → index-jPPexxM5.d.cts} +22 -3
  107. package/dist/index.cjs +1211 -945
  108. package/dist/index.cjs.map +1 -1
  109. package/dist/index.d.cts +142 -12
  110. package/dist/index.d.ts +142 -12
  111. package/dist/index.js +778 -544
  112. package/dist/index.js.map +1 -1
  113. package/dist/indexes/index.cjs +18 -18
  114. package/dist/indexes/index.d.cts +9 -9
  115. package/dist/indexes/index.d.ts +9 -9
  116. package/dist/indexes/index.js +4 -4
  117. package/dist/interchange/index.cjs +8 -14
  118. package/dist/interchange/index.cjs.map +1 -1
  119. package/dist/interchange/index.d.cts +5 -16
  120. package/dist/interchange/index.d.ts +5 -16
  121. package/dist/interchange/index.js +3 -9
  122. package/dist/interchange/index.js.map +1 -1
  123. package/dist/{manager-ehLTTNq0.d.ts → manager-BUugwCYz.d.ts} +2 -2
  124. package/dist/{manager-c1MGaVVR.d.cts → manager-DpIpn1HQ.d.cts} +2 -2
  125. package/dist/{materialize-indexes-DFavFQah.d.ts → materialize-indexes-lkawaDor.d.ts} +1 -1
  126. package/dist/{materialize-indexes-BQfaAZKA.d.cts → materialize-indexes-oanE3RU0.d.cts} +1 -1
  127. package/dist/{ddl-0Ooc2dpL.d.ts → postgres-CQL9UIn2.d.cts} +2 -471
  128. package/dist/{ddl-Dza3kDrI.d.cts → postgres-CcRLaxz0.d.ts} +2 -471
  129. package/dist/profiler/index.cjs +4 -4
  130. package/dist/profiler/index.d.cts +7 -7
  131. package/dist/profiler/index.d.ts +7 -7
  132. package/dist/profiler/index.js +2 -2
  133. package/dist/schema/index.cjs +32 -32
  134. package/dist/schema/index.d.cts +7 -7
  135. package/dist/schema/index.d.ts +7 -7
  136. package/dist/schema/index.js +9 -9
  137. package/dist/{sqlite-BxZUPbyD.d.ts → sqlite-CZDFUfHS.d.ts} +2 -468
  138. package/dist/{sqlite-mvpXjEeB.d.cts → sqlite-Rj3xu4It.d.cts} +2 -468
  139. package/dist/{store-Ufc1Eoey.d.ts → store-B43FpOVX.d.cts} +84 -5
  140. package/dist/{store-D7YEMg2v.d.cts → store-De0Y33wP.d.ts} +84 -5
  141. package/dist/{types-B-sJJ4GQ.d.ts → types-B5GSeE3t.d.ts} +2 -2
  142. package/dist/{types-CmUA9sal.d.cts → types-Bwlp_yvu.d.cts} +2 -2
  143. package/dist/{types-CMQymcwk.d.cts → types-CmAT-Z47.d.ts} +250 -46
  144. package/dist/{types-CQ7xXJMP.d.ts → types-DXCSyxac.d.cts} +250 -46
  145. package/dist/{where-5zf15aFZ.d.cts → where-2dsyYt3d.d.cts} +2 -2
  146. package/dist/{where-CtrLu1Zf.d.ts → where-CP4qGIHd.d.ts} +2 -2
  147. package/package.json +20 -5
  148. package/dist/chunk-2E4VTD2E.cjs.map +0 -1
  149. package/dist/chunk-33K3ZYFG.cjs.map +0 -1
  150. package/dist/chunk-3EUKJEQ3.js +0 -77
  151. package/dist/chunk-3EUKJEQ3.js.map +0 -1
  152. package/dist/chunk-4FJVSF3K.cjs +0 -12
  153. package/dist/chunk-5H3BAMTB.js +0 -32
  154. package/dist/chunk-5H3BAMTB.js.map +0 -1
  155. package/dist/chunk-DFHLG75V.js.map +0 -1
  156. package/dist/chunk-HTGDWIDE.cjs +0 -89
  157. package/dist/chunk-HTGDWIDE.cjs.map +0 -1
  158. package/dist/chunk-IUIWCFG3.cjs +0 -36
  159. package/dist/chunk-IUIWCFG3.cjs.map +0 -1
  160. package/dist/chunk-LYRUNG6E.cjs +0 -52
  161. package/dist/chunk-LYRUNG6E.cjs.map +0 -1
  162. package/dist/chunk-OYLF3IC7.js.map +0 -1
  163. package/dist/chunk-PCHTTG42.js +0 -47
  164. package/dist/chunk-PCHTTG42.js.map +0 -1
  165. package/dist/chunk-PN37HVAV.cjs.map +0 -1
  166. package/dist/chunk-PYJOBZR3.cjs.map +0 -1
  167. package/dist/chunk-TSGBRPNE.js.map +0 -1
  168. package/dist/chunk-U5ROKVRF.js.map +0 -1
  169. package/dist/chunk-UKG7XHZ3.js.map +0 -1
  170. package/dist/chunk-WFUN6DCM.cjs.map +0 -1
  171. package/dist/chunk-WVQXAFP3.js.map +0 -1
  172. package/dist/chunk-X3244EKP.cjs.map +0 -1
  173. package/dist/chunk-YEDQLNVE.cjs.map +0 -1
  174. package/dist/chunk-ZTREJOGB.js.map +0 -1
@@ -1,796 +1,58 @@
1
1
  'use strict';
2
2
 
3
- var chunkHTGDWIDE_cjs = require('../../chunk-HTGDWIDE.cjs');
4
- var chunk2E4VTD2E_cjs = require('../../chunk-2E4VTD2E.cjs');
5
- var chunkLYRUNG6E_cjs = require('../../chunk-LYRUNG6E.cjs');
6
- require('../../chunk-IUIWCFG3.cjs');
7
- var chunkPN37HVAV_cjs = require('../../chunk-PN37HVAV.cjs');
8
- require('../../chunk-CTHNVU6K.cjs');
9
- require('../../chunk-EK6RJ373.cjs');
10
- require('../../chunk-X3244EKP.cjs');
11
- var chunkYEDQLNVE_cjs = require('../../chunk-YEDQLNVE.cjs');
3
+ var chunkUP4QAJND_cjs = require('../../chunk-UP4QAJND.cjs');
4
+ require('../../chunk-KGAJ5HFO.cjs');
5
+ var chunkZYQEXGYC_cjs = require('../../chunk-ZYQEXGYC.cjs');
6
+ require('../../chunk-F2Q76CQ4.cjs');
7
+ require('../../chunk-RP7YITHX.cjs');
8
+ require('../../chunk-C2RWFIYP.cjs');
9
+ require('../../chunk-UPBXUOW7.cjs');
10
+ require('../../chunk-VGU26WIU.cjs');
11
+ require('../../chunk-ZFWNO3GE.cjs');
12
+ require('../../chunk-G6P3OVDY.cjs');
12
13
  require('../../chunk-7V335GHG.cjs');
13
- var drizzleOrm = require('drizzle-orm');
14
- var pgCore = require('drizzle-orm/pg-core');
15
14
 
16
- // src/backend/drizzle/execution/postgres-execution.ts
17
- function hasFunctionProperty(value, property) {
18
- if (value === void 0 || value === null) {
19
- return false;
20
- }
21
- const candidate = value;
22
- return typeof candidate[property] === "function";
23
- }
24
- function isPgNativeClient(candidate) {
25
- return typeof candidate === "object" && hasFunctionProperty(candidate, "query");
26
- }
27
- function isPostgresJsClient(candidate) {
28
- return typeof candidate === "function" && hasFunctionProperty(candidate, "unsafe") && hasFunctionProperty(candidate, "begin");
29
- }
30
- function isNeonHttpClient(db) {
31
- const candidate = db.$client;
32
- return typeof candidate === "function" && hasFunctionProperty(candidate, "transaction") && !hasFunctionProperty(candidate, "begin");
33
- }
34
- var DEFAULT_POSTGRES_STATEMENT_CACHE_MAX = 256;
35
- var STATEMENT_NAME_CACHE = /* @__PURE__ */ new Map();
36
- var nextStatementId = 0;
37
- function statementNameFor(sqlText, cacheMax) {
38
- return chunk2E4VTD2E_cjs.getOrCreateLru(STATEMENT_NAME_CACHE, sqlText, cacheMax, () => {
39
- const name = `tg_${nextStatementId}`;
40
- nextStatementId += 1;
41
- return name;
42
- });
43
- }
44
- function normalizeRow(row) {
45
- if (row === null || typeof row !== "object") return row;
46
- let mutated;
47
- for (const key of Object.keys(row)) {
48
- const value = row[key];
49
- if (value instanceof Date) {
50
- mutated ??= { ...row };
51
- mutated[key] = value.toISOString();
52
- }
53
- }
54
- return mutated ?? row;
55
- }
56
- function normalizeRows(rows) {
57
- let mutated;
58
- for (let index = 0; index < rows.length; index += 1) {
59
- const original = rows[index];
60
- const normalized = normalizeRow(original);
61
- if (normalized !== original) {
62
- mutated ??= [...rows];
63
- mutated[index] = normalized;
64
- }
65
- }
66
- return mutated ?? rows;
67
- }
68
- function wrapNodePgClient(client, cacheMax) {
69
- return {
70
- async query(sqlText, params) {
71
- const result = await client.query({
72
- name: statementNameFor(sqlText, cacheMax),
73
- text: sqlText,
74
- values: params
75
- });
76
- return { rows: normalizeRows(result.rows) };
77
- }
78
- };
79
- }
80
- function wrapNodePgClientUnnamed(client) {
81
- return {
82
- async query(sqlText, params) {
83
- const result = await client.query(sqlText, params);
84
- return { rows: normalizeRows(result.rows) };
85
- }
86
- };
87
- }
88
- function adaptPostgresJsClient(sql2) {
89
- return {
90
- async query(sqlText, params) {
91
- const rows = await sql2.unsafe(sqlText, params);
92
- return { rows };
93
- }
94
- };
95
- }
96
- function resolvePgClient(db, prepareStatements, cacheMax) {
97
- if (isNeonHttpClient(db)) {
98
- return void 0;
99
- }
100
- const client = db.$client;
101
- if (isPgNativeClient(client)) {
102
- return prepareStatements ? wrapNodePgClient(client, cacheMax) : wrapNodePgClientUnnamed(client);
103
- }
104
- if (isPostgresJsClient(client)) {
105
- return adaptPostgresJsClient(client);
106
- }
107
- return void 0;
108
- }
109
- async function executeDrizzleQuery(db, query) {
110
- const result = await db.execute(query);
111
- if (Array.isArray(result)) {
112
- return result;
113
- }
114
- return result.rows;
115
- }
116
- function createPgPreparedStatement(pgClient, sqlText) {
117
- return {
118
- async execute(params) {
119
- const result = await pgClient.query(sqlText, params);
120
- return result.rows;
121
- }
122
- };
123
- }
124
- function createPostgresExecutionAdapter(db, options = {}) {
125
- const prepareStatements = options.prepareStatements ?? true;
126
- const cacheMax = options.preparedStatementCacheMax ?? DEFAULT_POSTGRES_STATEMENT_CACHE_MAX;
127
- const pgClient = resolvePgClient(db, prepareStatements, cacheMax);
128
- function compile(query) {
129
- return chunk2E4VTD2E_cjs.compileQueryWithDialect(db, query, "PostgreSQL");
130
- }
131
- if (pgClient === void 0) {
132
- return {
133
- compile,
134
- async execute(query) {
135
- return executeDrizzleQuery(db, query);
136
- }
137
- };
138
- }
139
- const pgQueryClient = pgClient;
140
- async function executeCompiled(compiledQuery) {
141
- const result = await pgQueryClient.query(
142
- compiledQuery.sql,
143
- compiledQuery.params
144
- );
145
- return result.rows;
146
- }
147
- return {
148
- compile,
149
- async execute(query) {
150
- const compiled = compile(query);
151
- return executeCompiled(compiled);
152
- },
153
- executeCompiled,
154
- prepare(sqlText) {
155
- return createPgPreparedStatement(pgQueryClient, sqlText);
156
- }
157
- };
158
- }
159
15
 
160
- // src/backend/drizzle/postgres.ts
161
- var POSTGRES_MAX_BIND_PARAMETERS = 65535;
162
- var NODE_INSERT_PARAM_COUNT = 9;
163
- var EDGE_INSERT_PARAM_COUNT = 12;
164
- var POSTGRES_NODE_INSERT_BATCH_SIZE = Math.max(
165
- 1,
166
- Math.floor(POSTGRES_MAX_BIND_PARAMETERS / NODE_INSERT_PARAM_COUNT)
167
- );
168
- var POSTGRES_EDGE_INSERT_BATCH_SIZE = Math.max(
169
- 1,
170
- Math.floor(POSTGRES_MAX_BIND_PARAMETERS / EDGE_INSERT_PARAM_COUNT)
171
- );
172
- var POSTGRES_GET_NODES_ID_CHUNK_SIZE = Math.max(
173
- 1,
174
- POSTGRES_MAX_BIND_PARAMETERS - 2
175
- );
176
- var POSTGRES_GET_EDGES_ID_CHUNK_SIZE = Math.max(
177
- 1,
178
- POSTGRES_MAX_BIND_PARAMETERS - 1
179
- );
180
- var CHECK_UNIQUE_BATCH_FIXED_PARAM_COUNT = 3;
181
- var POSTGRES_CHECK_UNIQUE_BATCH_CHUNK_SIZE = Math.max(
182
- 1,
183
- POSTGRES_MAX_BIND_PARAMETERS - CHECK_UNIQUE_BATCH_FIXED_PARAM_COUNT
184
- );
185
- var toNodeRow = chunk2E4VTD2E_cjs.createNodeRowMapper(chunk2E4VTD2E_cjs.POSTGRES_ROW_MAPPER_CONFIG);
186
- var toEdgeRow = chunk2E4VTD2E_cjs.createEdgeRowMapper(chunk2E4VTD2E_cjs.POSTGRES_ROW_MAPPER_CONFIG);
187
- var toUniqueRow = chunk2E4VTD2E_cjs.createUniqueRowMapper(chunk2E4VTD2E_cjs.POSTGRES_ROW_MAPPER_CONFIG);
188
- var toSchemaVersionRow = chunk2E4VTD2E_cjs.createSchemaVersionRowMapper(chunk2E4VTD2E_cjs.POSTGRES_ROW_MAPPER_CONFIG);
189
- function toEmbeddingRow(row) {
190
- let embedding;
191
- if (typeof row.embedding === "string") {
192
- const content = row.embedding.slice(1, -1);
193
- embedding = content === "" ? [] : content.split(",").map((s) => Number.parseFloat(s.trim()));
194
- } else if (Array.isArray(row.embedding)) {
195
- embedding = row.embedding;
196
- } else {
197
- embedding = [];
198
- }
199
- return {
200
- graph_id: row.graph_id,
201
- node_kind: row.node_kind,
202
- node_id: row.node_id,
203
- field_path: row.field_path,
204
- embedding,
205
- dimensions: row.dimensions,
206
- created_at: chunk2E4VTD2E_cjs.formatPostgresTimestamp(row.created_at) ?? "",
207
- updated_at: chunk2E4VTD2E_cjs.formatPostgresTimestamp(row.updated_at) ?? ""
208
- };
209
- }
210
- function buildPostgresCapabilities(strategy) {
211
- return {
212
- ...chunkLYRUNG6E_cjs.POSTGRES_CAPABILITIES,
213
- vector: {
214
- supported: true,
215
- metrics: ["cosine", "l2", "inner_product"],
216
- indexTypes: ["hnsw", "ivfflat", "none"],
217
- maxDimensions: 16e3
218
- // pgvector limit
219
- },
220
- fulltext: chunkPN37HVAV_cjs.buildFulltextCapabilities(strategy)
221
- };
222
- }
223
- function createPostgresBackend(db, options = {}) {
224
- const tables2 = options.tables ?? chunk2E4VTD2E_cjs.tables;
225
- const fulltextStrategy = options.fulltext ?? chunkPN37HVAV_cjs.tsvectorStrategy;
226
- const baseCapabilities = buildPostgresCapabilities(fulltextStrategy);
227
- const httpOnlyOverrides = isNeonHttpClient(db) ? { transactions: false } : {};
228
- const capabilities = {
229
- ...baseCapabilities,
230
- ...httpOnlyOverrides,
231
- ...options.capabilities
232
- };
233
- const adapterOptions = {
234
- ...options.prepareStatements === void 0 ? {} : { prepareStatements: options.prepareStatements },
235
- ...options.preparedStatementCacheMax === void 0 ? {} : { preparedStatementCacheMax: options.preparedStatementCacheMax }
236
- };
237
- const executionAdapter = createPostgresExecutionAdapter(db, adapterOptions);
238
- const tableNames = {
239
- nodes: drizzleOrm.getTableName(tables2.nodes),
240
- edges: drizzleOrm.getTableName(tables2.edges),
241
- embeddings: drizzleOrm.getTableName(tables2.embeddings),
242
- fulltext: tables2.fulltextTableName,
243
- uniques: drizzleOrm.getTableName(tables2.uniques)
244
- };
245
- const analyzeStatement = drizzleOrm.sql`ANALYZE ${drizzleOrm.sql.join(
246
- [
247
- tableNames.nodes,
248
- tableNames.edges,
249
- drizzleOrm.getTableName(tables2.uniques),
250
- tableNames.embeddings,
251
- tableNames.fulltext
252
- ].map((name) => chunkHTGDWIDE_cjs.quoteIdentifier(name)),
253
- drizzleOrm.sql`, `
254
- )}`;
255
- const operationStrategy = chunk2E4VTD2E_cjs.createPostgresOperationStrategy(
256
- tables2,
257
- fulltextStrategy
258
- );
259
- const operations = createPostgresOperationBackend({
260
- db,
261
- executionAdapter,
262
- adapterOptions,
263
- operationStrategy,
264
- tableNames,
265
- capabilities,
266
- fulltextStrategy
267
- });
268
- function runSchemaWriteTransaction(graphId, fn) {
269
- if (!capabilities.transactions) {
270
- throw new chunkYEDQLNVE_cjs.ConfigurationError(
271
- "commitSchemaVersion and setActiveVersion require atomic transactions, but this Postgres backend does not provide them. The drizzle-orm/neon-http driver communicates over HTTP and cannot hold a session across statements; use drizzle-orm/neon-serverless (websocket) for transactional writes.",
272
- {
273
- backend: "postgres",
274
- capability: "transactions",
275
- supportsTransactions: false
276
- }
277
- );
278
- }
279
- return db.transaction(async (tx) => {
280
- await tx.execute(
281
- drizzleOrm.sql`SELECT pg_advisory_xact_lock(hashtext(${graphId}))`
282
- );
283
- const txBackend = createTransactionBackend({
284
- db: tx,
285
- adapterOptions,
286
- operationStrategy,
287
- tableNames,
288
- capabilities,
289
- fulltextStrategy
290
- });
291
- return fn(txBackend);
292
- });
293
- }
294
- const matTable = tables2.contributionMaterializations;
295
- async function ensureContributionMaterializationsTableImpl() {
296
- await db.execute(drizzleOrm.sql.raw(chunk2E4VTD2E_cjs.generatePgCreateTableSQL(matTable)));
297
- }
298
- async function getContributionMaterializationRow(identity) {
299
- const rows = await db.select().from(matTable).where(
300
- drizzleOrm.and(
301
- drizzleOrm.eq(matTable.graphId, identity.graphId),
302
- drizzleOrm.eq(matTable.logicalName, identity.logicalName),
303
- drizzleOrm.eq(matTable.owner, identity.owner),
304
- drizzleOrm.eq(matTable.tableName, identity.tableName)
305
- )
306
- );
307
- const row = rows[0];
308
- if (row === void 0) return void 0;
309
- return chunk2E4VTD2E_cjs.mapContributionMaterializationRow(
310
- row,
311
- chunk2E4VTD2E_cjs.POSTGRES_CONTRIBUTION_MAT_TIMESTAMPS.decode
312
- );
313
- }
314
- async function recordContributionMaterializationRow(params) {
315
- await db.insert(matTable).values(
316
- chunk2E4VTD2E_cjs.buildContributionInsertValues(
317
- params,
318
- chunk2E4VTD2E_cjs.POSTGRES_CONTRIBUTION_MAT_TIMESTAMPS.encode
319
- )
320
- ).onConflictDoUpdate({
321
- target: [
322
- matTable.graphId,
323
- matTable.logicalName,
324
- matTable.owner,
325
- matTable.tableName
326
- ],
327
- set: chunk2E4VTD2E_cjs.buildContributionOnConflictSet(
328
- matTable.materializedAt,
329
- params.materializedAt
330
- )
331
- });
332
- }
333
- const contributionMaterializer = chunk2E4VTD2E_cjs.createContributionMaterializer({
334
- dialect: "postgres",
335
- fulltextStrategy,
336
- fulltextTableName: tables2.fulltextTableName,
337
- execDdl: async (statement) => {
338
- await db.execute(drizzleOrm.sql.raw(statement));
339
- },
340
- ensureMarkerTable: ensureContributionMaterializationsTableImpl,
341
- getMarker: getContributionMaterializationRow,
342
- recordMarker: recordContributionMaterializationRow
343
- });
344
- function bindTransactionBackend(tx) {
345
- const txBackend = createTransactionBackend({
346
- db: tx,
347
- adapterOptions,
348
- operationStrategy,
349
- tableNames,
350
- capabilities,
351
- fulltextStrategy
352
- });
353
- return chunk2E4VTD2E_cjs.gateFulltext(txBackend, contributionMaterializer.assertInitialized);
354
- }
355
- const backend = {
356
- ...operations,
357
- async bootstrapTables() {
358
- const statements = chunk2E4VTD2E_cjs.generatePostgresDDL(tables2, fulltextStrategy);
359
- for (const statement of statements) {
360
- await db.execute(drizzleOrm.sql.raw(statement));
361
- }
362
- },
363
- // Every fulltext-touching method asserts the durable marker instead
364
- // of lazily emitting DDL. Steady state performs zero ensure; an
365
- // uninitialized database throws `StoreNotInitializedError` loudly
366
- // rather than self-healing on a read/write path (#135). Shared
367
- // verbatim with the tx-scoped gate via `gateFulltextMethods`.
368
- ...chunk2E4VTD2E_cjs.gateFulltextMethods(
369
- operations,
370
- contributionMaterializer.assertInitialized
371
- ),
372
- async executeDdl(ddl) {
373
- await db.execute(drizzleOrm.sql.raw(ddl));
374
- },
375
- async ensureIndexMaterializationsTable() {
376
- await db.execute(
377
- drizzleOrm.sql.raw(chunk2E4VTD2E_cjs.generatePgCreateTableSQL(tables2.indexMaterializations))
378
- );
379
- },
380
- async getIndexMaterialization(indexName) {
381
- const t = tables2.indexMaterializations;
382
- const rows = await db.select().from(t).where(drizzleOrm.eq(t.indexName, indexName));
383
- const row = rows[0];
384
- if (row === void 0) return void 0;
385
- return chunk2E4VTD2E_cjs.mapMaterializationRow(row, chunk2E4VTD2E_cjs.POSTGRES_INDEX_MAT_TIMESTAMPS.decode);
386
- },
387
- async getIndexMaterializations(statusKeys) {
388
- if (statusKeys.length === 0) return [];
389
- const t = tables2.indexMaterializations;
390
- const rows = await db.select().from(t).where(drizzleOrm.inArray(t.indexName, [...statusKeys]));
391
- return rows.map(
392
- (row) => chunk2E4VTD2E_cjs.mapMaterializationRow(row, chunk2E4VTD2E_cjs.POSTGRES_INDEX_MAT_TIMESTAMPS.decode)
393
- );
394
- },
395
- async recordIndexMaterialization(params) {
396
- const t = tables2.indexMaterializations;
397
- await db.insert(t).values(
398
- chunk2E4VTD2E_cjs.buildMaterializationInsertValues(
399
- params,
400
- chunk2E4VTD2E_cjs.POSTGRES_INDEX_MAT_TIMESTAMPS.encode
401
- )
402
- ).onConflictDoUpdate({
403
- target: t.indexName,
404
- set: chunk2E4VTD2E_cjs.buildMaterializationOnConflictSet(
405
- t.materializedAt,
406
- params.materializedAt
407
- )
408
- });
409
- },
410
- async ensureContributionMaterializationsTable() {
411
- await ensureContributionMaterializationsTableImpl();
412
- },
413
- async getContributionMaterialization(identity) {
414
- return getContributionMaterializationRow(identity);
415
- },
416
- async recordContributionMaterialization(params) {
417
- await recordContributionMaterializationRow(params);
418
- },
419
- async assertRuntimeContributionsInitialized(graphId) {
420
- await contributionMaterializer.assertInitialized(graphId);
421
- },
422
- async ensureKindRemovalsTable() {
423
- await db.execute(
424
- drizzleOrm.sql.raw(chunk2E4VTD2E_cjs.generatePgCreateTableSQL(tables2.kindRemovals))
425
- );
426
- },
427
- async getPendingKindRemovals(graphId) {
428
- const t = tables2.kindRemovals;
429
- const rows = await db.select().from(t).where(drizzleOrm.and(drizzleOrm.eq(t.graphId, graphId), drizzleOrm.isNull(t.removedAt)));
430
- return rows.map(
431
- (row) => chunk2E4VTD2E_cjs.mapKindRemovalRow(row, chunk2E4VTD2E_cjs.POSTGRES_KIND_REMOVAL_TIMESTAMPS.decode)
432
- );
433
- },
434
- async getAllKindRemovals(graphId) {
435
- const t = tables2.kindRemovals;
436
- const rows = await db.select().from(t).where(drizzleOrm.eq(t.graphId, graphId));
437
- return rows.map(
438
- (row) => chunk2E4VTD2E_cjs.mapKindRemovalRow(row, chunk2E4VTD2E_cjs.POSTGRES_KIND_REMOVAL_TIMESTAMPS.decode)
439
- );
440
- },
441
- async recordKindRemoval(params) {
442
- const t = tables2.kindRemovals;
443
- await db.insert(t).values(
444
- chunk2E4VTD2E_cjs.buildKindRemovalInsertValues(
445
- params,
446
- chunk2E4VTD2E_cjs.POSTGRES_KIND_REMOVAL_TIMESTAMPS.encode
447
- )
448
- ).onConflictDoUpdate({
449
- target: [t.graphId, t.kindName, t.entity, t.schemaVersion],
450
- set: chunk2E4VTD2E_cjs.buildKindRemovalOnConflictSet(t.removedAt, params.removedAt)
451
- });
452
- },
453
- async ensureReconciliationMarkersTable() {
454
- await db.execute(
455
- drizzleOrm.sql.raw(chunk2E4VTD2E_cjs.generatePgCreateTableSQL(tables2.reconciliationMarkers))
456
- );
457
- },
458
- async ensureRuntimeContributions(graphId) {
459
- await contributionMaterializer.ensureRuntimeContributions(graphId);
460
- },
461
- /**
462
- * Superseded by `ensureRuntimeContributions(graphId)` (#129).
463
- * Retained as a thin back-compat wrapper for callers predating
464
- * #129; #135 routed it through the durable-marker writer.
465
- */
466
- async ensureFulltextTable(graphId) {
467
- await contributionMaterializer.ensureRuntimeContributions(graphId);
468
- },
469
- async getReconciliationMarker(graphId) {
470
- const t = tables2.reconciliationMarkers;
471
- const rows = await db.select().from(t).where(drizzleOrm.eq(t.graphId, graphId));
472
- return rows[0]?.reconciledToVersion;
473
- },
474
- async setReconciliationMarker(graphId, version) {
475
- const t = tables2.reconciliationMarkers;
476
- await db.insert(t).values({ graphId, reconciledToVersion: version }).onConflictDoUpdate({
477
- target: t.graphId,
478
- set: { reconciledToVersion: version }
479
- });
480
- },
481
- async refreshStatistics() {
482
- await db.execute(analyzeStatement);
483
- },
484
- async commitSchemaVersion(params) {
485
- return runSchemaWriteTransaction(
486
- params.graphId,
487
- (target) => target.commitSchemaVersion(params)
488
- );
489
- },
490
- async setActiveVersion(params) {
491
- await runSchemaWriteTransaction(
492
- params.graphId,
493
- (target) => target.setActiveVersion(params)
494
- );
495
- },
496
- async transaction(fn, options2) {
497
- const txConfig = options2?.isolationLevel ? {
498
- isolationLevel: options2.isolationLevel.replace("_", " ")
499
- } : void 0;
500
- return db.transaction(
501
- async (tx) => fn(bindTransactionBackend(tx), tx),
502
- txConfig
503
- );
504
- },
505
- adoptTransaction(externalTx) {
506
- if (!capabilities.transactions) {
507
- throw new chunkYEDQLNVE_cjs.ConfigurationError(
508
- "Cross-store atomicity is unavailable on this Postgres backend: its driver does not support transactions (drizzle-orm/neon-http, Cloudflare D1). Adopting an external transaction here would let the caller's relational write commit with no way to roll back the graph write. Use a node-postgres or neon-serverless (Pool/WebSocket) connection for cross-store transactions.",
509
- {
510
- backend: "postgres",
511
- capability: "transactions",
512
- supportsTransactions: false
513
- }
514
- );
515
- }
516
- chunk2E4VTD2E_cjs.assertAdoptedDialect(externalTx, pgCore.PgDatabase, "postgres");
517
- return bindTransactionBackend(externalTx);
518
- },
519
- async close() {
520
- }
521
- };
522
- return backend;
523
- }
524
- function createPostgresOperationBackend(options) {
525
- const {
526
- db,
527
- executionAdapter,
528
- adapterOptions,
529
- operationStrategy,
530
- tableNames,
531
- capabilities,
532
- fulltextStrategy
533
- } = options;
534
- async function execAll(query) {
535
- return executionAdapter.execute(query);
536
- }
537
- async function execGet(query) {
538
- const rows = await executionAdapter.execute(query);
539
- return rows[0];
540
- }
541
- async function execRun(query) {
542
- await executionAdapter.execute(query);
543
- }
544
- let efSearchUnsupportedWarned = false;
545
- function warnEfSearchUnsupported() {
546
- if (efSearchUnsupportedWarned) return;
547
- efSearchUnsupportedWarned = true;
548
- if (typeof console === "undefined" || typeof console.warn !== "function") {
549
- return;
550
- }
551
- console.warn(
552
- "[typegraph] efSearch (hnsw.ef_search override) was ignored: this Postgres backend has transactions disabled (e.g. drizzle-orm/neon-http), and SET LOCAL needs a transaction to scope the override. Use a transactional driver (node-postgres / neon-serverless / postgres-js) to apply efSearch."
553
- );
554
- }
555
- async function runVectorSearch(efSearch, query) {
556
- if (efSearch === void 0) {
557
- return execAll(query);
558
- }
559
- if (!capabilities.transactions) {
560
- warnEfSearchUnsupported();
561
- return execAll(query);
562
- }
563
- const setEfSearch = drizzleOrm.sql.raw(`SET LOCAL hnsw.ef_search = ${efSearch}`);
564
- if (db instanceof pgCore.PgTransaction) {
565
- const [setting] = await execAll(
566
- drizzleOrm.sql`SELECT current_setting('hnsw.ef_search') AS ef_search`
567
- );
568
- await execRun(setEfSearch);
569
- const rows = await execAll(query);
570
- if (setting !== void 0) {
571
- await execRun(
572
- drizzleOrm.sql`SELECT set_config('hnsw.ef_search', ${setting.ef_search}, true)`
573
- );
574
- }
575
- return rows;
576
- }
577
- return db.transaction(async (tx) => {
578
- const txAdapter = createPostgresExecutionAdapter(tx, adapterOptions);
579
- await txAdapter.execute(setEfSearch);
580
- return txAdapter.execute(query);
581
- });
582
- }
583
- const commonBackend = chunk2E4VTD2E_cjs.createCommonOperationBackend({
584
- batchConfig: {
585
- checkUniqueBatchChunkSize: POSTGRES_CHECK_UNIQUE_BATCH_CHUNK_SIZE,
586
- edgeInsertBatchSize: POSTGRES_EDGE_INSERT_BATCH_SIZE,
587
- getEdgesChunkSize: POSTGRES_GET_EDGES_ID_CHUNK_SIZE,
588
- getNodesChunkSize: POSTGRES_GET_NODES_ID_CHUNK_SIZE,
589
- nodeInsertBatchSize: POSTGRES_NODE_INSERT_BATCH_SIZE
590
- },
591
- execution: {
592
- execAll,
593
- execGet,
594
- execRun
595
- },
596
- nowIso: chunk2E4VTD2E_cjs.nowIso,
597
- operationStrategy,
598
- rowMappers: {
599
- toEdgeRow,
600
- toNodeRow,
601
- toSchemaVersionRow,
602
- toUniqueRow
603
- }
604
- });
605
- const executeCompiled = executionAdapter.executeCompiled;
606
- const executeRawMethod = executeCompiled === void 0 ? {} : {
607
- async executeRaw(sqlText, params) {
608
- return executeCompiled({ params, sql: sqlText });
609
- }
610
- };
611
- const operationBackend = {
612
- ...commonBackend,
613
- ...executeRawMethod,
614
- capabilities,
615
- fulltextStrategy,
616
- dialect: "postgres",
617
- tableNames,
618
- // === Embedding Operations ===
619
- async upsertEmbedding(params) {
620
- const timestamp = chunk2E4VTD2E_cjs.nowIso();
621
- const query = operationStrategy.buildUpsertEmbedding(params, timestamp);
622
- await execRun(query);
623
- },
624
- async deleteEmbedding(params) {
625
- const query = operationStrategy.buildDeleteEmbedding(params);
626
- await execRun(query);
627
- },
628
- async getEmbedding(graphId, nodeKind, nodeId, fieldPath) {
629
- const query = operationStrategy.buildGetEmbedding(
630
- graphId,
631
- nodeKind,
632
- nodeId,
633
- fieldPath
634
- );
635
- const row = await execGet(query);
636
- return row ? toEmbeddingRow(row) : void 0;
637
- },
638
- async vectorSearch(params) {
639
- const query = operationStrategy.buildVectorSearch(params);
640
- const rows = await runVectorSearch(params.efSearch, query);
641
- return rows.map((row) => ({
642
- nodeId: row.node_id,
643
- score: row.score
644
- }));
645
- },
646
- async createVectorIndex(params) {
647
- const indexOptions = {
648
- graphId: params.graphId,
649
- nodeKind: params.nodeKind,
650
- fieldPath: params.fieldPath,
651
- dimensions: params.dimensions,
652
- embeddingsTableName: tableNames.embeddings,
653
- indexType: params.indexType,
654
- metric: params.metric,
655
- ...params.indexParams?.m === void 0 ? {} : { hnswM: params.indexParams.m },
656
- ...params.indexParams?.efConstruction === void 0 ? {} : { hnswEfConstruction: params.indexParams.efConstruction },
657
- ...params.indexParams?.lists === void 0 ? {} : { ivfflatLists: params.indexParams.lists },
658
- ...params.concurrent === true ? { concurrent: true } : {}
659
- };
660
- const result = await chunk2E4VTD2E_cjs.createPostgresVectorIndex(db, indexOptions);
661
- if (!result.success) {
662
- throw new Error(
663
- result.message ?? "Failed to create PostgreSQL vector index"
664
- );
665
- }
666
- },
667
- // === Fulltext Operations ===
668
- async upsertFulltext(params) {
669
- const timestamp = chunk2E4VTD2E_cjs.nowIso();
670
- const statements = operationStrategy.buildUpsertFulltext(
671
- params,
672
- timestamp
673
- );
674
- for (const stmt of statements) {
675
- await execRun(stmt);
676
- }
677
- },
678
- async deleteFulltext(params) {
679
- const statements = operationStrategy.buildDeleteFulltext(params);
680
- for (const stmt of statements) {
681
- await execRun(stmt);
682
- }
683
- },
684
- async upsertFulltextBatch(params) {
685
- if (params.rows.length === 0) return;
686
- const timestamp = chunk2E4VTD2E_cjs.nowIso();
687
- const statements = operationStrategy.buildUpsertFulltextBatch(
688
- params,
689
- timestamp
690
- );
691
- for (const stmt of statements) {
692
- await execRun(stmt);
693
- }
694
- },
695
- async deleteFulltextBatch(params) {
696
- if (params.nodeIds.length === 0) return;
697
- const statements = operationStrategy.buildDeleteFulltextBatch(params);
698
- for (const stmt of statements) {
699
- await execRun(stmt);
700
- }
701
- },
702
- async fulltextSearch(params) {
703
- const query = operationStrategy.buildFulltextSearch(params);
704
- const rows = await execAll(query);
705
- return rows.map((row, index) => ({
706
- nodeId: row.node_id,
707
- score: chunk2E4VTD2E_cjs.coerceNumericScore(row.score),
708
- rank: index + 1,
709
- ...row.snippet === null ? {} : { snippet: row.snippet }
710
- }));
711
- },
712
- async dropVectorIndex(params) {
713
- const metrics = capabilities.vector?.metrics ?? ["cosine"];
714
- await Promise.all(
715
- metrics.map(async (metric) => {
716
- const indexName = chunk2E4VTD2E_cjs.generateVectorIndexName(
717
- params.graphId,
718
- params.nodeKind,
719
- params.fieldPath,
720
- metric
721
- );
722
- const result = await chunk2E4VTD2E_cjs.dropPostgresVectorIndex(db, indexName);
723
- if (!result.success) {
724
- throw new Error(
725
- result.message ?? "Failed to drop PostgreSQL vector index"
726
- );
727
- }
728
- })
729
- );
730
- },
731
- // === Query Execution ===
732
- async execute(query) {
733
- return executionAdapter.execute(query);
734
- },
735
- compileSql(query) {
736
- return executionAdapter.compile(query);
737
- }
738
- };
739
- return operationBackend;
740
- }
741
- function createTransactionBackend(options) {
742
- const txExecutionAdapter = options.executionAdapter ?? createPostgresExecutionAdapter(options.db, options.adapterOptions);
743
- return createPostgresOperationBackend({
744
- db: options.db,
745
- executionAdapter: txExecutionAdapter,
746
- adapterOptions: options.adapterOptions,
747
- operationStrategy: options.operationStrategy,
748
- tableNames: options.tableNames,
749
- capabilities: options.capabilities,
750
- fulltextStrategy: options.fulltextStrategy
751
- });
752
- }
753
16
 
754
- Object.defineProperty(exports, "createPostgresTables", {
17
+ Object.defineProperty(exports, "createPostgresBackend", {
755
18
  enumerable: true,
756
- get: function () { return chunk2E4VTD2E_cjs.createPostgresTables; }
19
+ get: function () { return chunkUP4QAJND_cjs.createPostgresBackend; }
757
20
  });
758
- Object.defineProperty(exports, "edges", {
21
+ Object.defineProperty(exports, "createPostgresTables", {
759
22
  enumerable: true,
760
- get: function () { return chunk2E4VTD2E_cjs.edges; }
23
+ get: function () { return chunkZYQEXGYC_cjs.createPostgresTables; }
761
24
  });
762
- Object.defineProperty(exports, "embeddings", {
25
+ Object.defineProperty(exports, "edges", {
763
26
  enumerable: true,
764
- get: function () { return chunk2E4VTD2E_cjs.embeddings; }
27
+ get: function () { return chunkZYQEXGYC_cjs.edges; }
765
28
  });
766
29
  Object.defineProperty(exports, "fulltext", {
767
30
  enumerable: true,
768
- get: function () { return chunk2E4VTD2E_cjs.fulltext; }
31
+ get: function () { return chunkZYQEXGYC_cjs.fulltext; }
769
32
  });
770
33
  Object.defineProperty(exports, "generatePostgresDDL", {
771
34
  enumerable: true,
772
- get: function () { return chunk2E4VTD2E_cjs.generatePostgresDDL; }
35
+ get: function () { return chunkZYQEXGYC_cjs.generatePostgresDDL; }
773
36
  });
774
37
  Object.defineProperty(exports, "generatePostgresMigrationSQL", {
775
38
  enumerable: true,
776
- get: function () { return chunk2E4VTD2E_cjs.generatePostgresMigrationSQL; }
39
+ get: function () { return chunkZYQEXGYC_cjs.generatePostgresMigrationSQL; }
777
40
  });
778
41
  Object.defineProperty(exports, "nodes", {
779
42
  enumerable: true,
780
- get: function () { return chunk2E4VTD2E_cjs.nodes; }
43
+ get: function () { return chunkZYQEXGYC_cjs.nodes; }
781
44
  });
782
45
  Object.defineProperty(exports, "schemaVersions", {
783
46
  enumerable: true,
784
- get: function () { return chunk2E4VTD2E_cjs.schemaVersions; }
47
+ get: function () { return chunkZYQEXGYC_cjs.schemaVersions; }
785
48
  });
786
49
  Object.defineProperty(exports, "tables", {
787
50
  enumerable: true,
788
- get: function () { return chunk2E4VTD2E_cjs.tables; }
51
+ get: function () { return chunkZYQEXGYC_cjs.tables; }
789
52
  });
790
53
  Object.defineProperty(exports, "uniques", {
791
54
  enumerable: true,
792
- get: function () { return chunk2E4VTD2E_cjs.uniques; }
55
+ get: function () { return chunkZYQEXGYC_cjs.uniques; }
793
56
  });
794
- exports.createPostgresBackend = createPostgresBackend;
795
57
  //# sourceMappingURL=index.cjs.map
796
58
  //# sourceMappingURL=index.cjs.map