@nicia-ai/typegraph 0.66.0 → 0.66.1
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/CHANGELOG.md +16 -0
- package/dist/backend/drizzle/engine/index.cjs +6 -6
- package/dist/backend/drizzle/engine/index.d.cts +4 -4
- package/dist/backend/drizzle/engine/index.d.ts +4 -4
- package/dist/backend/drizzle/engine/index.js +1 -1
- package/dist/backend/postgres/index.cjs +15 -15
- package/dist/backend/postgres/index.d.cts +2 -2
- package/dist/backend/postgres/index.d.ts +2 -2
- package/dist/backend/postgres/index.js +1 -1
- package/dist/backend/postgres/pglite-store.cjs +1 -1
- package/dist/backend/postgres/pglite-store.js +1 -1
- package/dist/backend/postgres/pglite.cjs +3 -3
- package/dist/backend/postgres/pglite.js +2 -2
- package/dist/backend/sqlite/index.cjs +14 -14
- package/dist/backend/sqlite/index.d.cts +2 -2
- package/dist/backend/sqlite/index.d.ts +2 -2
- package/dist/backend/sqlite/index.js +1 -1
- package/dist/backend/sqlite/libsql.cjs +6 -6
- package/dist/backend/sqlite/libsql.js +1 -1
- package/dist/backend/sqlite/local-store.cjs +1 -1
- package/dist/backend/sqlite/local-store.js +1 -1
- package/dist/backend/sqlite/local.cjs +3 -3
- package/dist/backend/sqlite/local.js +2 -2
- package/dist/{chunk-MUEPEWMQ.js → chunk-2DJKHZQ4.js} +10 -2
- package/dist/chunk-2DJKHZQ4.js.map +1 -0
- package/dist/{chunk-732VS5PW.cjs → chunk-ANMCKLZQ.cjs} +12 -12
- package/dist/{chunk-732VS5PW.cjs.map → chunk-ANMCKLZQ.cjs.map} +1 -1
- package/dist/{chunk-XQNKN3UF.cjs → chunk-MN325MG4.cjs} +10 -2
- package/dist/chunk-MN325MG4.cjs.map +1 -0
- package/dist/{chunk-MGCPSR4C.cjs → chunk-WWSYGZED.cjs} +6 -6
- package/dist/{chunk-MGCPSR4C.cjs.map → chunk-WWSYGZED.cjs.map} +1 -1
- package/dist/{chunk-HSLP6CVG.js → chunk-YHMXF7OZ.js} +3 -3
- package/dist/{chunk-HSLP6CVG.js.map → chunk-YHMXF7OZ.js.map} +1 -1
- package/dist/{chunk-C3HNC3S6.js → chunk-ZONDBN6H.js} +3 -3
- package/dist/{chunk-C3HNC3S6.js.map → chunk-ZONDBN6H.js.map} +1 -1
- package/dist/{local-store-impl-XKWR46WQ.js → local-store-impl-ERPNYOCL.js} +4 -4
- package/dist/{local-store-impl-XKWR46WQ.js.map → local-store-impl-ERPNYOCL.js.map} +1 -1
- package/dist/{local-store-impl-J6TJG45N.cjs → local-store-impl-OUINMCYI.cjs} +6 -6
- package/dist/{local-store-impl-J6TJG45N.cjs.map → local-store-impl-OUINMCYI.cjs.map} +1 -1
- package/dist/{pglite-store-impl-LRZ4TO3H.js → pglite-store-impl-DUJBQZS5.js} +4 -4
- package/dist/{pglite-store-impl-LRZ4TO3H.js.map → pglite-store-impl-DUJBQZS5.js.map} +1 -1
- package/dist/{pglite-store-impl-KXD5VWC5.cjs → pglite-store-impl-Z3SOOP75.cjs} +6 -6
- package/dist/{pglite-store-impl-KXD5VWC5.cjs.map → pglite-store-impl-Z3SOOP75.cjs.map} +1 -1
- package/dist/{postgres-CRRB2qzy.d.ts → postgres-BbTYW3b_.d.ts} +1 -1
- package/dist/{postgres-BIm6TDfF.d.cts → postgres-Dp3MpyJt.d.cts} +1 -1
- package/dist/{profile-DVd70NA-.d.ts → profile-Ch5SSewK.d.ts} +6 -6
- package/dist/{profile-CjAffcQt.d.cts → profile-DppApFgt.d.cts} +6 -6
- package/dist/{sqlite-DX9H3L7z.d.cts → sqlite-BpRtjC36.d.cts} +1 -1
- package/dist/{sqlite-BNwQ5pd7.d.ts → sqlite-CH0Zq0Qv.d.ts} +1 -1
- package/package.json +1 -1
- package/dist/chunk-MUEPEWMQ.js.map +0 -1
- package/dist/chunk-XQNKN3UF.cjs.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @nicia-ai/typegraph
|
|
2
2
|
|
|
3
|
+
## 0.66.1
|
|
4
|
+
|
|
5
|
+
### Highlights
|
|
6
|
+
|
|
7
|
+
TypeGraph 0.66.1 fixes store-opening failures when upgrading older SQLite or PostgreSQL databases that never received the recorded-node and recorded-edge tables. Base-schema adoption now creates the missing tables and indexes while preserving existing graph data and custom table names, including when recorded history is not enabled.
|
|
8
|
+
|
|
9
|
+
### Upgrade notes
|
|
10
|
+
|
|
11
|
+
- If an earlier upgrade failed with a missing recorded-table error, deploy 0.66.1 and retry your normal privileged store-open or `backend.adoptBaseSchema()` path. Adoption resumes from the installed marker, including databases left at base-schema version 2.
|
|
12
|
+
- After upgrading and verifying successful adoption, remove any extra `bootstrapTables()` call added specifically to work around this failure. Keep bootstrap calls required by your normal provisioning workflow; runtime-only, least-privilege store opening still does not perform adoption.
|
|
13
|
+
- Roll affected deployments forward. Do not roll back to 0.56.0 after the base-schema marker has advanced beyond version 1: that release refuses the newer marker.
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- [#724](https://github.com/nicia-ai/typegraph/pull/724) [`e3ebddd`](https://github.com/nicia-ai/typegraph/commit/e3ebddda8f37833255dcdd75cd38b5f24a02c2e5) Thanks [@pdlug](https://github.com/pdlug)! - Fix upgrades from legacy databases that lack recorded-node or recorded-edge tables. Version-3 base-schema adoption now creates these tables and their structural indexes before installing changed-since indexes on SQLite and PostgreSQL, preserving existing data and custom table names. Failed upgrades left at base-schema version 2 can retry through normal adoption without an explicit `bootstrapTables()` workaround.
|
|
18
|
+
|
|
3
19
|
## 0.66.0
|
|
4
20
|
|
|
5
21
|
### Highlights
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkMN325MG4_cjs = require('../../../chunk-MN325MG4.cjs');
|
|
4
4
|
require('../../../chunk-DCYIUKIM.cjs');
|
|
5
5
|
require('../../../chunk-FZKXBPTS.cjs');
|
|
6
6
|
require('../../../chunk-76OB5RSH.cjs');
|
|
@@ -34,23 +34,23 @@ require('../../../chunk-7XYPLAPL.cjs');
|
|
|
34
34
|
|
|
35
35
|
Object.defineProperty(exports, "DERIVABLE_ENGINE_PROFILE_KEYS", {
|
|
36
36
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunkMN325MG4_cjs.DERIVABLE_ENGINE_PROFILE_KEYS; }
|
|
38
38
|
});
|
|
39
39
|
Object.defineProperty(exports, "buildPostgresEngineProfile", {
|
|
40
40
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunkMN325MG4_cjs.buildPostgresEngineProfile; }
|
|
42
42
|
});
|
|
43
43
|
Object.defineProperty(exports, "buildSqliteEngineProfile", {
|
|
44
44
|
enumerable: true,
|
|
45
|
-
get: function () { return
|
|
45
|
+
get: function () { return chunkMN325MG4_cjs.buildSqliteEngineProfile; }
|
|
46
46
|
});
|
|
47
47
|
Object.defineProperty(exports, "createSqlBackend", {
|
|
48
48
|
enumerable: true,
|
|
49
|
-
get: function () { return
|
|
49
|
+
get: function () { return chunkMN325MG4_cjs.createSqlBackend; }
|
|
50
50
|
});
|
|
51
51
|
Object.defineProperty(exports, "deriveEngineProfile", {
|
|
52
52
|
enumerable: true,
|
|
53
|
-
get: function () { return
|
|
53
|
+
get: function () { return chunkMN325MG4_cjs.deriveEngineProfile; }
|
|
54
54
|
});
|
|
55
55
|
//# sourceMappingURL=index.cjs.map
|
|
56
56
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { A as AdapterBackend, F as FenceSql } from '../../../types-BynPp5kU.cjs';
|
|
2
2
|
export { h as AdoptedSchemaWriteTransaction, i as FenceStatements, S as SchemaProvisioning, W as WriteFencePlan } from '../../../types-BynPp5kU.cjs';
|
|
3
|
-
import { a as SqlEngineProfile } from '../../../profile-
|
|
4
|
-
export { B as BackendResourceAudit, b as BaseSchemaRuntime, C as ContributionRuntime, E as EngineAssembly, c as EngineProvisioning, d as EngineTableNames, G as GraphTemplateRuntime, I as IdentityRuntime, e as IndexMaterializationRuntime, K as KindRemovalRuntime } from '../../../profile-
|
|
5
|
-
export { b as buildPostgresEngineProfile } from '../../../postgres-
|
|
6
|
-
export { b as buildSqliteEngineProfile } from '../../../sqlite-
|
|
3
|
+
import { a as SqlEngineProfile } from '../../../profile-DppApFgt.cjs';
|
|
4
|
+
export { B as BackendResourceAudit, b as BaseSchemaRuntime, C as ContributionRuntime, E as EngineAssembly, c as EngineProvisioning, d as EngineTableNames, G as GraphTemplateRuntime, I as IdentityRuntime, e as IndexMaterializationRuntime, K as KindRemovalRuntime } from '../../../profile-DppApFgt.cjs';
|
|
5
|
+
export { b as buildPostgresEngineProfile } from '../../../postgres-Dp3MpyJt.cjs';
|
|
6
|
+
export { b as buildSqliteEngineProfile } from '../../../sqlite-BpRtjC36.cjs';
|
|
7
7
|
import 'zod';
|
|
8
8
|
import 'drizzle-orm';
|
|
9
9
|
import '../../../atomic-mutation-program-DMdmc4s0.cjs';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { A as AdapterBackend, F as FenceSql } from '../../../types-BynPp5kU.js';
|
|
2
2
|
export { h as AdoptedSchemaWriteTransaction, i as FenceStatements, S as SchemaProvisioning, W as WriteFencePlan } from '../../../types-BynPp5kU.js';
|
|
3
|
-
import { a as SqlEngineProfile } from '../../../profile-
|
|
4
|
-
export { B as BackendResourceAudit, b as BaseSchemaRuntime, C as ContributionRuntime, E as EngineAssembly, c as EngineProvisioning, d as EngineTableNames, G as GraphTemplateRuntime, I as IdentityRuntime, e as IndexMaterializationRuntime, K as KindRemovalRuntime } from '../../../profile-
|
|
5
|
-
export { b as buildPostgresEngineProfile } from '../../../postgres-
|
|
6
|
-
export { b as buildSqliteEngineProfile } from '../../../sqlite-
|
|
3
|
+
import { a as SqlEngineProfile } from '../../../profile-Ch5SSewK.js';
|
|
4
|
+
export { B as BackendResourceAudit, b as BaseSchemaRuntime, C as ContributionRuntime, E as EngineAssembly, c as EngineProvisioning, d as EngineTableNames, G as GraphTemplateRuntime, I as IdentityRuntime, e as IndexMaterializationRuntime, K as KindRemovalRuntime } from '../../../profile-Ch5SSewK.js';
|
|
5
|
+
export { b as buildPostgresEngineProfile } from '../../../postgres-BbTYW3b_.js';
|
|
6
|
+
export { b as buildSqliteEngineProfile } from '../../../sqlite-CH0Zq0Qv.js';
|
|
7
7
|
import 'zod';
|
|
8
8
|
import 'drizzle-orm';
|
|
9
9
|
import '../../../atomic-mutation-program-BhP75Qn0.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { DERIVABLE_ENGINE_PROFILE_KEYS, buildPostgresEngineProfile, buildSqliteEngineProfile, createSqlBackend, deriveEngineProfile } from '../../../chunk-
|
|
1
|
+
export { DERIVABLE_ENGINE_PROFILE_KEYS, buildPostgresEngineProfile, buildSqliteEngineProfile, createSqlBackend, deriveEngineProfile } from '../../../chunk-2DJKHZQ4.js';
|
|
2
2
|
import '../../../chunk-DX6DIU2S.js';
|
|
3
3
|
import '../../../chunk-D2DMFIH2.js';
|
|
4
4
|
import '../../../chunk-OF63ZHSD.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkMN325MG4_cjs = require('../../chunk-MN325MG4.cjs');
|
|
4
4
|
require('../../chunk-DCYIUKIM.cjs');
|
|
5
5
|
require('../../chunk-FZKXBPTS.cjs');
|
|
6
6
|
require('../../chunk-76OB5RSH.cjs');
|
|
@@ -34,59 +34,59 @@ require('../../chunk-7XYPLAPL.cjs');
|
|
|
34
34
|
|
|
35
35
|
Object.defineProperty(exports, "createPostgresBackend", {
|
|
36
36
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunkMN325MG4_cjs.createPostgresBackend; }
|
|
38
38
|
});
|
|
39
39
|
Object.defineProperty(exports, "createPostgresTables", {
|
|
40
40
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunkMN325MG4_cjs.createPostgresTables; }
|
|
42
42
|
});
|
|
43
43
|
Object.defineProperty(exports, "edgeClaims", {
|
|
44
44
|
enumerable: true,
|
|
45
|
-
get: function () { return
|
|
45
|
+
get: function () { return chunkMN325MG4_cjs.edgeClaims; }
|
|
46
46
|
});
|
|
47
47
|
Object.defineProperty(exports, "edges", {
|
|
48
48
|
enumerable: true,
|
|
49
|
-
get: function () { return
|
|
49
|
+
get: function () { return chunkMN325MG4_cjs.edges; }
|
|
50
50
|
});
|
|
51
51
|
Object.defineProperty(exports, "fulltext", {
|
|
52
52
|
enumerable: true,
|
|
53
|
-
get: function () { return
|
|
53
|
+
get: function () { return chunkMN325MG4_cjs.fulltext; }
|
|
54
54
|
});
|
|
55
55
|
Object.defineProperty(exports, "generatePostgresDDL", {
|
|
56
56
|
enumerable: true,
|
|
57
|
-
get: function () { return
|
|
57
|
+
get: function () { return chunkMN325MG4_cjs.generatePostgresDDL; }
|
|
58
58
|
});
|
|
59
59
|
Object.defineProperty(exports, "generatePostgresMigrationSQL", {
|
|
60
60
|
enumerable: true,
|
|
61
|
-
get: function () { return
|
|
61
|
+
get: function () { return chunkMN325MG4_cjs.generatePostgresMigrationSQL; }
|
|
62
62
|
});
|
|
63
63
|
Object.defineProperty(exports, "nodes", {
|
|
64
64
|
enumerable: true,
|
|
65
|
-
get: function () { return
|
|
65
|
+
get: function () { return chunkMN325MG4_cjs.nodes; }
|
|
66
66
|
});
|
|
67
67
|
Object.defineProperty(exports, "recordedClock", {
|
|
68
68
|
enumerable: true,
|
|
69
|
-
get: function () { return
|
|
69
|
+
get: function () { return chunkMN325MG4_cjs.recordedClock; }
|
|
70
70
|
});
|
|
71
71
|
Object.defineProperty(exports, "recordedEdges", {
|
|
72
72
|
enumerable: true,
|
|
73
|
-
get: function () { return
|
|
73
|
+
get: function () { return chunkMN325MG4_cjs.recordedEdges; }
|
|
74
74
|
});
|
|
75
75
|
Object.defineProperty(exports, "recordedNodes", {
|
|
76
76
|
enumerable: true,
|
|
77
|
-
get: function () { return
|
|
77
|
+
get: function () { return chunkMN325MG4_cjs.recordedNodes; }
|
|
78
78
|
});
|
|
79
79
|
Object.defineProperty(exports, "schemaVersions", {
|
|
80
80
|
enumerable: true,
|
|
81
|
-
get: function () { return
|
|
81
|
+
get: function () { return chunkMN325MG4_cjs.schemaVersions; }
|
|
82
82
|
});
|
|
83
83
|
Object.defineProperty(exports, "tables", {
|
|
84
84
|
enumerable: true,
|
|
85
|
-
get: function () { return
|
|
85
|
+
get: function () { return chunkMN325MG4_cjs.tables; }
|
|
86
86
|
});
|
|
87
87
|
Object.defineProperty(exports, "uniques", {
|
|
88
88
|
enumerable: true,
|
|
89
|
-
get: function () { return
|
|
89
|
+
get: function () { return chunkMN325MG4_cjs.uniques; }
|
|
90
90
|
});
|
|
91
91
|
Object.defineProperty(exports, "postgresFenceSql", {
|
|
92
92
|
enumerable: true,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { F as FenceSql } from '../../types-BynPp5kU.cjs';
|
|
2
2
|
export { B as BundledBackendCapabilityOverrides, C as ContributionDiagnostic, a as ContributionDiagnosticState, b as ContributionRepairEntry, c as ContributionRepairResult, G as GraphIdentityConfig } from '../../types-BynPp5kU.cjs';
|
|
3
3
|
export { A as AnyPgDatabase, a as AnyPgTransaction } from '../../postgres-execution-fKW0qRiN.cjs';
|
|
4
|
-
export { P as PostgresBackendOptions, c as createPostgresBackend } from '../../postgres-
|
|
5
|
-
export { S as SerializedResourceDeclaration } from '../../profile-
|
|
4
|
+
export { P as PostgresBackendOptions, c as createPostgresBackend } from '../../postgres-Dp3MpyJt.cjs';
|
|
5
|
+
export { S as SerializedResourceDeclaration } from '../../profile-DppApFgt.cjs';
|
|
6
6
|
export { C as CreatePostgresTablesOptions, P as PostgresTableNames, a as PostgresTables, c as createPostgresTables, e as edgeClaims, b as edges, f as fulltext, n as nodes, r as recordedClock, d as recordedEdges, g as recordedNodes, s as schemaVersions, t as tables, u as uniques } from '../../postgres-DOBXcZVg.cjs';
|
|
7
7
|
export { b as generatePostgresDDL, c as generatePostgresMigrationSQL } from '../../ddl-D_09BfbN.cjs';
|
|
8
8
|
import 'zod';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { F as FenceSql } from '../../types-BynPp5kU.js';
|
|
2
2
|
export { B as BundledBackendCapabilityOverrides, C as ContributionDiagnostic, a as ContributionDiagnosticState, b as ContributionRepairEntry, c as ContributionRepairResult, G as GraphIdentityConfig } from '../../types-BynPp5kU.js';
|
|
3
3
|
export { A as AnyPgDatabase, a as AnyPgTransaction } from '../../postgres-execution-fKW0qRiN.js';
|
|
4
|
-
export { P as PostgresBackendOptions, c as createPostgresBackend } from '../../postgres-
|
|
5
|
-
export { S as SerializedResourceDeclaration } from '../../profile-
|
|
4
|
+
export { P as PostgresBackendOptions, c as createPostgresBackend } from '../../postgres-BbTYW3b_.js';
|
|
5
|
+
export { S as SerializedResourceDeclaration } from '../../profile-Ch5SSewK.js';
|
|
6
6
|
export { C as CreatePostgresTablesOptions, P as PostgresTableNames, a as PostgresTables, c as createPostgresTables, e as edgeClaims, b as edges, f as fulltext, n as nodes, r as recordedClock, d as recordedEdges, g as recordedNodes, s as schemaVersions, t as tables, u as uniques } from '../../postgres-DhZixg92.js';
|
|
7
7
|
export { b as generatePostgresDDL, c as generatePostgresMigrationSQL } from '../../ddl-2q7xLM1X.js';
|
|
8
8
|
import 'zod';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { createPostgresBackend, createPostgresTables, edgeClaims, edges, fulltext, generatePostgresDDL, generatePostgresMigrationSQL, nodes, recordedClock, recordedEdges, recordedNodes, schemaVersions, tables, uniques } from '../../chunk-
|
|
1
|
+
export { createPostgresBackend, createPostgresTables, edgeClaims, edges, fulltext, generatePostgresDDL, generatePostgresMigrationSQL, nodes, recordedClock, recordedEdges, recordedNodes, schemaVersions, tables, uniques } from '../../chunk-2DJKHZQ4.js';
|
|
2
2
|
import '../../chunk-DX6DIU2S.js';
|
|
3
3
|
import '../../chunk-D2DMFIH2.js';
|
|
4
4
|
import '../../chunk-OF63ZHSD.js';
|
|
@@ -7,7 +7,7 @@ require('../../chunk-7XYPLAPL.cjs');
|
|
|
7
7
|
async function createLocalPgliteStore(graph, options = {}) {
|
|
8
8
|
const impl = await chunkMUKIEXH5_cjs.loadDrizzleBackedModule(
|
|
9
9
|
"./postgres/pglite",
|
|
10
|
-
() => import('../../pglite-store-impl-
|
|
10
|
+
() => import('../../pglite-store-impl-Z3SOOP75.cjs')
|
|
11
11
|
);
|
|
12
12
|
return impl.createLocalPgliteStoreImpl(graph, options);
|
|
13
13
|
}
|
|
@@ -5,7 +5,7 @@ import '../../chunk-GMKPIYHY.js';
|
|
|
5
5
|
async function createLocalPgliteStore(graph, options = {}) {
|
|
6
6
|
const impl = await loadDrizzleBackedModule(
|
|
7
7
|
"./postgres/pglite",
|
|
8
|
-
() => import('../../pglite-store-impl-
|
|
8
|
+
() => import('../../pglite-store-impl-DUJBQZS5.js')
|
|
9
9
|
);
|
|
10
10
|
return impl.createLocalPgliteStoreImpl(graph, options);
|
|
11
11
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../../chunk-
|
|
3
|
+
var chunkWWSYGZED_cjs = require('../../chunk-WWSYGZED.cjs');
|
|
4
|
+
require('../../chunk-MN325MG4.cjs');
|
|
5
5
|
require('../../chunk-DCYIUKIM.cjs');
|
|
6
6
|
require('../../chunk-FZKXBPTS.cjs');
|
|
7
7
|
require('../../chunk-76OB5RSH.cjs');
|
|
@@ -35,7 +35,7 @@ require('../../chunk-7XYPLAPL.cjs');
|
|
|
35
35
|
|
|
36
36
|
Object.defineProperty(exports, "createLocalPgliteBackend", {
|
|
37
37
|
enumerable: true,
|
|
38
|
-
get: function () { return
|
|
38
|
+
get: function () { return chunkWWSYGZED_cjs.createLocalPgliteBackend; }
|
|
39
39
|
});
|
|
40
40
|
//# sourceMappingURL=pglite.cjs.map
|
|
41
41
|
//# sourceMappingURL=pglite.cjs.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { createLocalPgliteBackend } from '../../chunk-
|
|
2
|
-
import '../../chunk-
|
|
1
|
+
export { createLocalPgliteBackend } from '../../chunk-ZONDBN6H.js';
|
|
2
|
+
import '../../chunk-2DJKHZQ4.js';
|
|
3
3
|
import '../../chunk-DX6DIU2S.js';
|
|
4
4
|
import '../../chunk-D2DMFIH2.js';
|
|
5
5
|
import '../../chunk-OF63ZHSD.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkMN325MG4_cjs = require('../../chunk-MN325MG4.cjs');
|
|
4
4
|
require('../../chunk-DCYIUKIM.cjs');
|
|
5
5
|
require('../../chunk-FZKXBPTS.cjs');
|
|
6
6
|
require('../../chunk-76OB5RSH.cjs');
|
|
@@ -34,55 +34,55 @@ require('../../chunk-7XYPLAPL.cjs');
|
|
|
34
34
|
|
|
35
35
|
Object.defineProperty(exports, "createSqliteBackend", {
|
|
36
36
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunkMN325MG4_cjs.createSqliteBackend; }
|
|
38
38
|
});
|
|
39
39
|
Object.defineProperty(exports, "createSqliteTables", {
|
|
40
40
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunkMN325MG4_cjs.createSqliteTables; }
|
|
42
42
|
});
|
|
43
43
|
Object.defineProperty(exports, "edgeClaims", {
|
|
44
44
|
enumerable: true,
|
|
45
|
-
get: function () { return
|
|
45
|
+
get: function () { return chunkMN325MG4_cjs.edgeClaims2; }
|
|
46
46
|
});
|
|
47
47
|
Object.defineProperty(exports, "edges", {
|
|
48
48
|
enumerable: true,
|
|
49
|
-
get: function () { return
|
|
49
|
+
get: function () { return chunkMN325MG4_cjs.edges2; }
|
|
50
50
|
});
|
|
51
51
|
Object.defineProperty(exports, "generateSqliteDDL", {
|
|
52
52
|
enumerable: true,
|
|
53
|
-
get: function () { return
|
|
53
|
+
get: function () { return chunkMN325MG4_cjs.generateSqliteDDL; }
|
|
54
54
|
});
|
|
55
55
|
Object.defineProperty(exports, "generateSqliteMigrationSQL", {
|
|
56
56
|
enumerable: true,
|
|
57
|
-
get: function () { return
|
|
57
|
+
get: function () { return chunkMN325MG4_cjs.generateSqliteMigrationSQL; }
|
|
58
58
|
});
|
|
59
59
|
Object.defineProperty(exports, "nodes", {
|
|
60
60
|
enumerable: true,
|
|
61
|
-
get: function () { return
|
|
61
|
+
get: function () { return chunkMN325MG4_cjs.nodes2; }
|
|
62
62
|
});
|
|
63
63
|
Object.defineProperty(exports, "recordedClock", {
|
|
64
64
|
enumerable: true,
|
|
65
|
-
get: function () { return
|
|
65
|
+
get: function () { return chunkMN325MG4_cjs.recordedClock2; }
|
|
66
66
|
});
|
|
67
67
|
Object.defineProperty(exports, "recordedEdges", {
|
|
68
68
|
enumerable: true,
|
|
69
|
-
get: function () { return
|
|
69
|
+
get: function () { return chunkMN325MG4_cjs.recordedEdges2; }
|
|
70
70
|
});
|
|
71
71
|
Object.defineProperty(exports, "recordedNodes", {
|
|
72
72
|
enumerable: true,
|
|
73
|
-
get: function () { return
|
|
73
|
+
get: function () { return chunkMN325MG4_cjs.recordedNodes2; }
|
|
74
74
|
});
|
|
75
75
|
Object.defineProperty(exports, "schemaVersions", {
|
|
76
76
|
enumerable: true,
|
|
77
|
-
get: function () { return
|
|
77
|
+
get: function () { return chunkMN325MG4_cjs.schemaVersions2; }
|
|
78
78
|
});
|
|
79
79
|
Object.defineProperty(exports, "tables", {
|
|
80
80
|
enumerable: true,
|
|
81
|
-
get: function () { return
|
|
81
|
+
get: function () { return chunkMN325MG4_cjs.tables2; }
|
|
82
82
|
});
|
|
83
83
|
Object.defineProperty(exports, "uniques", {
|
|
84
84
|
enumerable: true,
|
|
85
|
-
get: function () { return
|
|
85
|
+
get: function () { return chunkMN325MG4_cjs.uniques2; }
|
|
86
86
|
});
|
|
87
87
|
//# sourceMappingURL=index.cjs.map
|
|
88
88
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { B as BundledBackendCapabilityOverrides, C as ContributionDiagnostic, a as ContributionDiagnosticState, b as ContributionRepairEntry, c as ContributionRepairResult, G as GraphIdentityConfig } from '../../types-BynPp5kU.cjs';
|
|
2
2
|
export { A as AnySqliteDatabase, S as SqliteTransactionMode } from '../../sqlite-execution-DHenxnsc.cjs';
|
|
3
|
-
export { S as SqliteBackendOptions, c as createSqliteBackend } from '../../sqlite-
|
|
4
|
-
export { S as SerializedResourceDeclaration } from '../../profile-
|
|
3
|
+
export { S as SqliteBackendOptions, c as createSqliteBackend } from '../../sqlite-BpRtjC36.cjs';
|
|
4
|
+
export { S as SerializedResourceDeclaration } from '../../profile-DppApFgt.cjs';
|
|
5
5
|
export { C as CreateSqliteTablesOptions, S as SqliteTableNames, a as SqliteTables, c as createSqliteTables, e as edgeClaims, b as edges, n as nodes, r as recordedClock, d as recordedEdges, f as recordedNodes, s as schemaVersions, t as tables, u as uniques } from '../../sqlite-BkQM9ZeI.cjs';
|
|
6
6
|
export { g as generateSqliteDDL, a as generateSqliteMigrationSQL } from '../../ddl-D_09BfbN.cjs';
|
|
7
7
|
import 'zod';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { B as BundledBackendCapabilityOverrides, C as ContributionDiagnostic, a as ContributionDiagnosticState, b as ContributionRepairEntry, c as ContributionRepairResult, G as GraphIdentityConfig } from '../../types-BynPp5kU.js';
|
|
2
2
|
export { A as AnySqliteDatabase, S as SqliteTransactionMode } from '../../sqlite-execution-DHenxnsc.js';
|
|
3
|
-
export { S as SqliteBackendOptions, c as createSqliteBackend } from '../../sqlite-
|
|
4
|
-
export { S as SerializedResourceDeclaration } from '../../profile-
|
|
3
|
+
export { S as SqliteBackendOptions, c as createSqliteBackend } from '../../sqlite-CH0Zq0Qv.js';
|
|
4
|
+
export { S as SerializedResourceDeclaration } from '../../profile-Ch5SSewK.js';
|
|
5
5
|
export { C as CreateSqliteTablesOptions, S as SqliteTableNames, a as SqliteTables, c as createSqliteTables, e as edgeClaims, b as edges, n as nodes, r as recordedClock, d as recordedEdges, f as recordedNodes, s as schemaVersions, t as tables, u as uniques } from '../../sqlite-CcCSeXGg.js';
|
|
6
6
|
export { g as generateSqliteDDL, a as generateSqliteMigrationSQL } from '../../ddl-2q7xLM1X.js';
|
|
7
7
|
import 'zod';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { createSqliteBackend, createSqliteTables, edgeClaims2 as edgeClaims, edges2 as edges, generateSqliteDDL, generateSqliteMigrationSQL, nodes2 as nodes, recordedClock2 as recordedClock, recordedEdges2 as recordedEdges, recordedNodes2 as recordedNodes, schemaVersions2 as schemaVersions, tables2 as tables, uniques2 as uniques } from '../../chunk-
|
|
1
|
+
export { createSqliteBackend, createSqliteTables, edgeClaims2 as edgeClaims, edges2 as edges, generateSqliteDDL, generateSqliteMigrationSQL, nodes2 as nodes, recordedClock2 as recordedClock, recordedEdges2 as recordedEdges, recordedNodes2 as recordedNodes, schemaVersions2 as schemaVersions, tables2 as tables, uniques2 as uniques } from '../../chunk-2DJKHZQ4.js';
|
|
2
2
|
import '../../chunk-DX6DIU2S.js';
|
|
3
3
|
import '../../chunk-D2DMFIH2.js';
|
|
4
4
|
import '../../chunk-OF63ZHSD.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkMN325MG4_cjs = require('../../chunk-MN325MG4.cjs');
|
|
4
4
|
require('../../chunk-DCYIUKIM.cjs');
|
|
5
5
|
var chunkCBH7KZOS_cjs = require('../../chunk-CBH7KZOS.cjs');
|
|
6
6
|
require('../../chunk-FZKXBPTS.cjs');
|
|
@@ -33,7 +33,7 @@ var chunk7XYPLAPL_cjs = require('../../chunk-7XYPLAPL.cjs');
|
|
|
33
33
|
var libsql = require('drizzle-orm/libsql');
|
|
34
34
|
|
|
35
35
|
async function installLibsqlBaseSchema(client, tables2, backend) {
|
|
36
|
-
const installationSql =
|
|
36
|
+
const installationSql = chunkMN325MG4_cjs.generateSqliteMigrationSQL(tables2);
|
|
37
37
|
try {
|
|
38
38
|
await client.executeMultiple(installationSql);
|
|
39
39
|
await chunkBXHAPCQG_cjs.requireDefined(backend.assertBaseSchemaCurrent)();
|
|
@@ -45,22 +45,22 @@ async function installLibsqlBaseSchema(client, tables2, backend) {
|
|
|
45
45
|
}
|
|
46
46
|
async function detectOrderedAggregates(client) {
|
|
47
47
|
try {
|
|
48
|
-
await client.execute(
|
|
48
|
+
await client.execute(chunkMN325MG4_cjs.ORDERED_AGGREGATE_PROBE_SQL);
|
|
49
49
|
return true;
|
|
50
50
|
} catch {
|
|
51
51
|
return false;
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
async function createLibsqlBackend(client, options = {}) {
|
|
55
|
-
const tables2 = options.tables ??
|
|
55
|
+
const tables2 = options.tables ?? chunkMN325MG4_cjs.tables2;
|
|
56
56
|
const db = libsql.drizzle(client);
|
|
57
57
|
const orderedAggregates = await detectOrderedAggregates(client);
|
|
58
|
-
const backend =
|
|
58
|
+
const backend = chunkMN325MG4_cjs.createSqliteBackend(db, {
|
|
59
59
|
...options.schemaProvisioning === void 0 ? {} : { schemaProvisioning: options.schemaProvisioning },
|
|
60
60
|
capabilities: { orderedAggregates },
|
|
61
61
|
executionProfile: {
|
|
62
62
|
isSync: false,
|
|
63
|
-
transactionMode:
|
|
63
|
+
transactionMode: chunkMN325MG4_cjs.isLocalLibsqlClient(client) ? "sql" : "drizzle"
|
|
64
64
|
},
|
|
65
65
|
tables: tables2,
|
|
66
66
|
// libSQL ships native vector search in core — no extension to load —
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { tables2, createSqliteBackend, isLocalLibsqlClient, ORDERED_AGGREGATE_PROBE_SQL, generateSqliteMigrationSQL } from '../../chunk-
|
|
1
|
+
import { tables2, createSqliteBackend, isLocalLibsqlClient, ORDERED_AGGREGATE_PROBE_SQL, generateSqliteMigrationSQL } from '../../chunk-2DJKHZQ4.js';
|
|
2
2
|
import '../../chunk-DX6DIU2S.js';
|
|
3
3
|
import { libsqlVectorStrategy } from '../../chunk-ZL67ENQW.js';
|
|
4
4
|
import '../../chunk-D2DMFIH2.js';
|
|
@@ -8,7 +8,7 @@ require('../../chunk-7XYPLAPL.cjs');
|
|
|
8
8
|
async function createLocalSqliteStore(graph, options = {}) {
|
|
9
9
|
const impl = await chunkMUKIEXH5_cjs.loadDrizzleBackedModule(
|
|
10
10
|
"./sqlite/local",
|
|
11
|
-
() => import('../../local-store-impl-
|
|
11
|
+
() => import('../../local-store-impl-OUINMCYI.cjs')
|
|
12
12
|
);
|
|
13
13
|
return impl.createLocalSqliteStoreImpl(graph, options);
|
|
14
14
|
}
|
|
@@ -6,7 +6,7 @@ import '../../chunk-GMKPIYHY.js';
|
|
|
6
6
|
async function createLocalSqliteStore(graph, options = {}) {
|
|
7
7
|
const impl = await loadDrizzleBackedModule(
|
|
8
8
|
"./sqlite/local",
|
|
9
|
-
() => import('../../local-store-impl-
|
|
9
|
+
() => import('../../local-store-impl-ERPNYOCL.js')
|
|
10
10
|
);
|
|
11
11
|
return impl.createLocalSqliteStoreImpl(graph, options);
|
|
12
12
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkANMCKLZQ_cjs = require('../../chunk-ANMCKLZQ.cjs');
|
|
4
4
|
var chunkQCD5JKU4_cjs = require('../../chunk-QCD5JKU4.cjs');
|
|
5
|
-
require('../../chunk-
|
|
5
|
+
require('../../chunk-MN325MG4.cjs');
|
|
6
6
|
require('../../chunk-DCYIUKIM.cjs');
|
|
7
7
|
require('../../chunk-CBHZX3G5.cjs');
|
|
8
8
|
require('../../chunk-FZKXBPTS.cjs');
|
|
@@ -37,7 +37,7 @@ require('../../chunk-7XYPLAPL.cjs');
|
|
|
37
37
|
|
|
38
38
|
Object.defineProperty(exports, "createLocalSqliteBackend", {
|
|
39
39
|
enumerable: true,
|
|
40
|
-
get: function () { return
|
|
40
|
+
get: function () { return chunkANMCKLZQ_cjs.createLocalSqliteBackend; }
|
|
41
41
|
});
|
|
42
42
|
Object.defineProperty(exports, "DEFAULT_LOCAL_SQLITE_PRAGMAS", {
|
|
43
43
|
enumerable: true,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { createLocalSqliteBackend } from '../../chunk-
|
|
1
|
+
export { createLocalSqliteBackend } from '../../chunk-YHMXF7OZ.js';
|
|
2
2
|
export { DEFAULT_LOCAL_SQLITE_PRAGMAS } from '../../chunk-H4FY6OZK.js';
|
|
3
|
-
import '../../chunk-
|
|
3
|
+
import '../../chunk-2DJKHZQ4.js';
|
|
4
4
|
import '../../chunk-DX6DIU2S.js';
|
|
5
5
|
import '../../chunk-JVWXWAV5.js';
|
|
6
6
|
import '../../chunk-D2DMFIH2.js';
|
|
@@ -14765,6 +14765,10 @@ function buildPostgresEngineProfile(db, options = {}) {
|
|
|
14765
14765
|
ensureEdgeMatchIdentityStorage,
|
|
14766
14766
|
fencesTableDdl: generatePgCreateTableSQL(tables3.fences),
|
|
14767
14767
|
sinceIndexDdl: [
|
|
14768
|
+
generatePgCreateTableSQL(tables3.recordedNodes),
|
|
14769
|
+
...generatePgCreateIndexSQL(tables3.recordedNodes),
|
|
14770
|
+
generatePgCreateTableSQL(tables3.recordedEdges),
|
|
14771
|
+
...generatePgCreateIndexSQL(tables3.recordedEdges),
|
|
14768
14772
|
generatePgCreateTableSQL(tables3.recordedIdentityAssertions),
|
|
14769
14773
|
...generatePgCreateIndexSQL(tables3.recordedIdentityAssertions),
|
|
14770
14774
|
...sinceIndexAdoptionDdl({
|
|
@@ -16920,6 +16924,10 @@ function buildSqliteEngineProfile(db, options = {}) {
|
|
|
16920
16924
|
ensureEdgeMatchIdentityStorage,
|
|
16921
16925
|
fencesTableDdl: generateSqliteCreateTableSQL(tables3.fences),
|
|
16922
16926
|
sinceIndexDdl: [
|
|
16927
|
+
generateSqliteCreateTableSQL(tables3.recordedNodes),
|
|
16928
|
+
...generateSqliteCreateIndexSQL(tables3.recordedNodes),
|
|
16929
|
+
generateSqliteCreateTableSQL(tables3.recordedEdges),
|
|
16930
|
+
...generateSqliteCreateIndexSQL(tables3.recordedEdges),
|
|
16923
16931
|
generateSqliteCreateTableSQL(tables3.recordedIdentityAssertions),
|
|
16924
16932
|
...generateSqliteCreateIndexSQL(tables3.recordedIdentityAssertions),
|
|
16925
16933
|
...sinceIndexAdoptionDdl({
|
|
@@ -17452,5 +17460,5 @@ function createTransactionBackend2(options) {
|
|
|
17452
17460
|
}
|
|
17453
17461
|
|
|
17454
17462
|
export { CURRENT_BASE_SCHEMA_VERSION, DERIVABLE_ENGINE_PROFILE_KEYS, ORDERED_AGGREGATE_PROBE_SQL, assertNoLegacyTransactionCapability, buildPostgresEngineProfile, buildSqliteEngineProfile, createPostgresBackend, createPostgresTables, createSqlBackend, createSqliteBackend, createSqliteTables, deriveEngineProfile, edgeClaims, edgeClaims2, edges, edges2, fulltext, generatePostgresDDL, generatePostgresMigrationSQL, generateSqliteDDL, generateSqliteMigrationSQL, generateVectorlessPostgresMigrationSQL, isLocalLibsqlClient, nodes, nodes2, planSqliteEdgeMatchIdentityAdoption, quoteDdlIdentifier, recordedClock, recordedClock2, recordedEdges, recordedEdges2, recordedNodes, recordedNodes2, schemaVersions, schemaVersions2, tables, tables2, uniques, uniques2 };
|
|
17455
|
-
//# sourceMappingURL=chunk-
|
|
17456
|
-
//# sourceMappingURL=chunk-
|
|
17463
|
+
//# sourceMappingURL=chunk-2DJKHZQ4.js.map
|
|
17464
|
+
//# sourceMappingURL=chunk-2DJKHZQ4.js.map
|