@nicia-ai/typegraph 0.4.0 → 0.6.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 (114) hide show
  1. package/README.md +2 -2
  2. package/dist/{ast-CXFx6bF6.d.ts → ast-CG87Zr6p.d.ts} +2 -2
  3. package/dist/{ast-D-3bOanX.d.cts → ast-Cq9qrnNP.d.cts} +2 -2
  4. package/dist/backend/postgres/index.cjs +295 -23
  5. package/dist/backend/postgres/index.cjs.map +1 -1
  6. package/dist/backend/postgres/index.d.cts +33 -10
  7. package/dist/backend/postgres/index.d.ts +33 -10
  8. package/dist/backend/postgres/index.js +285 -5
  9. package/dist/backend/postgres/index.js.map +1 -1
  10. package/dist/backend/sqlite/index.cjs +21 -90
  11. package/dist/backend/sqlite/index.cjs.map +1 -1
  12. package/dist/backend/sqlite/index.d.cts +22 -58
  13. package/dist/backend/sqlite/index.d.ts +22 -58
  14. package/dist/backend/sqlite/index.js +3 -78
  15. package/dist/backend/sqlite/index.js.map +1 -1
  16. package/dist/backend/sqlite/local.cjs +83 -0
  17. package/dist/backend/sqlite/local.cjs.map +1 -0
  18. package/dist/backend/sqlite/local.d.cts +66 -0
  19. package/dist/backend/sqlite/local.d.ts +66 -0
  20. package/dist/backend/sqlite/local.js +77 -0
  21. package/dist/backend/sqlite/local.js.map +1 -0
  22. package/dist/chunk-23NGZHUN.cjs +2132 -0
  23. package/dist/chunk-23NGZHUN.cjs.map +1 -0
  24. package/dist/{chunk-ZO2FRJ2U.js → chunk-2DKSQNPW.js} +3 -4
  25. package/dist/chunk-2DKSQNPW.js.map +1 -0
  26. package/dist/chunk-JPO7W262.js +2093 -0
  27. package/dist/chunk-JPO7W262.js.map +1 -0
  28. package/dist/{chunk-NYDXJGA3.cjs → chunk-K5O7TOJO.cjs} +15 -16
  29. package/dist/chunk-K5O7TOJO.cjs.map +1 -0
  30. package/dist/{backend/drizzle/schema/postgres.d.ts → ddl-Bcyb4DW1.d.cts} +17 -17
  31. package/dist/{backend/drizzle/schema/postgres.d.cts → ddl-D7DQx8w8.d.ts} +17 -17
  32. package/dist/{index-DyrR_d-H.d.cts → index-QTnQwakS.d.cts} +1 -1
  33. package/dist/{index-DyrR_d-H.d.ts → index-QTnQwakS.d.ts} +1 -1
  34. package/dist/index.cjs +238 -1
  35. package/dist/index.cjs.map +1 -1
  36. package/dist/index.d.cts +11 -12
  37. package/dist/index.d.ts +11 -12
  38. package/dist/index.js +238 -1
  39. package/dist/index.js.map +1 -1
  40. package/dist/indexes/index.d.cts +5 -6
  41. package/dist/indexes/index.d.ts +5 -6
  42. package/dist/interchange/index.d.cts +5 -6
  43. package/dist/interchange/index.d.ts +5 -6
  44. package/dist/{manager-0NysX4s6.d.cts → manager-BImRiYwz.d.cts} +3 -3
  45. package/dist/{manager-DFKe7ql3.d.ts → manager-DGQ9UF18.d.ts} +3 -3
  46. package/dist/profiler/index.d.cts +7 -8
  47. package/dist/profiler/index.d.ts +7 -8
  48. package/dist/schema/index.d.cts +6 -7
  49. package/dist/schema/index.d.ts +6 -7
  50. package/dist/{backend/drizzle/schema/sqlite.d.ts → sqlite-CSJ-fgIm.d.ts} +2 -25
  51. package/dist/{backend/drizzle/schema/sqlite.d.cts → sqlite-FWGZLwDd.d.cts} +2 -25
  52. package/dist/{store-SiovWEYA.d.ts → store-CscQUG-S.d.ts} +57 -6
  53. package/dist/{store-DhoA5uRc.d.cts → store-DNv1yd3n.d.cts} +57 -6
  54. package/dist/{types-DHRsi6j9.d.cts → types-BbMn2Ycv.d.cts} +2 -2
  55. package/dist/{types-ZT5mlism.d.ts → types-C2rhqkg7.d.ts} +2 -2
  56. package/dist/{types-6EKrWTs9.d.ts → types-D5ggX07j.d.ts} +7 -3
  57. package/dist/{types-BL1GyVku.d.cts → types-DEMAqkA1.d.cts} +1 -1
  58. package/dist/{types-DCGa53O2.d.ts → types-DJZoHy5R.d.ts} +1 -1
  59. package/dist/{types-DTJEu_-h.d.ts → types-DolHw9pJ.d.cts} +14 -1
  60. package/dist/{types-DTJEu_-h.d.cts → types-DolHw9pJ.d.ts} +14 -1
  61. package/dist/{types-BUy-pHKH.d.cts → types-SVDEKnU6.d.cts} +7 -3
  62. package/package.json +6 -46
  63. package/dist/backend/drizzle/index.cjs +0 -40
  64. package/dist/backend/drizzle/index.cjs.map +0 -1
  65. package/dist/backend/drizzle/index.d.cts +0 -13
  66. package/dist/backend/drizzle/index.d.ts +0 -13
  67. package/dist/backend/drizzle/index.js +0 -11
  68. package/dist/backend/drizzle/index.js.map +0 -1
  69. package/dist/backend/drizzle/postgres.cjs +0 -26
  70. package/dist/backend/drizzle/postgres.cjs.map +0 -1
  71. package/dist/backend/drizzle/postgres.d.cts +0 -35
  72. package/dist/backend/drizzle/postgres.d.ts +0 -35
  73. package/dist/backend/drizzle/postgres.js +0 -9
  74. package/dist/backend/drizzle/postgres.js.map +0 -1
  75. package/dist/backend/drizzle/schema/postgres.cjs +0 -39
  76. package/dist/backend/drizzle/schema/postgres.cjs.map +0 -1
  77. package/dist/backend/drizzle/schema/postgres.js +0 -6
  78. package/dist/backend/drizzle/schema/postgres.js.map +0 -1
  79. package/dist/backend/drizzle/schema/sqlite.cjs +0 -39
  80. package/dist/backend/drizzle/schema/sqlite.cjs.map +0 -1
  81. package/dist/backend/drizzle/schema/sqlite.js +0 -6
  82. package/dist/backend/drizzle/schema/sqlite.js.map +0 -1
  83. package/dist/backend/drizzle/sqlite.cjs +0 -26
  84. package/dist/backend/drizzle/sqlite.cjs.map +0 -1
  85. package/dist/backend/drizzle/sqlite.d.cts +0 -35
  86. package/dist/backend/drizzle/sqlite.d.ts +0 -35
  87. package/dist/backend/drizzle/sqlite.js +0 -9
  88. package/dist/backend/drizzle/sqlite.js.map +0 -1
  89. package/dist/chunk-3PURVEA4.js +0 -193
  90. package/dist/chunk-3PURVEA4.js.map +0 -1
  91. package/dist/chunk-7RVSDXT3.cjs +0 -1509
  92. package/dist/chunk-7RVSDXT3.cjs.map +0 -1
  93. package/dist/chunk-LUARLSYT.cjs +0 -289
  94. package/dist/chunk-LUARLSYT.cjs.map +0 -1
  95. package/dist/chunk-NU2XNMVI.cjs +0 -201
  96. package/dist/chunk-NU2XNMVI.cjs.map +0 -1
  97. package/dist/chunk-NYDXJGA3.cjs.map +0 -1
  98. package/dist/chunk-OGGLFYFA.js +0 -177
  99. package/dist/chunk-OGGLFYFA.js.map +0 -1
  100. package/dist/chunk-Q6PXIKRQ.js +0 -287
  101. package/dist/chunk-Q6PXIKRQ.js.map +0 -1
  102. package/dist/chunk-SMLIWLS7.js +0 -236
  103. package/dist/chunk-SMLIWLS7.js.map +0 -1
  104. package/dist/chunk-UYMT4LO2.cjs +0 -241
  105. package/dist/chunk-UYMT4LO2.cjs.map +0 -1
  106. package/dist/chunk-XZL6MCZJ.cjs +0 -185
  107. package/dist/chunk-XZL6MCZJ.cjs.map +0 -1
  108. package/dist/chunk-ZO2FRJ2U.js.map +0 -1
  109. package/dist/chunk-ZQGOBVXZ.js +0 -1488
  110. package/dist/chunk-ZQGOBVXZ.js.map +0 -1
  111. package/dist/test-helpers-CIq1Hhj1.d.ts +0 -26
  112. package/dist/test-helpers-DPRFVky4.d.cts +0 -26
  113. package/dist/types-BRzHlhKC.d.cts +0 -14
  114. package/dist/types-BRzHlhKC.d.ts +0 -14
@@ -1,6 +1,5 @@
1
1
  import { SQL } from 'drizzle-orm';
2
- import { N as NodeType, E as EdgeType, U as UniquenessScope, C as Collation, D as DeleteBehavior, d as Cardinality, e as EndpointExistence, T as TemporalMode } from './types-DTJEu_-h.cjs';
3
- import { S as SqlDialect } from './types-BRzHlhKC.cjs';
2
+ import { N as NodeType, E as EdgeType, i as UniquenessScope, a as Collation, D as DeleteBehavior, C as Cardinality, e as EndpointExistence, T as TemporalMode, S as SqlDialect } from './types-DolHw9pJ.cjs';
4
3
 
5
4
  /** Brand key for MetaEdge */
6
5
  declare const META_EDGE_BRAND: "__metaEdge";
@@ -583,6 +582,11 @@ type GraphBackend = Readonly<{
583
582
  vectorSearch?: (params: VectorSearchParams) => Promise<readonly VectorSearchResult[]>;
584
583
  createVectorIndex?: (params: CreateVectorIndexParams) => Promise<void>;
585
584
  dropVectorIndex?: (params: DropVectorIndexParams) => Promise<void>;
585
+ /**
586
+ * Hard-deletes all data for a graph (nodes, edges, uniques, embeddings, schema versions).
587
+ * Intended for import-replacement workflows. No hooks, no per-row logic.
588
+ */
589
+ clearGraph: (graphId: string) => Promise<void>;
586
590
  execute: <T>(query: SQL) => Promise<readonly T[]>;
587
591
  /** Execute pre-compiled SQL text with bound parameters. Available on sync SQLite and pg backends. */
588
592
  executeRaw?: <T>(sqlText: string, params: readonly unknown[]) => Promise<readonly T[]>;
@@ -741,4 +745,4 @@ type CountEdgesByKindParams = Readonly<{
741
745
  asOf?: string;
742
746
  }>;
743
747
 
744
- export { DEFAULT_SQL_SCHEMA as D, type GraphBackend as G, type InferenceType as I, type JsonSchema as J, type MetaEdge as M, type OntologyRelation as O, type SerializedNodeDef as S, type TransactionBackend as T, type SerializedEdgeDef as a, type SerializedMetaEdge as b, type SerializedOntologyRelation as c, type SerializedClosures as d, type SerializedSchema as e, type SchemaHash as f, type SerializedOntology as g, type SerializedUniqueConstraint as h, type SchemaVersionRow as i, type MetaEdgeProperties as j, type SqlSchema as k, type SqlTableNames as l, createSqlSchema as m, isMetaEdge as n };
748
+ export { DEFAULT_SQL_SCHEMA as D, type GraphBackend as G, type InferenceType as I, type JsonSchema as J, type MetaEdge as M, type OntologyRelation as O, type SqlSchema as S, type TransactionBackend as T, type MetaEdgeProperties as a, type SqlTableNames as b, createSqlSchema as c, type SerializedNodeDef as d, type SerializedEdgeDef as e, type SerializedMetaEdge as f, type SerializedOntologyRelation as g, type SerializedClosures as h, isMetaEdge as i, type SerializedSchema as j, type SchemaHash as k, type SerializedOntology as l, type SerializedUniqueConstraint as m, type SchemaVersionRow as n };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nicia-ai/typegraph",
3
- "version": "0.4.0",
3
+ "version": "0.6.0",
4
4
  "description": "TypeScript-first embedded knowledge graph library with ontological reasoning",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -77,54 +77,14 @@
77
77
  "default": "./dist/backend/postgres/index.cjs"
78
78
  }
79
79
  },
80
- "./drizzle": {
80
+ "./sqlite/local": {
81
81
  "import": {
82
- "types": "./dist/backend/drizzle/index.d.ts",
83
- "default": "./dist/backend/drizzle/index.js"
82
+ "types": "./dist/backend/sqlite/local.d.ts",
83
+ "default": "./dist/backend/sqlite/local.js"
84
84
  },
85
85
  "require": {
86
- "types": "./dist/backend/drizzle/index.d.cts",
87
- "default": "./dist/backend/drizzle/index.cjs"
88
- }
89
- },
90
- "./drizzle/sqlite": {
91
- "import": {
92
- "types": "./dist/backend/drizzle/sqlite.d.ts",
93
- "default": "./dist/backend/drizzle/sqlite.js"
94
- },
95
- "require": {
96
- "types": "./dist/backend/drizzle/sqlite.d.cts",
97
- "default": "./dist/backend/drizzle/sqlite.cjs"
98
- }
99
- },
100
- "./drizzle/postgres": {
101
- "import": {
102
- "types": "./dist/backend/drizzle/postgres.d.ts",
103
- "default": "./dist/backend/drizzle/postgres.js"
104
- },
105
- "require": {
106
- "types": "./dist/backend/drizzle/postgres.d.cts",
107
- "default": "./dist/backend/drizzle/postgres.cjs"
108
- }
109
- },
110
- "./drizzle/schema/sqlite": {
111
- "import": {
112
- "types": "./dist/backend/drizzle/schema/sqlite.d.ts",
113
- "default": "./dist/backend/drizzle/schema/sqlite.js"
114
- },
115
- "require": {
116
- "types": "./dist/backend/drizzle/schema/sqlite.d.cts",
117
- "default": "./dist/backend/drizzle/schema/sqlite.cjs"
118
- }
119
- },
120
- "./drizzle/schema/postgres": {
121
- "import": {
122
- "types": "./dist/backend/drizzle/schema/postgres.d.ts",
123
- "default": "./dist/backend/drizzle/schema/postgres.js"
124
- },
125
- "require": {
126
- "types": "./dist/backend/drizzle/schema/postgres.d.cts",
127
- "default": "./dist/backend/drizzle/schema/postgres.cjs"
86
+ "types": "./dist/backend/sqlite/local.d.cts",
87
+ "default": "./dist/backend/sqlite/local.cjs"
128
88
  }
129
89
  }
130
90
  },
@@ -1,40 +0,0 @@
1
- 'use strict';
2
-
3
- var chunkNYDXJGA3_cjs = require('../../chunk-NYDXJGA3.cjs');
4
- var chunkLUARLSYT_cjs = require('../../chunk-LUARLSYT.cjs');
5
- require('../../chunk-7RVSDXT3.cjs');
6
- var chunkXZL6MCZJ_cjs = require('../../chunk-XZL6MCZJ.cjs');
7
- var chunkNU2XNMVI_cjs = require('../../chunk-NU2XNMVI.cjs');
8
- require('../../chunk-44SXEVF4.cjs');
9
- require('../../chunk-JQDWEX6V.cjs');
10
- require('../../chunk-2WVFEIHR.cjs');
11
- require('../../chunk-P5CNM325.cjs');
12
-
13
-
14
-
15
- Object.defineProperty(exports, "createSqliteBackend", {
16
- enumerable: true,
17
- get: function () { return chunkNYDXJGA3_cjs.createSqliteBackend; }
18
- });
19
- Object.defineProperty(exports, "createPostgresBackend", {
20
- enumerable: true,
21
- get: function () { return chunkLUARLSYT_cjs.createPostgresBackend; }
22
- });
23
- Object.defineProperty(exports, "createSqliteTables", {
24
- enumerable: true,
25
- get: function () { return chunkXZL6MCZJ_cjs.createSqliteTables; }
26
- });
27
- Object.defineProperty(exports, "sqliteTables", {
28
- enumerable: true,
29
- get: function () { return chunkXZL6MCZJ_cjs.tables; }
30
- });
31
- Object.defineProperty(exports, "createPostgresTables", {
32
- enumerable: true,
33
- get: function () { return chunkNU2XNMVI_cjs.createPostgresTables; }
34
- });
35
- Object.defineProperty(exports, "postgresTables", {
36
- enumerable: true,
37
- get: function () { return chunkNU2XNMVI_cjs.tables; }
38
- });
39
- //# sourceMappingURL=index.cjs.map
40
- //# sourceMappingURL=index.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"index.cjs"}
@@ -1,13 +0,0 @@
1
- export { SqliteBackendOptions, createSqliteBackend } from './sqlite.cjs';
2
- export { PostgresBackendOptions, createPostgresBackend } from './postgres.cjs';
3
- export { PostgresTables, createPostgresTables, tables as postgresTables } from './schema/postgres.cjs';
4
- export { SqliteTables, createSqliteTables, tables as sqliteTables } from './schema/sqlite.cjs';
5
- import '../../types-BUy-pHKH.cjs';
6
- import 'drizzle-orm';
7
- import '../../types-DTJEu_-h.cjs';
8
- import 'zod';
9
- import '../../types-BRzHlhKC.cjs';
10
- import 'drizzle-orm/sqlite-core';
11
- import 'drizzle-orm/pg-core';
12
- import '../../types-DHRsi6j9.cjs';
13
- import '../../ast-D-3bOanX.cjs';
@@ -1,13 +0,0 @@
1
- export { SqliteBackendOptions, createSqliteBackend } from './sqlite.js';
2
- export { PostgresBackendOptions, createPostgresBackend } from './postgres.js';
3
- export { PostgresTables, createPostgresTables, tables as postgresTables } from './schema/postgres.js';
4
- export { SqliteTables, createSqliteTables, tables as sqliteTables } from './schema/sqlite.js';
5
- import '../../types-6EKrWTs9.js';
6
- import 'drizzle-orm';
7
- import '../../types-DTJEu_-h.js';
8
- import 'zod';
9
- import '../../types-BRzHlhKC.js';
10
- import 'drizzle-orm/sqlite-core';
11
- import 'drizzle-orm/pg-core';
12
- import '../../types-ZT5mlism.js';
13
- import '../../ast-CXFx6bF6.js';
@@ -1,11 +0,0 @@
1
- export { createSqliteBackend } from '../../chunk-ZO2FRJ2U.js';
2
- export { createPostgresBackend } from '../../chunk-Q6PXIKRQ.js';
3
- import '../../chunk-ZQGOBVXZ.js';
4
- export { createSqliteTables, tables as sqliteTables } from '../../chunk-OGGLFYFA.js';
5
- export { createPostgresTables, tables as postgresTables } from '../../chunk-3PURVEA4.js';
6
- import '../../chunk-SJ2QMDXY.js';
7
- import '../../chunk-U3452TEU.js';
8
- import '../../chunk-54WJF3DW.js';
9
- import '../../chunk-K7SQ3SWP.js';
10
- //# sourceMappingURL=index.js.map
11
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
@@ -1,26 +0,0 @@
1
- 'use strict';
2
-
3
- var chunkLUARLSYT_cjs = require('../../chunk-LUARLSYT.cjs');
4
- require('../../chunk-7RVSDXT3.cjs');
5
- var chunkNU2XNMVI_cjs = require('../../chunk-NU2XNMVI.cjs');
6
- require('../../chunk-44SXEVF4.cjs');
7
- require('../../chunk-JQDWEX6V.cjs');
8
- require('../../chunk-2WVFEIHR.cjs');
9
- require('../../chunk-P5CNM325.cjs');
10
-
11
-
12
-
13
- Object.defineProperty(exports, "createPostgresBackend", {
14
- enumerable: true,
15
- get: function () { return chunkLUARLSYT_cjs.createPostgresBackend; }
16
- });
17
- Object.defineProperty(exports, "createPostgresTables", {
18
- enumerable: true,
19
- get: function () { return chunkNU2XNMVI_cjs.createPostgresTables; }
20
- });
21
- Object.defineProperty(exports, "tables", {
22
- enumerable: true,
23
- get: function () { return chunkNU2XNMVI_cjs.tables; }
24
- });
25
- //# sourceMappingURL=postgres.cjs.map
26
- //# sourceMappingURL=postgres.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"postgres.cjs"}
@@ -1,35 +0,0 @@
1
- import { G as GraphBackend } from '../../types-BUy-pHKH.cjs';
2
- import { PgDatabase, PgQueryResultHKT } from 'drizzle-orm/pg-core';
3
- import { PostgresTables } from './schema/postgres.cjs';
4
- export { PostgresTableNames, createPostgresTables, tables } from './schema/postgres.cjs';
5
- import 'drizzle-orm';
6
- import '../../types-DTJEu_-h.cjs';
7
- import 'zod';
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>>;
13
-
14
- /**
15
- * Options for creating a PostgreSQL backend.
16
- */
17
- type PostgresBackendOptions = Readonly<{
18
- /**
19
- * Custom table definitions. Use createPostgresTables() to customize table names.
20
- * Defaults to standard TypeGraph table names.
21
- */
22
- tables?: PostgresTables;
23
- }>;
24
- /**
25
- * Creates a TypeGraph backend for PostgreSQL databases.
26
- *
27
- * Works with any Drizzle PostgreSQL instance regardless of the underlying driver.
28
- *
29
- * @param db - A Drizzle PostgreSQL database instance
30
- * @param options - Backend configuration
31
- * @returns A GraphBackend implementation
32
- */
33
- declare function createPostgresBackend(db: AnyPgDatabase, options?: PostgresBackendOptions): GraphBackend;
34
-
35
- export { type PostgresBackendOptions, PostgresTables, createPostgresBackend };
@@ -1,35 +0,0 @@
1
- import { G as GraphBackend } from '../../types-6EKrWTs9.js';
2
- import { PgDatabase, PgQueryResultHKT } from 'drizzle-orm/pg-core';
3
- import { PostgresTables } from './schema/postgres.js';
4
- export { PostgresTableNames, createPostgresTables, tables } from './schema/postgres.js';
5
- import 'drizzle-orm';
6
- import '../../types-DTJEu_-h.js';
7
- import 'zod';
8
- import '../../types-BRzHlhKC.js';
9
- import '../../types-ZT5mlism.js';
10
- import '../../ast-CXFx6bF6.js';
11
-
12
- type AnyPgDatabase = PgDatabase<PgQueryResultHKT, Record<string, unknown>>;
13
-
14
- /**
15
- * Options for creating a PostgreSQL backend.
16
- */
17
- type PostgresBackendOptions = Readonly<{
18
- /**
19
- * Custom table definitions. Use createPostgresTables() to customize table names.
20
- * Defaults to standard TypeGraph table names.
21
- */
22
- tables?: PostgresTables;
23
- }>;
24
- /**
25
- * Creates a TypeGraph backend for PostgreSQL databases.
26
- *
27
- * Works with any Drizzle PostgreSQL instance regardless of the underlying driver.
28
- *
29
- * @param db - A Drizzle PostgreSQL database instance
30
- * @param options - Backend configuration
31
- * @returns A GraphBackend implementation
32
- */
33
- declare function createPostgresBackend(db: AnyPgDatabase, options?: PostgresBackendOptions): GraphBackend;
34
-
35
- export { type PostgresBackendOptions, PostgresTables, createPostgresBackend };
@@ -1,9 +0,0 @@
1
- export { createPostgresBackend } from '../../chunk-Q6PXIKRQ.js';
2
- import '../../chunk-ZQGOBVXZ.js';
3
- export { createPostgresTables, tables } from '../../chunk-3PURVEA4.js';
4
- import '../../chunk-SJ2QMDXY.js';
5
- import '../../chunk-U3452TEU.js';
6
- import '../../chunk-54WJF3DW.js';
7
- import '../../chunk-K7SQ3SWP.js';
8
- //# sourceMappingURL=postgres.js.map
9
- //# sourceMappingURL=postgres.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"postgres.js"}
@@ -1,39 +0,0 @@
1
- 'use strict';
2
-
3
- var chunkNU2XNMVI_cjs = require('../../../chunk-NU2XNMVI.cjs');
4
- require('../../../chunk-JQDWEX6V.cjs');
5
- require('../../../chunk-2WVFEIHR.cjs');
6
- require('../../../chunk-P5CNM325.cjs');
7
-
8
-
9
-
10
- Object.defineProperty(exports, "createPostgresTables", {
11
- enumerable: true,
12
- get: function () { return chunkNU2XNMVI_cjs.createPostgresTables; }
13
- });
14
- Object.defineProperty(exports, "edges", {
15
- enumerable: true,
16
- get: function () { return chunkNU2XNMVI_cjs.edges; }
17
- });
18
- Object.defineProperty(exports, "embeddings", {
19
- enumerable: true,
20
- get: function () { return chunkNU2XNMVI_cjs.embeddings; }
21
- });
22
- Object.defineProperty(exports, "nodes", {
23
- enumerable: true,
24
- get: function () { return chunkNU2XNMVI_cjs.nodes; }
25
- });
26
- Object.defineProperty(exports, "schemaVersions", {
27
- enumerable: true,
28
- get: function () { return chunkNU2XNMVI_cjs.schemaVersions; }
29
- });
30
- Object.defineProperty(exports, "tables", {
31
- enumerable: true,
32
- get: function () { return chunkNU2XNMVI_cjs.tables; }
33
- });
34
- Object.defineProperty(exports, "uniques", {
35
- enumerable: true,
36
- get: function () { return chunkNU2XNMVI_cjs.uniques; }
37
- });
38
- //# sourceMappingURL=postgres.cjs.map
39
- //# sourceMappingURL=postgres.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"postgres.cjs"}
@@ -1,6 +0,0 @@
1
- export { createPostgresTables, edges, embeddings, nodes, schemaVersions, tables, uniques } from '../../../chunk-3PURVEA4.js';
2
- import '../../../chunk-U3452TEU.js';
3
- import '../../../chunk-54WJF3DW.js';
4
- import '../../../chunk-K7SQ3SWP.js';
5
- //# sourceMappingURL=postgres.js.map
6
- //# sourceMappingURL=postgres.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"postgres.js"}
@@ -1,39 +0,0 @@
1
- 'use strict';
2
-
3
- var chunkXZL6MCZJ_cjs = require('../../../chunk-XZL6MCZJ.cjs');
4
- require('../../../chunk-JQDWEX6V.cjs');
5
- require('../../../chunk-2WVFEIHR.cjs');
6
- require('../../../chunk-P5CNM325.cjs');
7
-
8
-
9
-
10
- Object.defineProperty(exports, "createSqliteTables", {
11
- enumerable: true,
12
- get: function () { return chunkXZL6MCZJ_cjs.createSqliteTables; }
13
- });
14
- Object.defineProperty(exports, "edges", {
15
- enumerable: true,
16
- get: function () { return chunkXZL6MCZJ_cjs.edges; }
17
- });
18
- Object.defineProperty(exports, "embeddings", {
19
- enumerable: true,
20
- get: function () { return chunkXZL6MCZJ_cjs.embeddings; }
21
- });
22
- Object.defineProperty(exports, "nodes", {
23
- enumerable: true,
24
- get: function () { return chunkXZL6MCZJ_cjs.nodes; }
25
- });
26
- Object.defineProperty(exports, "schemaVersions", {
27
- enumerable: true,
28
- get: function () { return chunkXZL6MCZJ_cjs.schemaVersions; }
29
- });
30
- Object.defineProperty(exports, "tables", {
31
- enumerable: true,
32
- get: function () { return chunkXZL6MCZJ_cjs.tables; }
33
- });
34
- Object.defineProperty(exports, "uniques", {
35
- enumerable: true,
36
- get: function () { return chunkXZL6MCZJ_cjs.uniques; }
37
- });
38
- //# sourceMappingURL=sqlite.cjs.map
39
- //# sourceMappingURL=sqlite.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"sqlite.cjs"}
@@ -1,6 +0,0 @@
1
- export { createSqliteTables, edges, embeddings, nodes, schemaVersions, tables, uniques } from '../../../chunk-OGGLFYFA.js';
2
- import '../../../chunk-U3452TEU.js';
3
- import '../../../chunk-54WJF3DW.js';
4
- import '../../../chunk-K7SQ3SWP.js';
5
- //# sourceMappingURL=sqlite.js.map
6
- //# sourceMappingURL=sqlite.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"sqlite.js"}
@@ -1,26 +0,0 @@
1
- 'use strict';
2
-
3
- var chunkNYDXJGA3_cjs = require('../../chunk-NYDXJGA3.cjs');
4
- require('../../chunk-7RVSDXT3.cjs');
5
- var chunkXZL6MCZJ_cjs = require('../../chunk-XZL6MCZJ.cjs');
6
- require('../../chunk-44SXEVF4.cjs');
7
- require('../../chunk-JQDWEX6V.cjs');
8
- require('../../chunk-2WVFEIHR.cjs');
9
- require('../../chunk-P5CNM325.cjs');
10
-
11
-
12
-
13
- Object.defineProperty(exports, "createSqliteBackend", {
14
- enumerable: true,
15
- get: function () { return chunkNYDXJGA3_cjs.createSqliteBackend; }
16
- });
17
- Object.defineProperty(exports, "createSqliteTables", {
18
- enumerable: true,
19
- get: function () { return chunkXZL6MCZJ_cjs.createSqliteTables; }
20
- });
21
- Object.defineProperty(exports, "tables", {
22
- enumerable: true,
23
- get: function () { return chunkXZL6MCZJ_cjs.tables; }
24
- });
25
- //# sourceMappingURL=sqlite.cjs.map
26
- //# sourceMappingURL=sqlite.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"sqlite.cjs"}
@@ -1,35 +0,0 @@
1
- import { G as GraphBackend } from '../../types-BUy-pHKH.cjs';
2
- import { BaseSQLiteDatabase } from 'drizzle-orm/sqlite-core';
3
- import { SqliteTables } from './schema/sqlite.cjs';
4
- export { SqliteTableNames, createSqliteTables, tables } from './schema/sqlite.cjs';
5
- import 'drizzle-orm';
6
- import '../../types-DTJEu_-h.cjs';
7
- import 'zod';
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>;
17
-
18
- /**
19
- * Options for creating a SQLite backend.
20
- */
21
- type SqliteBackendOptions = Readonly<{
22
- /**
23
- * Custom table definitions. Use createSqliteTables() to customize table names.
24
- * Defaults to standard TypeGraph table names.
25
- */
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;
32
- }>;
33
- declare function createSqliteBackend(db: AnySqliteDatabase, options?: SqliteBackendOptions): GraphBackend;
34
-
35
- export { type SqliteBackendOptions, SqliteTables, createSqliteBackend };
@@ -1,35 +0,0 @@
1
- import { G as GraphBackend } from '../../types-6EKrWTs9.js';
2
- import { BaseSQLiteDatabase } from 'drizzle-orm/sqlite-core';
3
- import { SqliteTables } from './schema/sqlite.js';
4
- export { SqliteTableNames, createSqliteTables, tables } from './schema/sqlite.js';
5
- import 'drizzle-orm';
6
- import '../../types-DTJEu_-h.js';
7
- import 'zod';
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>;
17
-
18
- /**
19
- * Options for creating a SQLite backend.
20
- */
21
- type SqliteBackendOptions = Readonly<{
22
- /**
23
- * Custom table definitions. Use createSqliteTables() to customize table names.
24
- * Defaults to standard TypeGraph table names.
25
- */
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;
32
- }>;
33
- declare function createSqliteBackend(db: AnySqliteDatabase, options?: SqliteBackendOptions): GraphBackend;
34
-
35
- export { type SqliteBackendOptions, SqliteTables, createSqliteBackend };
@@ -1,9 +0,0 @@
1
- export { createSqliteBackend } from '../../chunk-ZO2FRJ2U.js';
2
- import '../../chunk-ZQGOBVXZ.js';
3
- export { createSqliteTables, tables } from '../../chunk-OGGLFYFA.js';
4
- import '../../chunk-SJ2QMDXY.js';
5
- import '../../chunk-U3452TEU.js';
6
- import '../../chunk-54WJF3DW.js';
7
- import '../../chunk-K7SQ3SWP.js';
8
- //# sourceMappingURL=sqlite.js.map
9
- //# sourceMappingURL=sqlite.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"sqlite.js"}