@nicia-ai/typegraph 0.20.0 → 0.21.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.
- package/dist/{ast-Bh2NDeaK.d.cts → ast-CSLbPIOC.d.ts} +56 -3
- package/dist/{ast-COMyNeMn.d.ts → ast-DogwbBqA.d.cts} +56 -3
- package/dist/backend/postgres/index.cjs +123 -45
- package/dist/backend/postgres/index.cjs.map +1 -1
- package/dist/backend/postgres/index.d.cts +15 -7
- package/dist/backend/postgres/index.d.ts +15 -7
- package/dist/backend/postgres/index.js +101 -23
- package/dist/backend/postgres/index.js.map +1 -1
- package/dist/backend/sqlite/index.cjs +15 -15
- package/dist/backend/sqlite/index.d.cts +11 -7
- package/dist/backend/sqlite/index.d.ts +11 -7
- package/dist/backend/sqlite/index.js +5 -5
- package/dist/backend/sqlite/libsql.cjs +8 -8
- package/dist/backend/sqlite/libsql.d.cts +4 -5
- package/dist/backend/sqlite/libsql.d.ts +4 -5
- package/dist/backend/sqlite/libsql.js +5 -5
- package/dist/backend/sqlite/local.cjs +9 -9
- package/dist/backend/sqlite/local.d.cts +4 -5
- package/dist/backend/sqlite/local.d.ts +4 -5
- package/dist/backend/sqlite/local.js +5 -5
- package/dist/{chunk-LELLOHJK.cjs → chunk-2X7P7AD5.cjs} +35 -35
- package/dist/{chunk-LELLOHJK.cjs.map → chunk-2X7P7AD5.cjs.map} +1 -1
- package/dist/{chunk-GNIYZKBI.js → chunk-4XNE2JG3.js} +376 -8
- package/dist/chunk-4XNE2JG3.js.map +1 -0
- package/dist/{chunk-HXJXTOXR.cjs → chunk-CQL6FOTT.cjs} +82 -21
- package/dist/chunk-CQL6FOTT.cjs.map +1 -0
- package/dist/{chunk-K7SQ3SWP.js → chunk-EYELZHKY.js} +120 -12
- package/dist/chunk-EYELZHKY.js.map +1 -0
- package/dist/{chunk-MME3H4ZF.cjs → chunk-FQCQM3KG.cjs} +385 -9
- package/dist/chunk-FQCQM3KG.cjs.map +1 -0
- package/dist/{chunk-X33WV2UF.cjs → chunk-HRNQ3DVJ.cjs} +24 -21
- package/dist/chunk-HRNQ3DVJ.cjs.map +1 -0
- package/dist/{chunk-W6M7XWKX.js → chunk-JYUQA77I.js} +21 -18
- package/dist/chunk-JYUQA77I.js.map +1 -0
- package/dist/{chunk-LLHFS53Q.js → chunk-NRNJ52AA.js} +72 -11
- package/dist/chunk-NRNJ52AA.js.map +1 -0
- package/dist/{chunk-IYWWXOVK.cjs → chunk-Q73OWTJY.cjs} +204 -89
- package/dist/chunk-Q73OWTJY.cjs.map +1 -0
- package/dist/{chunk-G5CYWKRF.js → chunk-RS5OLGEW.js} +2 -2
- package/dist/{chunk-G5CYWKRF.js.map → chunk-RS5OLGEW.js.map} +1 -1
- package/dist/{chunk-6GWJH6AR.js → chunk-SMMOAVJ5.js} +4 -4
- package/dist/{chunk-6GWJH6AR.js.map → chunk-SMMOAVJ5.js.map} +1 -1
- package/dist/{chunk-QFZQGEQ3.js → chunk-UQVBVBVG.js} +151 -36
- package/dist/chunk-UQVBVBVG.js.map +1 -0
- package/dist/{chunk-P5CNM325.cjs → chunk-UVZHTBZ5.cjs} +123 -11
- package/dist/chunk-UVZHTBZ5.cjs.map +1 -0
- package/dist/{chunk-5GZMPJOP.cjs → chunk-WRWVWKQL.cjs} +2 -2
- package/dist/{chunk-5GZMPJOP.cjs.map → chunk-WRWVWKQL.cjs.map} +1 -1
- package/dist/{ddl-BBo2EcFc.d.cts → ddl-BqkTShcR.d.ts} +28 -6
- package/dist/{ddl-D4jlcOH_.d.ts → ddl-Dk1NDN3M.d.cts} +28 -6
- package/dist/index.cjs +1705 -490
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +8 -10
- package/dist/index.d.ts +8 -10
- package/dist/index.js +1552 -361
- package/dist/index.js.map +1 -1
- package/dist/indexes/index.cjs +17 -17
- package/dist/indexes/index.d.cts +5 -5
- package/dist/indexes/index.d.ts +5 -5
- package/dist/indexes/index.js +3 -3
- package/dist/interchange/index.cjs +6 -6
- package/dist/interchange/index.d.cts +4 -5
- package/dist/interchange/index.d.ts +4 -5
- package/dist/interchange/index.js +1 -1
- package/dist/{manager-Chhrq1vl.d.ts → manager-0jVZtiE8.d.ts} +1 -2
- package/dist/{manager-Bj1UEnhE.d.cts → manager-BPK-2PUI.d.cts} +1 -2
- package/dist/profiler/index.cjs +15 -8
- package/dist/profiler/index.cjs.map +1 -1
- package/dist/profiler/index.d.cts +7 -8
- package/dist/profiler/index.d.ts +7 -8
- package/dist/profiler/index.js +8 -1
- package/dist/profiler/index.js.map +1 -1
- package/dist/schema/index.cjs +21 -21
- package/dist/schema/index.d.cts +4 -5
- package/dist/schema/index.d.ts +4 -5
- package/dist/schema/index.js +3 -3
- package/dist/{sqlite-DE-6NWtC.d.cts → sqlite-D1rrwcir.d.cts} +14 -1
- package/dist/{sqlite-Blq-AhmK.d.ts → sqlite-W3rmJMlc.d.ts} +14 -1
- package/dist/{store-BMrRi_mY.d.ts → store-2QW2SIRk.d.cts} +404 -5
- package/dist/{store-DRRvALu8.d.cts → store-C0q13mtJ.d.ts} +404 -5
- package/dist/{types-B3mmOMJV.d.cts → types-CQF88McG.d.cts} +475 -2
- package/dist/{types-ThB4cFLp.d.ts → types-CQF88McG.d.ts} +475 -2
- package/dist/{types-COPePE8_.d.ts → types-CglvhPKz.d.ts} +1 -1
- package/dist/{types-CVtGFpB9.d.cts → types-D23slCOA.d.cts} +1 -1
- package/dist/{types-Ceb01czq.d.ts → types-IMQCuser.d.ts} +2 -2
- package/dist/{types-CZd2PEOc.d.cts → types-vgjar7Ch.d.cts} +2 -2
- package/package.json +9 -9
- package/dist/chunk-GNIYZKBI.js.map +0 -1
- package/dist/chunk-HXJXTOXR.cjs.map +0 -1
- package/dist/chunk-IYWWXOVK.cjs.map +0 -1
- package/dist/chunk-K7SQ3SWP.js.map +0 -1
- package/dist/chunk-LLHFS53Q.js.map +0 -1
- package/dist/chunk-MME3H4ZF.cjs.map +0 -1
- package/dist/chunk-P5CNM325.cjs.map +0 -1
- package/dist/chunk-QFZQGEQ3.js.map +0 -1
- package/dist/chunk-W6M7XWKX.js.map +0 -1
- package/dist/chunk-X33WV2UF.cjs.map +0 -1
- package/dist/types-DMzKq0d5.d.cts +0 -181
- package/dist/types-DMzKq0d5.d.ts +0 -181
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { m as FulltextStrategy } from './types-CQF88McG.cjs';
|
|
1
2
|
import * as drizzle_orm_pg_core from 'drizzle-orm/pg-core';
|
|
2
|
-
import { T as TypeGraphIndex } from './types-
|
|
3
|
-
import { S as SqliteTables } from './sqlite-
|
|
3
|
+
import { T as TypeGraphIndex } from './types-vgjar7Ch.cjs';
|
|
4
|
+
import { S as SqliteTables } from './sqlite-D1rrwcir.cjs';
|
|
4
5
|
|
|
5
6
|
/**
|
|
6
7
|
* Table name configuration.
|
|
@@ -11,6 +12,7 @@ type PostgresTableNames = Readonly<{
|
|
|
11
12
|
uniques: string;
|
|
12
13
|
schemaVersions: string;
|
|
13
14
|
embeddings: string;
|
|
15
|
+
fulltext: string;
|
|
14
16
|
}>;
|
|
15
17
|
type CreatePostgresTablesOptions = Readonly<{
|
|
16
18
|
/**
|
|
@@ -811,6 +813,16 @@ declare function createPostgresTables(names?: Partial<PostgresTableNames>, optio
|
|
|
811
813
|
};
|
|
812
814
|
dialect: "pg";
|
|
813
815
|
}>;
|
|
816
|
+
/**
|
|
817
|
+
* The fulltext storage table is owned by the active `FulltextStrategy`,
|
|
818
|
+
* not Drizzle. Shapes vary across strategies — the default `tsvectorStrategy`
|
|
819
|
+
* uses a `regconfig` language column, a GENERATED STORED `tsv` column,
|
|
820
|
+
* and a GIN index; alternate strategies (ParadeDB, pg_trgm, pgroonga)
|
|
821
|
+
* pick their own column types and index methods. DDL is emitted as
|
|
822
|
+
* raw SQL via `strategy.generateDdl()`; reads and writes are composed
|
|
823
|
+
* from the strategy's fragment helpers.
|
|
824
|
+
*/
|
|
825
|
+
readonly fulltextTableName: string;
|
|
814
826
|
};
|
|
815
827
|
/**
|
|
816
828
|
* Default tables with standard TypeGraph table names.
|
|
@@ -1601,6 +1613,16 @@ declare const tables: {
|
|
|
1601
1613
|
};
|
|
1602
1614
|
dialect: "pg";
|
|
1603
1615
|
}>;
|
|
1616
|
+
/**
|
|
1617
|
+
* The fulltext storage table is owned by the active `FulltextStrategy`,
|
|
1618
|
+
* not Drizzle. Shapes vary across strategies — the default `tsvectorStrategy`
|
|
1619
|
+
* uses a `regconfig` language column, a GENERATED STORED `tsv` column,
|
|
1620
|
+
* and a GIN index; alternate strategies (ParadeDB, pg_trgm, pgroonga)
|
|
1621
|
+
* pick their own column types and index methods. DDL is emitted as
|
|
1622
|
+
* raw SQL via `strategy.generateDdl()`; reads and writes are composed
|
|
1623
|
+
* from the strategy's fragment helpers.
|
|
1624
|
+
*/
|
|
1625
|
+
readonly fulltextTableName: string;
|
|
1604
1626
|
};
|
|
1605
1627
|
/**
|
|
1606
1628
|
* Convenience exports for default tables.
|
|
@@ -2398,16 +2420,16 @@ type PostgresTables = ReturnType<typeof createPostgresTables>;
|
|
|
2398
2420
|
/**
|
|
2399
2421
|
* Generates all DDL statements for the given SQLite tables.
|
|
2400
2422
|
*/
|
|
2401
|
-
declare function generateSqliteDDL(tables?: SqliteTables): string[];
|
|
2423
|
+
declare function generateSqliteDDL(tables?: SqliteTables, fulltextStrategy?: FulltextStrategy): string[];
|
|
2402
2424
|
/**
|
|
2403
2425
|
* Generates a single SQL string for SQLite migrations.
|
|
2404
2426
|
* Convenience function that joins all DDL statements.
|
|
2405
2427
|
*/
|
|
2406
|
-
declare function generateSqliteMigrationSQL(tables?: SqliteTables): string;
|
|
2428
|
+
declare function generateSqliteMigrationSQL(tables?: SqliteTables, fulltextStrategy?: FulltextStrategy): string;
|
|
2407
2429
|
/**
|
|
2408
2430
|
* Generates all DDL statements for the given PostgreSQL tables.
|
|
2409
2431
|
*/
|
|
2410
|
-
declare function generatePostgresDDL(tables?: PostgresTables): string[];
|
|
2432
|
+
declare function generatePostgresDDL(tables?: PostgresTables, fulltextStrategy?: FulltextStrategy): string[];
|
|
2411
2433
|
/**
|
|
2412
2434
|
* Generates a single SQL string for PostgreSQL migrations.
|
|
2413
2435
|
* Convenience function that joins all DDL statements.
|
|
@@ -2415,6 +2437,6 @@ declare function generatePostgresDDL(tables?: PostgresTables): string[];
|
|
|
2415
2437
|
* Includes CREATE EXTENSION for pgvector since the embeddings table
|
|
2416
2438
|
* uses the native VECTOR type.
|
|
2417
2439
|
*/
|
|
2418
|
-
declare function generatePostgresMigrationSQL(tables?: PostgresTables): string;
|
|
2440
|
+
declare function generatePostgresMigrationSQL(tables?: PostgresTables, fulltextStrategy?: FulltextStrategy): string;
|
|
2419
2441
|
|
|
2420
2442
|
export { type CreatePostgresTablesOptions as C, type PostgresTables as P, generateSqliteMigrationSQL as a, type PostgresTableNames as b, createPostgresTables as c, embeddings as d, edges as e, generatePostgresDDL as f, generateSqliteDDL as g, generatePostgresMigrationSQL as h, nodes as n, schemaVersions as s, tables as t, uniques as u };
|