@nicia-ai/typegraph 0.2.0 → 0.3.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/README.md +23 -0
- package/dist/{ast-BVyihVbP.d.cts → ast-CXFx6bF6.d.ts} +45 -165
- package/dist/{ast-BVyihVbP.d.ts → ast-D-3bOanX.d.cts} +45 -165
- package/dist/backend/drizzle/index.cjs +20 -20
- package/dist/backend/drizzle/index.d.cts +6 -5
- package/dist/backend/drizzle/index.d.ts +6 -5
- package/dist/backend/drizzle/index.js +8 -8
- package/dist/backend/drizzle/postgres.cjs +9 -9
- package/dist/backend/drizzle/postgres.d.cts +9 -11
- package/dist/backend/drizzle/postgres.d.ts +9 -11
- package/dist/backend/drizzle/postgres.js +6 -6
- package/dist/backend/drizzle/schema/postgres.cjs +10 -10
- package/dist/backend/drizzle/schema/postgres.d.cts +6 -5
- package/dist/backend/drizzle/schema/postgres.d.ts +6 -5
- package/dist/backend/drizzle/schema/postgres.js +3 -3
- package/dist/backend/drizzle/schema/sqlite.cjs +10 -10
- package/dist/backend/drizzle/schema/sqlite.d.cts +6 -5
- package/dist/backend/drizzle/schema/sqlite.d.ts +6 -5
- package/dist/backend/drizzle/schema/sqlite.js +3 -3
- package/dist/backend/drizzle/sqlite.cjs +9 -9
- package/dist/backend/drizzle/sqlite.d.cts +17 -18
- package/dist/backend/drizzle/sqlite.d.ts +17 -18
- package/dist/backend/drizzle/sqlite.js +6 -6
- package/dist/backend/postgres/index.cjs +21 -17
- package/dist/backend/postgres/index.d.cts +8 -7
- package/dist/backend/postgres/index.d.ts +8 -7
- package/dist/backend/postgres/index.js +8 -8
- package/dist/backend/sqlite/index.cjs +27 -21
- package/dist/backend/sqlite/index.cjs.map +1 -1
- package/dist/backend/sqlite/index.d.cts +7 -6
- package/dist/backend/sqlite/index.d.ts +7 -6
- package/dist/backend/sqlite/index.js +18 -12
- package/dist/backend/sqlite/index.js.map +1 -1
- package/dist/{chunk-YM5AL65Y.cjs → chunk-2WVFEIHR.cjs} +29 -3
- package/dist/chunk-2WVFEIHR.cjs.map +1 -0
- package/dist/{chunk-4PIEL2VO.js → chunk-3PURVEA4.js} +36 -5
- package/dist/chunk-3PURVEA4.js.map +1 -0
- package/dist/chunk-46YY2FRV.js +287 -0
- package/dist/chunk-46YY2FRV.js.map +1 -0
- package/dist/chunk-4HARSV2G.js +1448 -0
- package/dist/chunk-4HARSV2G.js.map +1 -0
- package/dist/{chunk-IIAT36MI.js → chunk-54WJF3DW.js} +29 -3
- package/dist/chunk-54WJF3DW.js.map +1 -0
- package/dist/chunk-CMHFS34N.cjs +390 -0
- package/dist/chunk-CMHFS34N.cjs.map +1 -0
- package/dist/chunk-DD6ONEBN.cjs +1264 -0
- package/dist/chunk-DD6ONEBN.cjs.map +1 -0
- package/dist/chunk-F23W4W3A.cjs +289 -0
- package/dist/chunk-F23W4W3A.cjs.map +1 -0
- package/dist/chunk-F2BZSEFE.js +388 -0
- package/dist/chunk-F2BZSEFE.js.map +1 -0
- package/dist/{chunk-DDM2FZRJ.cjs → chunk-JQDWEX6V.cjs} +24 -24
- package/dist/{chunk-DDM2FZRJ.cjs.map → chunk-JQDWEX6V.cjs.map} +1 -1
- package/dist/chunk-NP4G4ZKM.js +1228 -0
- package/dist/chunk-NP4G4ZKM.js.map +1 -0
- package/dist/{chunk-UJAGXJDG.cjs → chunk-NU2XNMVI.cjs} +38 -7
- package/dist/chunk-NU2XNMVI.cjs.map +1 -0
- package/dist/{chunk-JKTO7TW3.js → chunk-O5XPCJLF.js} +25 -3
- package/dist/chunk-O5XPCJLF.js.map +1 -0
- package/dist/{chunk-2QHQ2C4P.js → chunk-OGGLFYFA.js} +36 -5
- package/dist/chunk-OGGLFYFA.js.map +1 -0
- package/dist/{chunk-SV5H3XM5.cjs → chunk-OYL2SGBD.cjs} +26 -2
- package/dist/chunk-OYL2SGBD.cjs.map +1 -0
- package/dist/chunk-SFY2PPOY.cjs +1469 -0
- package/dist/chunk-SFY2PPOY.cjs.map +1 -0
- package/dist/{chunk-JDAET5LO.js → chunk-SMLIWLS7.js} +9 -9
- package/dist/chunk-SMLIWLS7.js.map +1 -0
- package/dist/{chunk-VXRVGFCI.js → chunk-U3452TEU.js} +17 -17
- package/dist/{chunk-VXRVGFCI.js.map → chunk-U3452TEU.js.map} +1 -1
- package/dist/{chunk-MNO33ASC.cjs → chunk-UYMT4LO2.cjs} +9 -8
- package/dist/chunk-UYMT4LO2.cjs.map +1 -0
- package/dist/{chunk-L642L24T.js → chunk-XDTYTNYL.js} +14 -21
- package/dist/chunk-XDTYTNYL.js.map +1 -0
- package/dist/{chunk-N4AOJ3VF.cjs → chunk-XZL6MCZJ.cjs} +38 -7
- package/dist/chunk-XZL6MCZJ.cjs.map +1 -0
- package/dist/{chunk-DBFCKELK.cjs → chunk-ZJHQZZT2.cjs} +18 -27
- package/dist/chunk-ZJHQZZT2.cjs.map +1 -0
- package/dist/index-Dkicw49A.d.cts +373 -0
- package/dist/index-Dkicw49A.d.ts +373 -0
- package/dist/index.cjs +5915 -3377
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +24 -664
- package/dist/index.d.ts +24 -664
- package/dist/index.js +5781 -3223
- package/dist/index.js.map +1 -1
- package/dist/indexes/index.cjs +16 -16
- package/dist/indexes/index.d.cts +5 -4
- package/dist/indexes/index.d.ts +5 -4
- package/dist/indexes/index.js +2 -2
- package/dist/interchange/index.cjs +9 -9
- package/dist/interchange/index.cjs.map +1 -1
- package/dist/interchange/index.d.cts +5 -3
- package/dist/interchange/index.d.ts +5 -3
- package/dist/interchange/index.js +8 -8
- package/dist/interchange/index.js.map +1 -1
- package/dist/manager-Jc5Btay9.d.cts +493 -0
- package/dist/manager-e9LXthrx.d.ts +493 -0
- package/dist/profiler/index.cjs +2 -8
- package/dist/profiler/index.cjs.map +1 -1
- package/dist/profiler/index.d.cts +9 -161
- package/dist/profiler/index.d.ts +9 -161
- package/dist/profiler/index.js +4 -4
- package/dist/profiler/index.js.map +1 -1
- package/dist/schema/index.cjs +145 -0
- package/dist/schema/index.cjs.map +1 -0
- package/dist/schema/index.d.cts +237 -0
- package/dist/schema/index.d.ts +237 -0
- package/dist/schema/index.js +72 -0
- package/dist/schema/index.js.map +1 -0
- package/dist/{store-BPhjw5S8.d.ts → store-DM3Tk3Pw.d.ts} +874 -1283
- package/dist/{store-DNOOQEm8.d.cts → store-nbBybLWP.d.cts} +874 -1283
- package/dist/{test-helpers-BjyRYJZX.d.ts → test-helpers-CIq1Hhj1.d.ts} +5 -1
- package/dist/{test-helpers-NoQXhleQ.d.cts → test-helpers-DPRFVky4.d.cts} +5 -1
- package/dist/{types-D_3mEv2y.d.ts → types-BL1GyVku.d.cts} +2 -2
- package/dist/{types-DsRfx0yk.d.ts → types-Cdbi4hcx.d.ts} +228 -4
- package/dist/{types-BrSfFSpW.d.cts → types-DCGa53O2.d.ts} +2 -2
- package/dist/{types-aapj0GLz.d.cts → types-DDP0MGBF.d.cts} +228 -4
- package/dist/{types-CX4cLd7M.d.ts → types-DHRsi6j9.d.cts} +4 -3
- package/dist/types-DTJEu_-h.d.cts +158 -0
- package/dist/types-DTJEu_-h.d.ts +158 -0
- package/dist/{types-a5rAxC92.d.cts → types-ZT5mlism.d.ts} +4 -3
- package/package.json +17 -2
- package/dist/chunk-2FURVVAX.cjs +0 -350
- package/dist/chunk-2FURVVAX.cjs.map +0 -1
- package/dist/chunk-2QHQ2C4P.js.map +0 -1
- package/dist/chunk-4PIEL2VO.js.map +0 -1
- package/dist/chunk-DBFCKELK.cjs.map +0 -1
- package/dist/chunk-H7THXVH6.cjs +0 -314
- package/dist/chunk-H7THXVH6.cjs.map +0 -1
- package/dist/chunk-HXAPXPZH.cjs +0 -680
- package/dist/chunk-HXAPXPZH.cjs.map +0 -1
- package/dist/chunk-IIAT36MI.js.map +0 -1
- package/dist/chunk-JDAET5LO.js.map +0 -1
- package/dist/chunk-JKTO7TW3.js.map +0 -1
- package/dist/chunk-L642L24T.js.map +0 -1
- package/dist/chunk-MNO33ASC.cjs.map +0 -1
- package/dist/chunk-N4AOJ3VF.cjs.map +0 -1
- package/dist/chunk-QB3WBMDT.js +0 -646
- package/dist/chunk-QB3WBMDT.js.map +0 -1
- package/dist/chunk-SV5H3XM5.cjs.map +0 -1
- package/dist/chunk-UJAGXJDG.cjs.map +0 -1
- package/dist/chunk-X4EVMBON.js +0 -312
- package/dist/chunk-X4EVMBON.js.map +0 -1
- package/dist/chunk-XZL4NLV6.js +0 -348
- package/dist/chunk-XZL4NLV6.js.map +0 -1
- package/dist/chunk-YM5AL65Y.cjs.map +0 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export {
|
|
6
|
-
import '../../chunk-
|
|
7
|
-
import '../../chunk-
|
|
8
|
-
import '../../chunk-
|
|
1
|
+
export { createSqliteBackend } from '../../chunk-F2BZSEFE.js';
|
|
2
|
+
export { createPostgresBackend } from '../../chunk-46YY2FRV.js';
|
|
3
|
+
import '../../chunk-4HARSV2G.js';
|
|
4
|
+
export { createSqliteTables, tables as sqliteTables } from '../../chunk-OGGLFYFA.js';
|
|
5
|
+
export { createPostgresTables, tables as postgresTables } from '../../chunk-3PURVEA4.js';
|
|
6
|
+
import '../../chunk-O5XPCJLF.js';
|
|
7
|
+
import '../../chunk-U3452TEU.js';
|
|
8
|
+
import '../../chunk-54WJF3DW.js';
|
|
9
9
|
import '../../chunk-K7SQ3SWP.js';
|
|
10
10
|
//# sourceMappingURL=index.js.map
|
|
11
11
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
|
|
5
|
-
require('../../chunk-
|
|
6
|
-
require('../../chunk-
|
|
7
|
-
require('../../chunk-
|
|
8
|
-
require('../../chunk-
|
|
3
|
+
var chunkF23W4W3A_cjs = require('../../chunk-F23W4W3A.cjs');
|
|
4
|
+
require('../../chunk-SFY2PPOY.cjs');
|
|
5
|
+
var chunkNU2XNMVI_cjs = require('../../chunk-NU2XNMVI.cjs');
|
|
6
|
+
require('../../chunk-OYL2SGBD.cjs');
|
|
7
|
+
require('../../chunk-JQDWEX6V.cjs');
|
|
8
|
+
require('../../chunk-2WVFEIHR.cjs');
|
|
9
9
|
require('../../chunk-P5CNM325.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
Object.defineProperty(exports, "createPostgresBackend", {
|
|
14
14
|
enumerable: true,
|
|
15
|
-
get: function () { return
|
|
15
|
+
get: function () { return chunkF23W4W3A_cjs.createPostgresBackend; }
|
|
16
16
|
});
|
|
17
17
|
Object.defineProperty(exports, "createPostgresTables", {
|
|
18
18
|
enumerable: true,
|
|
19
|
-
get: function () { return
|
|
19
|
+
get: function () { return chunkNU2XNMVI_cjs.createPostgresTables; }
|
|
20
20
|
});
|
|
21
21
|
Object.defineProperty(exports, "tables", {
|
|
22
22
|
enumerable: true,
|
|
23
|
-
get: function () { return
|
|
23
|
+
get: function () { return chunkNU2XNMVI_cjs.tables; }
|
|
24
24
|
});
|
|
25
25
|
//# sourceMappingURL=postgres.cjs.map
|
|
26
26
|
//# sourceMappingURL=postgres.cjs.map
|
|
@@ -1,12 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { G as GraphBackend } from '../../types-DDP0MGBF.cjs';
|
|
2
|
+
import { PgDatabase, PgQueryResultHKT } from 'drizzle-orm/pg-core';
|
|
3
3
|
import { PostgresTables } from './schema/postgres.cjs';
|
|
4
|
-
export {
|
|
4
|
+
export { PostgresTableNames, createPostgresTables, tables } from './schema/postgres.cjs';
|
|
5
5
|
import 'drizzle-orm';
|
|
6
|
-
import '../../types-
|
|
7
|
-
import '../../types-a5rAxC92.cjs';
|
|
6
|
+
import '../../types-DTJEu_-h.cjs';
|
|
8
7
|
import 'zod';
|
|
9
|
-
import '../../
|
|
8
|
+
import '../../types-BRzHlhKC.cjs';
|
|
9
|
+
import '../../types-DHRsi6j9.cjs';
|
|
10
|
+
import '../../ast-D-3bOanX.cjs';
|
|
11
|
+
|
|
12
|
+
type AnyPgDatabase = PgDatabase<PgQueryResultHKT, Record<string, unknown>>;
|
|
10
13
|
|
|
11
14
|
/**
|
|
12
15
|
* Options for creating a PostgreSQL backend.
|
|
@@ -18,11 +21,6 @@ type PostgresBackendOptions = Readonly<{
|
|
|
18
21
|
*/
|
|
19
22
|
tables?: PostgresTables;
|
|
20
23
|
}>;
|
|
21
|
-
/**
|
|
22
|
-
* Any Drizzle PostgreSQL database instance.
|
|
23
|
-
* Using 'any' for the query result type to support all PG drivers.
|
|
24
|
-
*/
|
|
25
|
-
type AnyPgDatabase = PgDatabase<any>;
|
|
26
24
|
/**
|
|
27
25
|
* Creates a TypeGraph backend for PostgreSQL databases.
|
|
28
26
|
*
|
|
@@ -1,12 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { G as GraphBackend } from '../../types-Cdbi4hcx.js';
|
|
2
|
+
import { PgDatabase, PgQueryResultHKT } from 'drizzle-orm/pg-core';
|
|
3
3
|
import { PostgresTables } from './schema/postgres.js';
|
|
4
|
-
export {
|
|
4
|
+
export { PostgresTableNames, createPostgresTables, tables } from './schema/postgres.js';
|
|
5
5
|
import 'drizzle-orm';
|
|
6
|
-
import '../../types-
|
|
7
|
-
import '../../types-CX4cLd7M.js';
|
|
6
|
+
import '../../types-DTJEu_-h.js';
|
|
8
7
|
import 'zod';
|
|
9
|
-
import '../../
|
|
8
|
+
import '../../types-BRzHlhKC.js';
|
|
9
|
+
import '../../types-ZT5mlism.js';
|
|
10
|
+
import '../../ast-CXFx6bF6.js';
|
|
11
|
+
|
|
12
|
+
type AnyPgDatabase = PgDatabase<PgQueryResultHKT, Record<string, unknown>>;
|
|
10
13
|
|
|
11
14
|
/**
|
|
12
15
|
* Options for creating a PostgreSQL backend.
|
|
@@ -18,11 +21,6 @@ type PostgresBackendOptions = Readonly<{
|
|
|
18
21
|
*/
|
|
19
22
|
tables?: PostgresTables;
|
|
20
23
|
}>;
|
|
21
|
-
/**
|
|
22
|
-
* Any Drizzle PostgreSQL database instance.
|
|
23
|
-
* Using 'any' for the query result type to support all PG drivers.
|
|
24
|
-
*/
|
|
25
|
-
type AnyPgDatabase = PgDatabase<any>;
|
|
26
24
|
/**
|
|
27
25
|
* Creates a TypeGraph backend for PostgreSQL databases.
|
|
28
26
|
*
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { createPostgresBackend } from '../../chunk-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import '../../chunk-
|
|
5
|
-
import '../../chunk-
|
|
6
|
-
import '../../chunk-
|
|
1
|
+
export { createPostgresBackend } from '../../chunk-46YY2FRV.js';
|
|
2
|
+
import '../../chunk-4HARSV2G.js';
|
|
3
|
+
export { createPostgresTables, tables } from '../../chunk-3PURVEA4.js';
|
|
4
|
+
import '../../chunk-O5XPCJLF.js';
|
|
5
|
+
import '../../chunk-U3452TEU.js';
|
|
6
|
+
import '../../chunk-54WJF3DW.js';
|
|
7
7
|
import '../../chunk-K7SQ3SWP.js';
|
|
8
8
|
//# sourceMappingURL=postgres.js.map
|
|
9
9
|
//# sourceMappingURL=postgres.js.map
|
|
@@ -1,39 +1,39 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../../../chunk-
|
|
5
|
-
require('../../../chunk-
|
|
3
|
+
var chunkNU2XNMVI_cjs = require('../../../chunk-NU2XNMVI.cjs');
|
|
4
|
+
require('../../../chunk-JQDWEX6V.cjs');
|
|
5
|
+
require('../../../chunk-2WVFEIHR.cjs');
|
|
6
6
|
require('../../../chunk-P5CNM325.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
Object.defineProperty(exports, "createPostgresTables", {
|
|
11
11
|
enumerable: true,
|
|
12
|
-
get: function () { return
|
|
12
|
+
get: function () { return chunkNU2XNMVI_cjs.createPostgresTables; }
|
|
13
13
|
});
|
|
14
14
|
Object.defineProperty(exports, "edges", {
|
|
15
15
|
enumerable: true,
|
|
16
|
-
get: function () { return
|
|
16
|
+
get: function () { return chunkNU2XNMVI_cjs.edges; }
|
|
17
17
|
});
|
|
18
18
|
Object.defineProperty(exports, "embeddings", {
|
|
19
19
|
enumerable: true,
|
|
20
|
-
get: function () { return
|
|
20
|
+
get: function () { return chunkNU2XNMVI_cjs.embeddings; }
|
|
21
21
|
});
|
|
22
22
|
Object.defineProperty(exports, "nodes", {
|
|
23
23
|
enumerable: true,
|
|
24
|
-
get: function () { return
|
|
24
|
+
get: function () { return chunkNU2XNMVI_cjs.nodes; }
|
|
25
25
|
});
|
|
26
26
|
Object.defineProperty(exports, "schemaVersions", {
|
|
27
27
|
enumerable: true,
|
|
28
|
-
get: function () { return
|
|
28
|
+
get: function () { return chunkNU2XNMVI_cjs.schemaVersions; }
|
|
29
29
|
});
|
|
30
30
|
Object.defineProperty(exports, "tables", {
|
|
31
31
|
enumerable: true,
|
|
32
|
-
get: function () { return
|
|
32
|
+
get: function () { return chunkNU2XNMVI_cjs.tables; }
|
|
33
33
|
});
|
|
34
34
|
Object.defineProperty(exports, "uniques", {
|
|
35
35
|
enumerable: true,
|
|
36
|
-
get: function () { return
|
|
36
|
+
get: function () { return chunkNU2XNMVI_cjs.uniques; }
|
|
37
37
|
});
|
|
38
38
|
//# sourceMappingURL=postgres.cjs.map
|
|
39
39
|
//# sourceMappingURL=postgres.cjs.map
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import * as drizzle_orm_pg_core from 'drizzle-orm/pg-core';
|
|
2
|
-
import { T as TypeGraphIndex } from '../../../types-
|
|
2
|
+
import { T as TypeGraphIndex } from '../../../types-DHRsi6j9.cjs';
|
|
3
3
|
import 'zod';
|
|
4
|
-
import '../../../
|
|
4
|
+
import '../../../types-DTJEu_-h.cjs';
|
|
5
|
+
import '../../../ast-D-3bOanX.cjs';
|
|
5
6
|
|
|
6
7
|
/**
|
|
7
8
|
* Table name configuration.
|
|
8
9
|
*/
|
|
9
|
-
type
|
|
10
|
+
type PostgresTableNames = Readonly<{
|
|
10
11
|
nodes: string;
|
|
11
12
|
edges: string;
|
|
12
13
|
uniques: string;
|
|
@@ -26,7 +27,7 @@ type CreatePostgresTablesOptions = Readonly<{
|
|
|
26
27
|
* Creates PostgreSQL table definitions with customizable table names.
|
|
27
28
|
* Index names are derived from table names.
|
|
28
29
|
*/
|
|
29
|
-
declare function createPostgresTables(names?: Partial<
|
|
30
|
+
declare function createPostgresTables(names?: Partial<PostgresTableNames>, options?: CreatePostgresTablesOptions): {
|
|
30
31
|
readonly nodes: drizzle_orm_pg_core.PgTableWithColumns<{
|
|
31
32
|
name: string;
|
|
32
33
|
schema: undefined;
|
|
@@ -2416,4 +2417,4 @@ type SchemaVersionsTable = PostgresTables["schemaVersions"];
|
|
|
2416
2417
|
*/
|
|
2417
2418
|
type EmbeddingsTable = PostgresTables["embeddings"];
|
|
2418
2419
|
|
|
2419
|
-
export { type CreatePostgresTablesOptions, type EdgesTable, type EmbeddingsTable, type NodesTable, type
|
|
2420
|
+
export { type CreatePostgresTablesOptions, type EdgesTable, type EmbeddingsTable, type NodesTable, type PostgresTableNames, type PostgresTables, type SchemaVersionsTable, type UniquesTable, createPostgresTables, edges, embeddings, nodes, schemaVersions, tables, uniques };
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import * as drizzle_orm_pg_core from 'drizzle-orm/pg-core';
|
|
2
|
-
import { T as TypeGraphIndex } from '../../../types-
|
|
2
|
+
import { T as TypeGraphIndex } from '../../../types-ZT5mlism.js';
|
|
3
3
|
import 'zod';
|
|
4
|
-
import '../../../
|
|
4
|
+
import '../../../types-DTJEu_-h.js';
|
|
5
|
+
import '../../../ast-CXFx6bF6.js';
|
|
5
6
|
|
|
6
7
|
/**
|
|
7
8
|
* Table name configuration.
|
|
8
9
|
*/
|
|
9
|
-
type
|
|
10
|
+
type PostgresTableNames = Readonly<{
|
|
10
11
|
nodes: string;
|
|
11
12
|
edges: string;
|
|
12
13
|
uniques: string;
|
|
@@ -26,7 +27,7 @@ type CreatePostgresTablesOptions = Readonly<{
|
|
|
26
27
|
* Creates PostgreSQL table definitions with customizable table names.
|
|
27
28
|
* Index names are derived from table names.
|
|
28
29
|
*/
|
|
29
|
-
declare function createPostgresTables(names?: Partial<
|
|
30
|
+
declare function createPostgresTables(names?: Partial<PostgresTableNames>, options?: CreatePostgresTablesOptions): {
|
|
30
31
|
readonly nodes: drizzle_orm_pg_core.PgTableWithColumns<{
|
|
31
32
|
name: string;
|
|
32
33
|
schema: undefined;
|
|
@@ -2416,4 +2417,4 @@ type SchemaVersionsTable = PostgresTables["schemaVersions"];
|
|
|
2416
2417
|
*/
|
|
2417
2418
|
type EmbeddingsTable = PostgresTables["embeddings"];
|
|
2418
2419
|
|
|
2419
|
-
export { type CreatePostgresTablesOptions, type EdgesTable, type EmbeddingsTable, type NodesTable, type
|
|
2420
|
+
export { type CreatePostgresTablesOptions, type EdgesTable, type EmbeddingsTable, type NodesTable, type PostgresTableNames, type PostgresTables, type SchemaVersionsTable, type UniquesTable, createPostgresTables, edges, embeddings, nodes, schemaVersions, tables, uniques };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { createPostgresTables, edges, embeddings, nodes, schemaVersions, tables, uniques } from '../../../chunk-
|
|
2
|
-
import '../../../chunk-
|
|
3
|
-
import '../../../chunk-
|
|
1
|
+
export { createPostgresTables, edges, embeddings, nodes, schemaVersions, tables, uniques } from '../../../chunk-3PURVEA4.js';
|
|
2
|
+
import '../../../chunk-U3452TEU.js';
|
|
3
|
+
import '../../../chunk-54WJF3DW.js';
|
|
4
4
|
import '../../../chunk-K7SQ3SWP.js';
|
|
5
5
|
//# sourceMappingURL=postgres.js.map
|
|
6
6
|
//# sourceMappingURL=postgres.js.map
|
|
@@ -1,39 +1,39 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../../../chunk-
|
|
5
|
-
require('../../../chunk-
|
|
3
|
+
var chunkXZL6MCZJ_cjs = require('../../../chunk-XZL6MCZJ.cjs');
|
|
4
|
+
require('../../../chunk-JQDWEX6V.cjs');
|
|
5
|
+
require('../../../chunk-2WVFEIHR.cjs');
|
|
6
6
|
require('../../../chunk-P5CNM325.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
Object.defineProperty(exports, "createSqliteTables", {
|
|
11
11
|
enumerable: true,
|
|
12
|
-
get: function () { return
|
|
12
|
+
get: function () { return chunkXZL6MCZJ_cjs.createSqliteTables; }
|
|
13
13
|
});
|
|
14
14
|
Object.defineProperty(exports, "edges", {
|
|
15
15
|
enumerable: true,
|
|
16
|
-
get: function () { return
|
|
16
|
+
get: function () { return chunkXZL6MCZJ_cjs.edges; }
|
|
17
17
|
});
|
|
18
18
|
Object.defineProperty(exports, "embeddings", {
|
|
19
19
|
enumerable: true,
|
|
20
|
-
get: function () { return
|
|
20
|
+
get: function () { return chunkXZL6MCZJ_cjs.embeddings; }
|
|
21
21
|
});
|
|
22
22
|
Object.defineProperty(exports, "nodes", {
|
|
23
23
|
enumerable: true,
|
|
24
|
-
get: function () { return
|
|
24
|
+
get: function () { return chunkXZL6MCZJ_cjs.nodes; }
|
|
25
25
|
});
|
|
26
26
|
Object.defineProperty(exports, "schemaVersions", {
|
|
27
27
|
enumerable: true,
|
|
28
|
-
get: function () { return
|
|
28
|
+
get: function () { return chunkXZL6MCZJ_cjs.schemaVersions; }
|
|
29
29
|
});
|
|
30
30
|
Object.defineProperty(exports, "tables", {
|
|
31
31
|
enumerable: true,
|
|
32
|
-
get: function () { return
|
|
32
|
+
get: function () { return chunkXZL6MCZJ_cjs.tables; }
|
|
33
33
|
});
|
|
34
34
|
Object.defineProperty(exports, "uniques", {
|
|
35
35
|
enumerable: true,
|
|
36
|
-
get: function () { return
|
|
36
|
+
get: function () { return chunkXZL6MCZJ_cjs.uniques; }
|
|
37
37
|
});
|
|
38
38
|
//# sourceMappingURL=sqlite.cjs.map
|
|
39
39
|
//# sourceMappingURL=sqlite.cjs.map
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import * as drizzle_orm_sqlite_core from 'drizzle-orm/sqlite-core';
|
|
2
|
-
import { T as TypeGraphIndex } from '../../../types-
|
|
2
|
+
import { T as TypeGraphIndex } from '../../../types-DHRsi6j9.cjs';
|
|
3
3
|
import 'zod';
|
|
4
|
-
import '../../../
|
|
4
|
+
import '../../../types-DTJEu_-h.cjs';
|
|
5
|
+
import '../../../ast-D-3bOanX.cjs';
|
|
5
6
|
|
|
6
7
|
/**
|
|
7
8
|
* Table name configuration.
|
|
8
9
|
*/
|
|
9
|
-
type
|
|
10
|
+
type SqliteTableNames = Readonly<{
|
|
10
11
|
nodes: string;
|
|
11
12
|
edges: string;
|
|
12
13
|
uniques: string;
|
|
@@ -26,7 +27,7 @@ type CreateSqliteTablesOptions = Readonly<{
|
|
|
26
27
|
* Creates SQLite table definitions with customizable table names.
|
|
27
28
|
* Index names are derived from table names.
|
|
28
29
|
*/
|
|
29
|
-
declare function createSqliteTables(names?: Partial<
|
|
30
|
+
declare function createSqliteTables(names?: Partial<SqliteTableNames>, options?: CreateSqliteTablesOptions): {
|
|
30
31
|
readonly nodes: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
31
32
|
name: string;
|
|
32
33
|
schema: undefined;
|
|
@@ -2644,4 +2645,4 @@ type SchemaVersionsTable = SqliteTables["schemaVersions"];
|
|
|
2644
2645
|
*/
|
|
2645
2646
|
type EmbeddingsTable = SqliteTables["embeddings"];
|
|
2646
2647
|
|
|
2647
|
-
export { type CreateSqliteTablesOptions, type EdgesTable, type EmbeddingsTable, type NodesTable, type SchemaVersionsTable, type
|
|
2648
|
+
export { type CreateSqliteTablesOptions, type EdgesTable, type EmbeddingsTable, type NodesTable, type SchemaVersionsTable, type SqliteTableNames, type SqliteTables, type UniquesTable, createSqliteTables, edges, embeddings, nodes, schemaVersions, tables, uniques };
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import * as drizzle_orm_sqlite_core from 'drizzle-orm/sqlite-core';
|
|
2
|
-
import { T as TypeGraphIndex } from '../../../types-
|
|
2
|
+
import { T as TypeGraphIndex } from '../../../types-ZT5mlism.js';
|
|
3
3
|
import 'zod';
|
|
4
|
-
import '../../../
|
|
4
|
+
import '../../../types-DTJEu_-h.js';
|
|
5
|
+
import '../../../ast-CXFx6bF6.js';
|
|
5
6
|
|
|
6
7
|
/**
|
|
7
8
|
* Table name configuration.
|
|
8
9
|
*/
|
|
9
|
-
type
|
|
10
|
+
type SqliteTableNames = Readonly<{
|
|
10
11
|
nodes: string;
|
|
11
12
|
edges: string;
|
|
12
13
|
uniques: string;
|
|
@@ -26,7 +27,7 @@ type CreateSqliteTablesOptions = Readonly<{
|
|
|
26
27
|
* Creates SQLite table definitions with customizable table names.
|
|
27
28
|
* Index names are derived from table names.
|
|
28
29
|
*/
|
|
29
|
-
declare function createSqliteTables(names?: Partial<
|
|
30
|
+
declare function createSqliteTables(names?: Partial<SqliteTableNames>, options?: CreateSqliteTablesOptions): {
|
|
30
31
|
readonly nodes: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
31
32
|
name: string;
|
|
32
33
|
schema: undefined;
|
|
@@ -2644,4 +2645,4 @@ type SchemaVersionsTable = SqliteTables["schemaVersions"];
|
|
|
2644
2645
|
*/
|
|
2645
2646
|
type EmbeddingsTable = SqliteTables["embeddings"];
|
|
2646
2647
|
|
|
2647
|
-
export { type CreateSqliteTablesOptions, type EdgesTable, type EmbeddingsTable, type NodesTable, type SchemaVersionsTable, type
|
|
2648
|
+
export { type CreateSqliteTablesOptions, type EdgesTable, type EmbeddingsTable, type NodesTable, type SchemaVersionsTable, type SqliteTableNames, type SqliteTables, type UniquesTable, createSqliteTables, edges, embeddings, nodes, schemaVersions, tables, uniques };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { createSqliteTables, edges, embeddings, nodes, schemaVersions, tables, uniques } from '../../../chunk-
|
|
2
|
-
import '../../../chunk-
|
|
3
|
-
import '../../../chunk-
|
|
1
|
+
export { createSqliteTables, edges, embeddings, nodes, schemaVersions, tables, uniques } from '../../../chunk-OGGLFYFA.js';
|
|
2
|
+
import '../../../chunk-U3452TEU.js';
|
|
3
|
+
import '../../../chunk-54WJF3DW.js';
|
|
4
4
|
import '../../../chunk-K7SQ3SWP.js';
|
|
5
5
|
//# sourceMappingURL=sqlite.js.map
|
|
6
6
|
//# sourceMappingURL=sqlite.js.map
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../../chunk-
|
|
5
|
-
var
|
|
6
|
-
require('../../chunk-
|
|
7
|
-
require('../../chunk-
|
|
8
|
-
require('../../chunk-
|
|
3
|
+
var chunkCMHFS34N_cjs = require('../../chunk-CMHFS34N.cjs');
|
|
4
|
+
require('../../chunk-SFY2PPOY.cjs');
|
|
5
|
+
var chunkXZL6MCZJ_cjs = require('../../chunk-XZL6MCZJ.cjs');
|
|
6
|
+
require('../../chunk-OYL2SGBD.cjs');
|
|
7
|
+
require('../../chunk-JQDWEX6V.cjs');
|
|
8
|
+
require('../../chunk-2WVFEIHR.cjs');
|
|
9
9
|
require('../../chunk-P5CNM325.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
Object.defineProperty(exports, "createSqliteBackend", {
|
|
14
14
|
enumerable: true,
|
|
15
|
-
get: function () { return
|
|
15
|
+
get: function () { return chunkCMHFS34N_cjs.createSqliteBackend; }
|
|
16
16
|
});
|
|
17
17
|
Object.defineProperty(exports, "createSqliteTables", {
|
|
18
18
|
enumerable: true,
|
|
19
|
-
get: function () { return
|
|
19
|
+
get: function () { return chunkXZL6MCZJ_cjs.createSqliteTables; }
|
|
20
20
|
});
|
|
21
21
|
Object.defineProperty(exports, "tables", {
|
|
22
22
|
enumerable: true,
|
|
23
|
-
get: function () { return
|
|
23
|
+
get: function () { return chunkXZL6MCZJ_cjs.tables; }
|
|
24
24
|
});
|
|
25
25
|
//# sourceMappingURL=sqlite.cjs.map
|
|
26
26
|
//# sourceMappingURL=sqlite.cjs.map
|
|
@@ -1,12 +1,19 @@
|
|
|
1
|
+
import { G as GraphBackend } from '../../types-DDP0MGBF.cjs';
|
|
1
2
|
import { BaseSQLiteDatabase } from 'drizzle-orm/sqlite-core';
|
|
2
|
-
import { G as GraphBackend } from '../../types-aapj0GLz.cjs';
|
|
3
3
|
import { SqliteTables } from './schema/sqlite.cjs';
|
|
4
|
-
export {
|
|
4
|
+
export { SqliteTableNames, createSqliteTables, tables } from './schema/sqlite.cjs';
|
|
5
5
|
import 'drizzle-orm';
|
|
6
|
-
import '../../types-
|
|
7
|
-
import '../../types-a5rAxC92.cjs';
|
|
6
|
+
import '../../types-DTJEu_-h.cjs';
|
|
8
7
|
import 'zod';
|
|
9
|
-
import '../../
|
|
8
|
+
import '../../types-BRzHlhKC.cjs';
|
|
9
|
+
import '../../types-DHRsi6j9.cjs';
|
|
10
|
+
import '../../ast-D-3bOanX.cjs';
|
|
11
|
+
|
|
12
|
+
type SqliteExecutionProfileHints = Readonly<{
|
|
13
|
+
isD1?: boolean;
|
|
14
|
+
isSync?: boolean;
|
|
15
|
+
}>;
|
|
16
|
+
type AnySqliteDatabase = BaseSQLiteDatabase<"sync" | "async", unknown>;
|
|
10
17
|
|
|
11
18
|
/**
|
|
12
19
|
* Options for creating a SQLite backend.
|
|
@@ -17,20 +24,12 @@ type SqliteBackendOptions = Readonly<{
|
|
|
17
24
|
* Defaults to standard TypeGraph table names.
|
|
18
25
|
*/
|
|
19
26
|
tables?: SqliteTables;
|
|
27
|
+
/**
|
|
28
|
+
* Optional execution profile hints used to avoid runtime driver reflection.
|
|
29
|
+
* Set `isD1: true` when using Cloudflare D1.
|
|
30
|
+
*/
|
|
31
|
+
executionProfile?: SqliteExecutionProfileHints;
|
|
20
32
|
}>;
|
|
21
|
-
/**
|
|
22
|
-
* Any Drizzle SQLite database instance.
|
|
23
|
-
*/
|
|
24
|
-
type AnySqliteDatabase = BaseSQLiteDatabase<"sync" | "async", unknown>;
|
|
25
|
-
/**
|
|
26
|
-
* Creates a TypeGraph backend for SQLite databases.
|
|
27
|
-
*
|
|
28
|
-
* Works with any Drizzle SQLite instance regardless of the underlying driver.
|
|
29
|
-
*
|
|
30
|
-
* @param db - A Drizzle SQLite database instance
|
|
31
|
-
* @param options - Backend configuration
|
|
32
|
-
* @returns A GraphBackend implementation
|
|
33
|
-
*/
|
|
34
33
|
declare function createSqliteBackend(db: AnySqliteDatabase, options?: SqliteBackendOptions): GraphBackend;
|
|
35
34
|
|
|
36
35
|
export { type SqliteBackendOptions, SqliteTables, createSqliteBackend };
|
|
@@ -1,12 +1,19 @@
|
|
|
1
|
+
import { G as GraphBackend } from '../../types-Cdbi4hcx.js';
|
|
1
2
|
import { BaseSQLiteDatabase } from 'drizzle-orm/sqlite-core';
|
|
2
|
-
import { G as GraphBackend } from '../../types-DsRfx0yk.js';
|
|
3
3
|
import { SqliteTables } from './schema/sqlite.js';
|
|
4
|
-
export {
|
|
4
|
+
export { SqliteTableNames, createSqliteTables, tables } from './schema/sqlite.js';
|
|
5
5
|
import 'drizzle-orm';
|
|
6
|
-
import '../../types-
|
|
7
|
-
import '../../types-CX4cLd7M.js';
|
|
6
|
+
import '../../types-DTJEu_-h.js';
|
|
8
7
|
import 'zod';
|
|
9
|
-
import '../../
|
|
8
|
+
import '../../types-BRzHlhKC.js';
|
|
9
|
+
import '../../types-ZT5mlism.js';
|
|
10
|
+
import '../../ast-CXFx6bF6.js';
|
|
11
|
+
|
|
12
|
+
type SqliteExecutionProfileHints = Readonly<{
|
|
13
|
+
isD1?: boolean;
|
|
14
|
+
isSync?: boolean;
|
|
15
|
+
}>;
|
|
16
|
+
type AnySqliteDatabase = BaseSQLiteDatabase<"sync" | "async", unknown>;
|
|
10
17
|
|
|
11
18
|
/**
|
|
12
19
|
* Options for creating a SQLite backend.
|
|
@@ -17,20 +24,12 @@ type SqliteBackendOptions = Readonly<{
|
|
|
17
24
|
* Defaults to standard TypeGraph table names.
|
|
18
25
|
*/
|
|
19
26
|
tables?: SqliteTables;
|
|
27
|
+
/**
|
|
28
|
+
* Optional execution profile hints used to avoid runtime driver reflection.
|
|
29
|
+
* Set `isD1: true` when using Cloudflare D1.
|
|
30
|
+
*/
|
|
31
|
+
executionProfile?: SqliteExecutionProfileHints;
|
|
20
32
|
}>;
|
|
21
|
-
/**
|
|
22
|
-
* Any Drizzle SQLite database instance.
|
|
23
|
-
*/
|
|
24
|
-
type AnySqliteDatabase = BaseSQLiteDatabase<"sync" | "async", unknown>;
|
|
25
|
-
/**
|
|
26
|
-
* Creates a TypeGraph backend for SQLite databases.
|
|
27
|
-
*
|
|
28
|
-
* Works with any Drizzle SQLite instance regardless of the underlying driver.
|
|
29
|
-
*
|
|
30
|
-
* @param db - A Drizzle SQLite database instance
|
|
31
|
-
* @param options - Backend configuration
|
|
32
|
-
* @returns A GraphBackend implementation
|
|
33
|
-
*/
|
|
34
33
|
declare function createSqliteBackend(db: AnySqliteDatabase, options?: SqliteBackendOptions): GraphBackend;
|
|
35
34
|
|
|
36
35
|
export { type SqliteBackendOptions, SqliteTables, createSqliteBackend };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { createSqliteBackend } from '../../chunk-
|
|
2
|
-
import '../../chunk-
|
|
3
|
-
export { createSqliteTables, tables } from '../../chunk-
|
|
4
|
-
import '../../chunk-
|
|
5
|
-
import '../../chunk-
|
|
6
|
-
import '../../chunk-
|
|
1
|
+
export { createSqliteBackend } from '../../chunk-F2BZSEFE.js';
|
|
2
|
+
import '../../chunk-4HARSV2G.js';
|
|
3
|
+
export { createSqliteTables, tables } from '../../chunk-OGGLFYFA.js';
|
|
4
|
+
import '../../chunk-O5XPCJLF.js';
|
|
5
|
+
import '../../chunk-U3452TEU.js';
|
|
6
|
+
import '../../chunk-54WJF3DW.js';
|
|
7
7
|
import '../../chunk-K7SQ3SWP.js';
|
|
8
8
|
//# sourceMappingURL=sqlite.js.map
|
|
9
9
|
//# sourceMappingURL=sqlite.js.map
|
|
@@ -1,52 +1,56 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
|
|
6
|
-
require('../../chunk-
|
|
7
|
-
require('../../chunk-
|
|
8
|
-
require('../../chunk-
|
|
9
|
-
require('../../chunk-
|
|
10
|
-
require('../../chunk-
|
|
3
|
+
var chunkUYMT4LO2_cjs = require('../../chunk-UYMT4LO2.cjs');
|
|
4
|
+
var chunkF23W4W3A_cjs = require('../../chunk-F23W4W3A.cjs');
|
|
5
|
+
require('../../chunk-SFY2PPOY.cjs');
|
|
6
|
+
require('../../chunk-XZL6MCZJ.cjs');
|
|
7
|
+
var chunkNU2XNMVI_cjs = require('../../chunk-NU2XNMVI.cjs');
|
|
8
|
+
require('../../chunk-OYL2SGBD.cjs');
|
|
9
|
+
require('../../chunk-JQDWEX6V.cjs');
|
|
10
|
+
require('../../chunk-2WVFEIHR.cjs');
|
|
11
11
|
require('../../chunk-P5CNM325.cjs');
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
+
Object.defineProperty(exports, "generatePostgresDDL", {
|
|
16
|
+
enumerable: true,
|
|
17
|
+
get: function () { return chunkUYMT4LO2_cjs.generatePostgresDDL; }
|
|
18
|
+
});
|
|
15
19
|
Object.defineProperty(exports, "getPostgresMigrationSQL", {
|
|
16
20
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkUYMT4LO2_cjs.getPostgresMigrationSQL; }
|
|
18
22
|
});
|
|
19
23
|
Object.defineProperty(exports, "createPostgresBackend", {
|
|
20
24
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkF23W4W3A_cjs.createPostgresBackend; }
|
|
22
26
|
});
|
|
23
27
|
Object.defineProperty(exports, "createPostgresTables", {
|
|
24
28
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunkNU2XNMVI_cjs.createPostgresTables; }
|
|
26
30
|
});
|
|
27
31
|
Object.defineProperty(exports, "edges", {
|
|
28
32
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunkNU2XNMVI_cjs.edges; }
|
|
30
34
|
});
|
|
31
35
|
Object.defineProperty(exports, "embeddings", {
|
|
32
36
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunkNU2XNMVI_cjs.embeddings; }
|
|
34
38
|
});
|
|
35
39
|
Object.defineProperty(exports, "nodes", {
|
|
36
40
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunkNU2XNMVI_cjs.nodes; }
|
|
38
42
|
});
|
|
39
43
|
Object.defineProperty(exports, "schemaVersions", {
|
|
40
44
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
45
|
+
get: function () { return chunkNU2XNMVI_cjs.schemaVersions; }
|
|
42
46
|
});
|
|
43
47
|
Object.defineProperty(exports, "tables", {
|
|
44
48
|
enumerable: true,
|
|
45
|
-
get: function () { return
|
|
49
|
+
get: function () { return chunkNU2XNMVI_cjs.tables; }
|
|
46
50
|
});
|
|
47
51
|
Object.defineProperty(exports, "uniques", {
|
|
48
52
|
enumerable: true,
|
|
49
|
-
get: function () { return
|
|
53
|
+
get: function () { return chunkNU2XNMVI_cjs.uniques; }
|
|
50
54
|
});
|
|
51
55
|
//# sourceMappingURL=index.cjs.map
|
|
52
56
|
//# sourceMappingURL=index.cjs.map
|