@sequenceholdings/orm 2.10.0 → 2.11.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 (46) hide show
  1. package/README.md +71 -0
  2. package/dist/authoring.cjs +796 -7
  3. package/dist/authoring.cjs.map +1 -1
  4. package/dist/authoring.d.cts +11 -2
  5. package/dist/authoring.d.ts +11 -2
  6. package/dist/authoring.js +796 -7
  7. package/dist/authoring.js.map +1 -1
  8. package/dist/canonical.cjs +777 -6
  9. package/dist/canonical.cjs.map +1 -1
  10. package/dist/canonical.d.cts +43 -43
  11. package/dist/canonical.d.ts +43 -43
  12. package/dist/canonical.js +777 -6
  13. package/dist/canonical.js.map +1 -1
  14. package/dist/cli.cjs +7561 -7502
  15. package/dist/cli.cjs.map +1 -1
  16. package/dist/cli.js +7561 -7502
  17. package/dist/cli.js.map +1 -1
  18. package/dist/compiler.cjs +801 -33
  19. package/dist/compiler.cjs.map +1 -1
  20. package/dist/compiler.d.cts +1 -1
  21. package/dist/compiler.d.ts +1 -1
  22. package/dist/compiler.js +801 -33
  23. package/dist/compiler.js.map +1 -1
  24. package/dist/index.cjs +3716 -3445
  25. package/dist/index.cjs.map +1 -1
  26. package/dist/index.d.cts +95 -30
  27. package/dist/index.d.ts +95 -30
  28. package/dist/index.js +3711 -3444
  29. package/dist/index.js.map +1 -1
  30. package/dist/ir.cjs +778 -7
  31. package/dist/ir.cjs.map +1 -1
  32. package/dist/ir.d.cts +58 -58
  33. package/dist/ir.d.ts +58 -58
  34. package/dist/ir.js +778 -7
  35. package/dist/ir.js.map +1 -1
  36. package/dist/predicate-v2.cjs +793 -23
  37. package/dist/predicate-v2.cjs.map +1 -1
  38. package/dist/predicate-v2.js +793 -23
  39. package/dist/predicate-v2.js.map +1 -1
  40. package/dist/sdl.cjs +786 -17
  41. package/dist/sdl.cjs.map +1 -1
  42. package/dist/sdl.js +786 -17
  43. package/dist/sdl.js.map +1 -1
  44. package/package.json +1 -1
  45. package/dist/{definition-B99BsOAO.d.cts → definition-CevES7lM.d.cts} +2 -2
  46. package/dist/{definition-B99BsOAO.d.ts → definition-CevES7lM.d.ts} +2 -2
@@ -3,7 +3,7 @@ import { b as CellPart } from './constants-D2o0vK6U.cjs';
3
3
  import { ColumnsSelection } from 'drizzle-orm';
4
4
  import { TypedQueryBuilder } from 'drizzle-orm/query-builders/query-builder';
5
5
  import { QueryBuilder, PgView, PgTable, AnyPgColumn } from 'drizzle-orm/pg-core';
6
- export { S as SqlOperationDefinition, d as defineOperation } from './definition-B99BsOAO.cjs';
6
+ export { S as SqlOperationDefinition, d as defineOperation } from './definition-CevES7lM.cjs';
7
7
  import 'zod';
8
8
  import './policy-1iZbGnZZ.cjs';
9
9
 
@@ -615,7 +615,8 @@ interface SyncedTablePoliciesInput {
615
615
  }
616
616
  /**
617
617
  * Config for a read-only qualified-source reflection. Columns (typed overload) are a contract
618
- * for views/clients — ORM does not own synced DDL.
618
+ * for views/clients. The sync owns the relation's columns, keys and rows; the ORM owns only
619
+ * the secondary `indexes` a typed synced table declares.
619
620
  */
620
621
  interface SyncedTableConfig {
621
622
  /** Reflected read-only source as a safe qualified identifier: `<schema>.<table>`. */
@@ -634,6 +635,14 @@ interface SyncedTableConfig {
634
635
  primaryKey?: readonly string[];
635
636
  links?: Record<string, SeqLink>;
636
637
  policies?: SyncedTablePoliciesInput;
638
+ /**
639
+ * Secondary (non-unique) btree indexes on the physical synced relation —
640
+ * typed synced tables only. Apply creates them on the relation the serving
641
+ * stage bound (on a partitioned parent, so every attached partition gets
642
+ * one) and re-asserts them every apply. The build cannot run CONCURRENTLY
643
+ * on a partitioned parent and blocks the sync's writes while it runs.
644
+ */
645
+ indexes?: readonly IndexInput[];
637
646
  }
638
647
  /** @deprecated Alias — typed and untyped share SyncedTableConfig. */
639
648
  type TypedSyncedTableConfig = SyncedTableConfig;
@@ -3,7 +3,7 @@ import { b as CellPart } from './constants-D2o0vK6U.js';
3
3
  import { ColumnsSelection } from 'drizzle-orm';
4
4
  import { TypedQueryBuilder } from 'drizzle-orm/query-builders/query-builder';
5
5
  import { QueryBuilder, PgView, PgTable, AnyPgColumn } from 'drizzle-orm/pg-core';
6
- export { S as SqlOperationDefinition, d as defineOperation } from './definition-B99BsOAO.js';
6
+ export { S as SqlOperationDefinition, d as defineOperation } from './definition-CevES7lM.js';
7
7
  import 'zod';
8
8
  import './policy-1iZbGnZZ.js';
9
9
 
@@ -615,7 +615,8 @@ interface SyncedTablePoliciesInput {
615
615
  }
616
616
  /**
617
617
  * Config for a read-only qualified-source reflection. Columns (typed overload) are a contract
618
- * for views/clients — ORM does not own synced DDL.
618
+ * for views/clients. The sync owns the relation's columns, keys and rows; the ORM owns only
619
+ * the secondary `indexes` a typed synced table declares.
619
620
  */
620
621
  interface SyncedTableConfig {
621
622
  /** Reflected read-only source as a safe qualified identifier: `<schema>.<table>`. */
@@ -634,6 +635,14 @@ interface SyncedTableConfig {
634
635
  primaryKey?: readonly string[];
635
636
  links?: Record<string, SeqLink>;
636
637
  policies?: SyncedTablePoliciesInput;
638
+ /**
639
+ * Secondary (non-unique) btree indexes on the physical synced relation —
640
+ * typed synced tables only. Apply creates them on the relation the serving
641
+ * stage bound (on a partitioned parent, so every attached partition gets
642
+ * one) and re-asserts them every apply. The build cannot run CONCURRENTLY
643
+ * on a partitioned parent and blocks the sync's writes while it runs.
644
+ */
645
+ indexes?: readonly IndexInput[];
637
646
  }
638
647
  /** @deprecated Alias — typed and untyped share SyncedTableConfig. */
639
648
  type TypedSyncedTableConfig = SyncedTableConfig;