@nicia-ai/typegraph 0.2.0 → 0.3.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 (146) hide show
  1. package/README.md +23 -0
  2. package/dist/{ast-BVyihVbP.d.cts → ast-CXFx6bF6.d.ts} +45 -165
  3. package/dist/{ast-BVyihVbP.d.ts → ast-D-3bOanX.d.cts} +45 -165
  4. package/dist/backend/drizzle/index.cjs +20 -20
  5. package/dist/backend/drizzle/index.d.cts +6 -5
  6. package/dist/backend/drizzle/index.d.ts +6 -5
  7. package/dist/backend/drizzle/index.js +8 -8
  8. package/dist/backend/drizzle/postgres.cjs +9 -9
  9. package/dist/backend/drizzle/postgres.d.cts +9 -11
  10. package/dist/backend/drizzle/postgres.d.ts +9 -11
  11. package/dist/backend/drizzle/postgres.js +6 -6
  12. package/dist/backend/drizzle/schema/postgres.cjs +10 -10
  13. package/dist/backend/drizzle/schema/postgres.d.cts +6 -5
  14. package/dist/backend/drizzle/schema/postgres.d.ts +6 -5
  15. package/dist/backend/drizzle/schema/postgres.js +3 -3
  16. package/dist/backend/drizzle/schema/sqlite.cjs +10 -10
  17. package/dist/backend/drizzle/schema/sqlite.d.cts +6 -5
  18. package/dist/backend/drizzle/schema/sqlite.d.ts +6 -5
  19. package/dist/backend/drizzle/schema/sqlite.js +3 -3
  20. package/dist/backend/drizzle/sqlite.cjs +9 -9
  21. package/dist/backend/drizzle/sqlite.d.cts +17 -18
  22. package/dist/backend/drizzle/sqlite.d.ts +17 -18
  23. package/dist/backend/drizzle/sqlite.js +6 -6
  24. package/dist/backend/postgres/index.cjs +21 -17
  25. package/dist/backend/postgres/index.d.cts +8 -7
  26. package/dist/backend/postgres/index.d.ts +8 -7
  27. package/dist/backend/postgres/index.js +8 -8
  28. package/dist/backend/sqlite/index.cjs +27 -21
  29. package/dist/backend/sqlite/index.cjs.map +1 -1
  30. package/dist/backend/sqlite/index.d.cts +7 -6
  31. package/dist/backend/sqlite/index.d.ts +7 -6
  32. package/dist/backend/sqlite/index.js +18 -12
  33. package/dist/backend/sqlite/index.js.map +1 -1
  34. package/dist/{chunk-YM5AL65Y.cjs → chunk-2WVFEIHR.cjs} +29 -3
  35. package/dist/chunk-2WVFEIHR.cjs.map +1 -0
  36. package/dist/{chunk-4PIEL2VO.js → chunk-3PURVEA4.js} +36 -5
  37. package/dist/chunk-3PURVEA4.js.map +1 -0
  38. package/dist/chunk-4HARSV2G.js +1448 -0
  39. package/dist/chunk-4HARSV2G.js.map +1 -0
  40. package/dist/{chunk-IIAT36MI.js → chunk-54WJF3DW.js} +29 -3
  41. package/dist/chunk-54WJF3DW.js.map +1 -0
  42. package/dist/chunk-CMHFS34N.cjs +390 -0
  43. package/dist/chunk-CMHFS34N.cjs.map +1 -0
  44. package/dist/chunk-DD6ONEBN.cjs +1264 -0
  45. package/dist/chunk-DD6ONEBN.cjs.map +1 -0
  46. package/dist/chunk-F2BZSEFE.js +388 -0
  47. package/dist/chunk-F2BZSEFE.js.map +1 -0
  48. package/dist/{chunk-DDM2FZRJ.cjs → chunk-JQDWEX6V.cjs} +24 -24
  49. package/dist/{chunk-DDM2FZRJ.cjs.map → chunk-JQDWEX6V.cjs.map} +1 -1
  50. package/dist/chunk-NP4G4ZKM.js +1228 -0
  51. package/dist/chunk-NP4G4ZKM.js.map +1 -0
  52. package/dist/{chunk-UJAGXJDG.cjs → chunk-NU2XNMVI.cjs} +38 -7
  53. package/dist/chunk-NU2XNMVI.cjs.map +1 -0
  54. package/dist/{chunk-JKTO7TW3.js → chunk-O5XPCJLF.js} +25 -3
  55. package/dist/chunk-O5XPCJLF.js.map +1 -0
  56. package/dist/{chunk-2QHQ2C4P.js → chunk-OGGLFYFA.js} +36 -5
  57. package/dist/chunk-OGGLFYFA.js.map +1 -0
  58. package/dist/{chunk-SV5H3XM5.cjs → chunk-OYL2SGBD.cjs} +26 -2
  59. package/dist/chunk-OYL2SGBD.cjs.map +1 -0
  60. package/dist/chunk-SFY2PPOY.cjs +1469 -0
  61. package/dist/chunk-SFY2PPOY.cjs.map +1 -0
  62. package/dist/{chunk-JDAET5LO.js → chunk-SMLIWLS7.js} +9 -9
  63. package/dist/chunk-SMLIWLS7.js.map +1 -0
  64. package/dist/{chunk-VXRVGFCI.js → chunk-U3452TEU.js} +17 -17
  65. package/dist/{chunk-VXRVGFCI.js.map → chunk-U3452TEU.js.map} +1 -1
  66. package/dist/{chunk-MNO33ASC.cjs → chunk-UYMT4LO2.cjs} +9 -8
  67. package/dist/chunk-UYMT4LO2.cjs.map +1 -0
  68. package/dist/chunk-V7CS2MDB.cjs +289 -0
  69. package/dist/chunk-V7CS2MDB.cjs.map +1 -0
  70. package/dist/chunk-WE5BKYNB.js +287 -0
  71. package/dist/chunk-WE5BKYNB.js.map +1 -0
  72. package/dist/{chunk-L642L24T.js → chunk-XDTYTNYL.js} +14 -21
  73. package/dist/chunk-XDTYTNYL.js.map +1 -0
  74. package/dist/{chunk-N4AOJ3VF.cjs → chunk-XZL6MCZJ.cjs} +38 -7
  75. package/dist/chunk-XZL6MCZJ.cjs.map +1 -0
  76. package/dist/{chunk-DBFCKELK.cjs → chunk-ZJHQZZT2.cjs} +18 -27
  77. package/dist/chunk-ZJHQZZT2.cjs.map +1 -0
  78. package/dist/index-Dkicw49A.d.cts +373 -0
  79. package/dist/index-Dkicw49A.d.ts +373 -0
  80. package/dist/index.cjs +5915 -3377
  81. package/dist/index.cjs.map +1 -1
  82. package/dist/index.d.cts +24 -664
  83. package/dist/index.d.ts +24 -664
  84. package/dist/index.js +5781 -3223
  85. package/dist/index.js.map +1 -1
  86. package/dist/indexes/index.cjs +16 -16
  87. package/dist/indexes/index.d.cts +5 -4
  88. package/dist/indexes/index.d.ts +5 -4
  89. package/dist/indexes/index.js +2 -2
  90. package/dist/interchange/index.cjs +9 -9
  91. package/dist/interchange/index.cjs.map +1 -1
  92. package/dist/interchange/index.d.cts +5 -3
  93. package/dist/interchange/index.d.ts +5 -3
  94. package/dist/interchange/index.js +8 -8
  95. package/dist/interchange/index.js.map +1 -1
  96. package/dist/manager-Jc5Btay9.d.cts +493 -0
  97. package/dist/manager-e9LXthrx.d.ts +493 -0
  98. package/dist/profiler/index.cjs +2 -8
  99. package/dist/profiler/index.cjs.map +1 -1
  100. package/dist/profiler/index.d.cts +9 -161
  101. package/dist/profiler/index.d.ts +9 -161
  102. package/dist/profiler/index.js +4 -4
  103. package/dist/profiler/index.js.map +1 -1
  104. package/dist/schema/index.cjs +145 -0
  105. package/dist/schema/index.cjs.map +1 -0
  106. package/dist/schema/index.d.cts +237 -0
  107. package/dist/schema/index.d.ts +237 -0
  108. package/dist/schema/index.js +72 -0
  109. package/dist/schema/index.js.map +1 -0
  110. package/dist/{store-BPhjw5S8.d.ts → store-DM3Tk3Pw.d.ts} +874 -1283
  111. package/dist/{store-DNOOQEm8.d.cts → store-nbBybLWP.d.cts} +874 -1283
  112. package/dist/{test-helpers-BjyRYJZX.d.ts → test-helpers-CIq1Hhj1.d.ts} +5 -1
  113. package/dist/{test-helpers-NoQXhleQ.d.cts → test-helpers-DPRFVky4.d.cts} +5 -1
  114. package/dist/{types-D_3mEv2y.d.ts → types-BL1GyVku.d.cts} +2 -2
  115. package/dist/{types-DsRfx0yk.d.ts → types-Cdbi4hcx.d.ts} +228 -4
  116. package/dist/{types-BrSfFSpW.d.cts → types-DCGa53O2.d.ts} +2 -2
  117. package/dist/{types-aapj0GLz.d.cts → types-DDP0MGBF.d.cts} +228 -4
  118. package/dist/{types-CX4cLd7M.d.ts → types-DHRsi6j9.d.cts} +4 -3
  119. package/dist/types-DTJEu_-h.d.cts +158 -0
  120. package/dist/types-DTJEu_-h.d.ts +158 -0
  121. package/dist/{types-a5rAxC92.d.cts → types-ZT5mlism.d.ts} +4 -3
  122. package/package.json +17 -2
  123. package/dist/chunk-2FURVVAX.cjs +0 -350
  124. package/dist/chunk-2FURVVAX.cjs.map +0 -1
  125. package/dist/chunk-2QHQ2C4P.js.map +0 -1
  126. package/dist/chunk-4PIEL2VO.js.map +0 -1
  127. package/dist/chunk-DBFCKELK.cjs.map +0 -1
  128. package/dist/chunk-H7THXVH6.cjs +0 -314
  129. package/dist/chunk-H7THXVH6.cjs.map +0 -1
  130. package/dist/chunk-HXAPXPZH.cjs +0 -680
  131. package/dist/chunk-HXAPXPZH.cjs.map +0 -1
  132. package/dist/chunk-IIAT36MI.js.map +0 -1
  133. package/dist/chunk-JDAET5LO.js.map +0 -1
  134. package/dist/chunk-JKTO7TW3.js.map +0 -1
  135. package/dist/chunk-L642L24T.js.map +0 -1
  136. package/dist/chunk-MNO33ASC.cjs.map +0 -1
  137. package/dist/chunk-N4AOJ3VF.cjs.map +0 -1
  138. package/dist/chunk-QB3WBMDT.js +0 -646
  139. package/dist/chunk-QB3WBMDT.js.map +0 -1
  140. package/dist/chunk-SV5H3XM5.cjs.map +0 -1
  141. package/dist/chunk-UJAGXJDG.cjs.map +0 -1
  142. package/dist/chunk-X4EVMBON.js +0 -312
  143. package/dist/chunk-X4EVMBON.js.map +0 -1
  144. package/dist/chunk-XZL4NLV6.js +0 -348
  145. package/dist/chunk-XZL4NLV6.js.map +0 -1
  146. package/dist/chunk-YM5AL65Y.cjs.map +0 -1
@@ -1,11 +1,11 @@
1
- export { createPostgresBackend } from '../../chunk-XZL4NLV6.js';
2
- export { createPostgresTables, tables as postgresTables } from '../../chunk-4PIEL2VO.js';
3
- export { createSqliteBackend } from '../../chunk-X4EVMBON.js';
4
- import '../../chunk-QB3WBMDT.js';
5
- export { createSqliteTables, tables as sqliteTables } from '../../chunk-2QHQ2C4P.js';
6
- import '../../chunk-JKTO7TW3.js';
7
- import '../../chunk-VXRVGFCI.js';
8
- import '../../chunk-IIAT36MI.js';
1
+ export { createSqliteBackend } from '../../chunk-F2BZSEFE.js';
2
+ export { createPostgresBackend } from '../../chunk-WE5BKYNB.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 chunk2FURVVAX_cjs = require('../../chunk-2FURVVAX.cjs');
4
- var chunkUJAGXJDG_cjs = require('../../chunk-UJAGXJDG.cjs');
5
- require('../../chunk-HXAPXPZH.cjs');
6
- require('../../chunk-SV5H3XM5.cjs');
7
- require('../../chunk-DDM2FZRJ.cjs');
8
- require('../../chunk-YM5AL65Y.cjs');
3
+ var chunkV7CS2MDB_cjs = require('../../chunk-V7CS2MDB.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 chunk2FURVVAX_cjs.createPostgresBackend; }
15
+ get: function () { return chunkV7CS2MDB_cjs.createPostgresBackend; }
16
16
  });
17
17
  Object.defineProperty(exports, "createPostgresTables", {
18
18
  enumerable: true,
19
- get: function () { return chunkUJAGXJDG_cjs.createPostgresTables; }
19
+ get: function () { return chunkNU2XNMVI_cjs.createPostgresTables; }
20
20
  });
21
21
  Object.defineProperty(exports, "tables", {
22
22
  enumerable: true,
23
- get: function () { return chunkUJAGXJDG_cjs.tables; }
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 { PgDatabase } from 'drizzle-orm/pg-core';
2
- import { G as GraphBackend } from '../../types-aapj0GLz.cjs';
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 { TableNames, createPostgresTables, tables } from './schema/postgres.cjs';
4
+ export { PostgresTableNames, createPostgresTables, tables } from './schema/postgres.cjs';
5
5
  import 'drizzle-orm';
6
- import '../../types-BRzHlhKC.cjs';
7
- import '../../types-a5rAxC92.cjs';
6
+ import '../../types-DTJEu_-h.cjs';
8
7
  import 'zod';
9
- import '../../ast-BVyihVbP.cjs';
8
+ import '../../types-BRzHlhKC.cjs';
9
+ import '../../types-DHRsi6j9.cjs';
10
+ import '../../ast-D-3bOanX.cjs';
11
+
12
+ type AnyPgDatabase = PgDatabase<PgQueryResultHKT>;
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 { PgDatabase } from 'drizzle-orm/pg-core';
2
- import { G as GraphBackend } from '../../types-DsRfx0yk.js';
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 { TableNames, createPostgresTables, tables } from './schema/postgres.js';
4
+ export { PostgresTableNames, createPostgresTables, tables } from './schema/postgres.js';
5
5
  import 'drizzle-orm';
6
- import '../../types-BRzHlhKC.js';
7
- import '../../types-CX4cLd7M.js';
6
+ import '../../types-DTJEu_-h.js';
8
7
  import 'zod';
9
- import '../../ast-BVyihVbP.js';
8
+ import '../../types-BRzHlhKC.js';
9
+ import '../../types-ZT5mlism.js';
10
+ import '../../ast-CXFx6bF6.js';
11
+
12
+ type AnyPgDatabase = PgDatabase<PgQueryResultHKT>;
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-XZL4NLV6.js';
2
- export { createPostgresTables, tables } from '../../chunk-4PIEL2VO.js';
3
- import '../../chunk-QB3WBMDT.js';
4
- import '../../chunk-JKTO7TW3.js';
5
- import '../../chunk-VXRVGFCI.js';
6
- import '../../chunk-IIAT36MI.js';
1
+ export { createPostgresBackend } from '../../chunk-WE5BKYNB.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 chunkUJAGXJDG_cjs = require('../../../chunk-UJAGXJDG.cjs');
4
- require('../../../chunk-DDM2FZRJ.cjs');
5
- require('../../../chunk-YM5AL65Y.cjs');
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 chunkUJAGXJDG_cjs.createPostgresTables; }
12
+ get: function () { return chunkNU2XNMVI_cjs.createPostgresTables; }
13
13
  });
14
14
  Object.defineProperty(exports, "edges", {
15
15
  enumerable: true,
16
- get: function () { return chunkUJAGXJDG_cjs.edges; }
16
+ get: function () { return chunkNU2XNMVI_cjs.edges; }
17
17
  });
18
18
  Object.defineProperty(exports, "embeddings", {
19
19
  enumerable: true,
20
- get: function () { return chunkUJAGXJDG_cjs.embeddings; }
20
+ get: function () { return chunkNU2XNMVI_cjs.embeddings; }
21
21
  });
22
22
  Object.defineProperty(exports, "nodes", {
23
23
  enumerable: true,
24
- get: function () { return chunkUJAGXJDG_cjs.nodes; }
24
+ get: function () { return chunkNU2XNMVI_cjs.nodes; }
25
25
  });
26
26
  Object.defineProperty(exports, "schemaVersions", {
27
27
  enumerable: true,
28
- get: function () { return chunkUJAGXJDG_cjs.schemaVersions; }
28
+ get: function () { return chunkNU2XNMVI_cjs.schemaVersions; }
29
29
  });
30
30
  Object.defineProperty(exports, "tables", {
31
31
  enumerable: true,
32
- get: function () { return chunkUJAGXJDG_cjs.tables; }
32
+ get: function () { return chunkNU2XNMVI_cjs.tables; }
33
33
  });
34
34
  Object.defineProperty(exports, "uniques", {
35
35
  enumerable: true,
36
- get: function () { return chunkUJAGXJDG_cjs.uniques; }
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-a5rAxC92.cjs';
2
+ import { T as TypeGraphIndex } from '../../../types-DHRsi6j9.cjs';
3
3
  import 'zod';
4
- import '../../../ast-BVyihVbP.cjs';
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 TableNames = Readonly<{
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<TableNames>, options?: CreatePostgresTablesOptions): {
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 PostgresTables, type SchemaVersionsTable, type TableNames, type UniquesTable, createPostgresTables, edges, embeddings, nodes, schemaVersions, tables, uniques };
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-CX4cLd7M.js';
2
+ import { T as TypeGraphIndex } from '../../../types-ZT5mlism.js';
3
3
  import 'zod';
4
- import '../../../ast-BVyihVbP.js';
4
+ import '../../../types-DTJEu_-h.js';
5
+ import '../../../ast-CXFx6bF6.js';
5
6
 
6
7
  /**
7
8
  * Table name configuration.
8
9
  */
9
- type TableNames = Readonly<{
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<TableNames>, options?: CreatePostgresTablesOptions): {
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 PostgresTables, type SchemaVersionsTable, type TableNames, type UniquesTable, createPostgresTables, edges, embeddings, nodes, schemaVersions, tables, uniques };
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-4PIEL2VO.js';
2
- import '../../../chunk-VXRVGFCI.js';
3
- import '../../../chunk-IIAT36MI.js';
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 chunkN4AOJ3VF_cjs = require('../../../chunk-N4AOJ3VF.cjs');
4
- require('../../../chunk-DDM2FZRJ.cjs');
5
- require('../../../chunk-YM5AL65Y.cjs');
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 chunkN4AOJ3VF_cjs.createSqliteTables; }
12
+ get: function () { return chunkXZL6MCZJ_cjs.createSqliteTables; }
13
13
  });
14
14
  Object.defineProperty(exports, "edges", {
15
15
  enumerable: true,
16
- get: function () { return chunkN4AOJ3VF_cjs.edges; }
16
+ get: function () { return chunkXZL6MCZJ_cjs.edges; }
17
17
  });
18
18
  Object.defineProperty(exports, "embeddings", {
19
19
  enumerable: true,
20
- get: function () { return chunkN4AOJ3VF_cjs.embeddings; }
20
+ get: function () { return chunkXZL6MCZJ_cjs.embeddings; }
21
21
  });
22
22
  Object.defineProperty(exports, "nodes", {
23
23
  enumerable: true,
24
- get: function () { return chunkN4AOJ3VF_cjs.nodes; }
24
+ get: function () { return chunkXZL6MCZJ_cjs.nodes; }
25
25
  });
26
26
  Object.defineProperty(exports, "schemaVersions", {
27
27
  enumerable: true,
28
- get: function () { return chunkN4AOJ3VF_cjs.schemaVersions; }
28
+ get: function () { return chunkXZL6MCZJ_cjs.schemaVersions; }
29
29
  });
30
30
  Object.defineProperty(exports, "tables", {
31
31
  enumerable: true,
32
- get: function () { return chunkN4AOJ3VF_cjs.tables; }
32
+ get: function () { return chunkXZL6MCZJ_cjs.tables; }
33
33
  });
34
34
  Object.defineProperty(exports, "uniques", {
35
35
  enumerable: true,
36
- get: function () { return chunkN4AOJ3VF_cjs.uniques; }
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-a5rAxC92.cjs';
2
+ import { T as TypeGraphIndex } from '../../../types-DHRsi6j9.cjs';
3
3
  import 'zod';
4
- import '../../../ast-BVyihVbP.cjs';
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 TableNames = Readonly<{
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<TableNames>, options?: CreateSqliteTablesOptions): {
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 SqliteTables, type TableNames, type UniquesTable, createSqliteTables, edges, embeddings, nodes, schemaVersions, tables, uniques };
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-CX4cLd7M.js';
2
+ import { T as TypeGraphIndex } from '../../../types-ZT5mlism.js';
3
3
  import 'zod';
4
- import '../../../ast-BVyihVbP.js';
4
+ import '../../../types-DTJEu_-h.js';
5
+ import '../../../ast-CXFx6bF6.js';
5
6
 
6
7
  /**
7
8
  * Table name configuration.
8
9
  */
9
- type TableNames = Readonly<{
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<TableNames>, options?: CreateSqliteTablesOptions): {
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 SqliteTables, type TableNames, type UniquesTable, createSqliteTables, edges, embeddings, nodes, schemaVersions, tables, uniques };
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-2QHQ2C4P.js';
2
- import '../../../chunk-VXRVGFCI.js';
3
- import '../../../chunk-IIAT36MI.js';
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 chunkH7THXVH6_cjs = require('../../chunk-H7THXVH6.cjs');
4
- require('../../chunk-HXAPXPZH.cjs');
5
- var chunkN4AOJ3VF_cjs = require('../../chunk-N4AOJ3VF.cjs');
6
- require('../../chunk-SV5H3XM5.cjs');
7
- require('../../chunk-DDM2FZRJ.cjs');
8
- require('../../chunk-YM5AL65Y.cjs');
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 chunkH7THXVH6_cjs.createSqliteBackend; }
15
+ get: function () { return chunkCMHFS34N_cjs.createSqliteBackend; }
16
16
  });
17
17
  Object.defineProperty(exports, "createSqliteTables", {
18
18
  enumerable: true,
19
- get: function () { return chunkN4AOJ3VF_cjs.createSqliteTables; }
19
+ get: function () { return chunkXZL6MCZJ_cjs.createSqliteTables; }
20
20
  });
21
21
  Object.defineProperty(exports, "tables", {
22
22
  enumerable: true,
23
- get: function () { return chunkN4AOJ3VF_cjs.tables; }
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 { TableNames, createSqliteTables, tables } from './schema/sqlite.cjs';
4
+ export { SqliteTableNames, createSqliteTables, tables } from './schema/sqlite.cjs';
5
5
  import 'drizzle-orm';
6
- import '../../types-BRzHlhKC.cjs';
7
- import '../../types-a5rAxC92.cjs';
6
+ import '../../types-DTJEu_-h.cjs';
8
7
  import 'zod';
9
- import '../../ast-BVyihVbP.cjs';
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 { TableNames, createSqliteTables, tables } from './schema/sqlite.js';
4
+ export { SqliteTableNames, createSqliteTables, tables } from './schema/sqlite.js';
5
5
  import 'drizzle-orm';
6
- import '../../types-BRzHlhKC.js';
7
- import '../../types-CX4cLd7M.js';
6
+ import '../../types-DTJEu_-h.js';
8
7
  import 'zod';
9
- import '../../ast-BVyihVbP.js';
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-X4EVMBON.js';
2
- import '../../chunk-QB3WBMDT.js';
3
- export { createSqliteTables, tables } from '../../chunk-2QHQ2C4P.js';
4
- import '../../chunk-JKTO7TW3.js';
5
- import '../../chunk-VXRVGFCI.js';
6
- import '../../chunk-IIAT36MI.js';
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 chunkMNO33ASC_cjs = require('../../chunk-MNO33ASC.cjs');
4
- var chunk2FURVVAX_cjs = require('../../chunk-2FURVVAX.cjs');
5
- var chunkUJAGXJDG_cjs = require('../../chunk-UJAGXJDG.cjs');
6
- require('../../chunk-HXAPXPZH.cjs');
7
- require('../../chunk-N4AOJ3VF.cjs');
8
- require('../../chunk-SV5H3XM5.cjs');
9
- require('../../chunk-DDM2FZRJ.cjs');
10
- require('../../chunk-YM5AL65Y.cjs');
3
+ var chunkUYMT4LO2_cjs = require('../../chunk-UYMT4LO2.cjs');
4
+ var chunkV7CS2MDB_cjs = require('../../chunk-V7CS2MDB.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 chunkMNO33ASC_cjs.getPostgresMigrationSQL; }
21
+ get: function () { return chunkUYMT4LO2_cjs.getPostgresMigrationSQL; }
18
22
  });
19
23
  Object.defineProperty(exports, "createPostgresBackend", {
20
24
  enumerable: true,
21
- get: function () { return chunk2FURVVAX_cjs.createPostgresBackend; }
25
+ get: function () { return chunkV7CS2MDB_cjs.createPostgresBackend; }
22
26
  });
23
27
  Object.defineProperty(exports, "createPostgresTables", {
24
28
  enumerable: true,
25
- get: function () { return chunkUJAGXJDG_cjs.createPostgresTables; }
29
+ get: function () { return chunkNU2XNMVI_cjs.createPostgresTables; }
26
30
  });
27
31
  Object.defineProperty(exports, "edges", {
28
32
  enumerable: true,
29
- get: function () { return chunkUJAGXJDG_cjs.edges; }
33
+ get: function () { return chunkNU2XNMVI_cjs.edges; }
30
34
  });
31
35
  Object.defineProperty(exports, "embeddings", {
32
36
  enumerable: true,
33
- get: function () { return chunkUJAGXJDG_cjs.embeddings; }
37
+ get: function () { return chunkNU2XNMVI_cjs.embeddings; }
34
38
  });
35
39
  Object.defineProperty(exports, "nodes", {
36
40
  enumerable: true,
37
- get: function () { return chunkUJAGXJDG_cjs.nodes; }
41
+ get: function () { return chunkNU2XNMVI_cjs.nodes; }
38
42
  });
39
43
  Object.defineProperty(exports, "schemaVersions", {
40
44
  enumerable: true,
41
- get: function () { return chunkUJAGXJDG_cjs.schemaVersions; }
45
+ get: function () { return chunkNU2XNMVI_cjs.schemaVersions; }
42
46
  });
43
47
  Object.defineProperty(exports, "tables", {
44
48
  enumerable: true,
45
- get: function () { return chunkUJAGXJDG_cjs.tables; }
49
+ get: function () { return chunkNU2XNMVI_cjs.tables; }
46
50
  });
47
51
  Object.defineProperty(exports, "uniques", {
48
52
  enumerable: true,
49
- get: function () { return chunkUJAGXJDG_cjs.uniques; }
53
+ get: function () { return chunkNU2XNMVI_cjs.uniques; }
50
54
  });
51
55
  //# sourceMappingURL=index.cjs.map
52
56
  //# sourceMappingURL=index.cjs.map