@warlock.js/cascade 5.31.0 → 5.33.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/CHANGELOG.md +17 -0
- package/cjs/index.cjs +104 -85
- package/cjs/index.cjs.map +1 -1
- package/esm/context/database-data-source-context.d.mts +2 -3
- package/esm/context/database-data-source-context.d.mts.map +1 -1
- package/esm/context/database-transaction-context.d.mts +2 -3
- package/esm/context/database-transaction-context.d.mts.map +1 -1
- package/esm/contracts/database-driver.contract.d.mts +56 -36
- package/esm/contracts/database-driver.contract.d.mts.map +1 -1
- package/esm/contracts/database-id-generator.contract.d.mts +7 -5
- package/esm/contracts/database-id-generator.contract.d.mts.map +1 -1
- package/esm/contracts/database-remover.contract.d.mts +3 -5
- package/esm/contracts/database-remover.contract.d.mts.map +1 -1
- package/esm/contracts/database-restorer.contract.d.mts +6 -6
- package/esm/contracts/database-restorer.contract.d.mts.map +1 -1
- package/esm/contracts/database-writer.contract.d.mts +4 -6
- package/esm/contracts/database-writer.contract.d.mts.map +1 -1
- package/esm/contracts/driver-blueprint.contract.d.mts +2 -3
- package/esm/contracts/driver-blueprint.contract.d.mts.map +1 -1
- package/esm/contracts/index.d.mts +2 -1
- package/esm/contracts/migration-driver.contract.d.mts +101 -53
- package/esm/contracts/migration-driver.contract.d.mts.map +1 -1
- package/esm/contracts/query-builder.contract.d.mts +51 -33
- package/esm/contracts/query-builder.contract.d.mts.map +1 -1
- package/esm/contracts/sync-adapter.contract.d.mts +25 -14
- package/esm/contracts/sync-adapter.contract.d.mts.map +1 -1
- package/esm/data-source/data-source-registry.d.mts +4 -5
- package/esm/data-source/data-source-registry.d.mts.map +1 -1
- package/esm/data-source/data-source.d.mts +8 -5
- package/esm/data-source/data-source.d.mts.map +1 -1
- package/esm/database-dirty-tracker.d.mts +2 -2
- package/esm/database-dirty-tracker.d.mts.map +1 -1
- package/esm/database-dirty-tracker.mjs +3 -2
- package/esm/database-dirty-tracker.mjs.map +1 -1
- package/esm/drivers/mongodb/mongodb-driver.d.mts +3 -4
- package/esm/drivers/mongodb/mongodb-driver.d.mts.map +1 -1
- package/esm/drivers/mongodb/mongodb-id-generator.d.mts +2 -3
- package/esm/drivers/mongodb/mongodb-id-generator.d.mts.map +1 -1
- package/esm/drivers/mongodb/mongodb-migration-driver.d.mts +1 -3
- package/esm/drivers/mongodb/mongodb-migration-driver.d.mts.map +1 -1
- package/esm/drivers/mongodb/mongodb-query-builder.d.mts +2 -3
- package/esm/drivers/mongodb/mongodb-query-builder.d.mts.map +1 -1
- package/esm/drivers/mongodb/mongodb-query-builder.mjs +8 -5
- package/esm/drivers/mongodb/mongodb-query-builder.mjs.map +1 -1
- package/esm/drivers/mongodb/mongodb-query-operations.d.mts +1 -3
- package/esm/drivers/mongodb/mongodb-query-operations.d.mts.map +1 -1
- package/esm/drivers/mongodb/mongodb-query-parser.d.mts +7 -6
- package/esm/drivers/mongodb/mongodb-query-parser.d.mts.map +1 -1
- package/esm/drivers/mongodb/mongodb-query-parser.mjs +2 -6
- package/esm/drivers/mongodb/mongodb-query-parser.mjs.map +1 -1
- package/esm/drivers/mongodb/mongodb-sync-adapter.d.mts +1 -3
- package/esm/drivers/mongodb/mongodb-sync-adapter.d.mts.map +1 -1
- package/esm/drivers/mongodb/types.d.mts +11 -9
- package/esm/drivers/mongodb/types.d.mts.map +1 -1
- package/esm/drivers/postgres/index.d.mts +2 -1
- package/esm/drivers/postgres/index.mjs +1 -1
- package/esm/drivers/postgres/naming.mjs +1 -1
- package/esm/drivers/postgres/postgres-blueprint.d.mts +1 -3
- package/esm/drivers/postgres/postgres-blueprint.d.mts.map +1 -1
- package/esm/drivers/postgres/postgres-dialect.d.mts +4 -6
- package/esm/drivers/postgres/postgres-dialect.d.mts.map +1 -1
- package/esm/drivers/postgres/postgres-driver.d.mts +4 -5
- package/esm/drivers/postgres/postgres-driver.d.mts.map +1 -1
- package/esm/drivers/postgres/postgres-migration-driver.d.mts +1 -3
- package/esm/drivers/postgres/postgres-migration-driver.d.mts.map +1 -1
- package/esm/drivers/postgres/postgres-migration-driver.mjs +13 -10
- package/esm/drivers/postgres/postgres-migration-driver.mjs.map +1 -1
- package/esm/drivers/postgres/postgres-query-builder.d.mts +4 -4
- package/esm/drivers/postgres/postgres-query-builder.d.mts.map +1 -1
- package/esm/drivers/postgres/postgres-query-builder.mjs +14 -10
- package/esm/drivers/postgres/postgres-query-builder.mjs.map +1 -1
- package/esm/drivers/postgres/postgres-query-parser.d.mts +16 -11
- package/esm/drivers/postgres/postgres-query-parser.d.mts.map +1 -1
- package/esm/drivers/postgres/postgres-query-parser.mjs +1 -1
- package/esm/drivers/postgres/postgres-query-parser.mjs.map +1 -1
- package/esm/drivers/postgres/postgres-sql-serializer.mjs +13 -10
- package/esm/drivers/postgres/postgres-sql-serializer.mjs.map +1 -1
- package/esm/drivers/postgres/postgres-ttl-purge.mjs +1 -1
- package/esm/drivers/postgres/postgres-type-converters.mjs +2 -2
- package/esm/drivers/postgres/postgres-type-converters.mjs.map +1 -1
- package/esm/drivers/postgres/postgres-update-validator.mjs +1 -1
- package/esm/drivers/postgres/postgres-update-validator.mjs.map +1 -1
- package/esm/drivers/postgres/types.d.mts +87 -45
- package/esm/drivers/postgres/types.d.mts.map +1 -1
- package/esm/drivers/sql/sql-dialect.contract.d.mts +1 -3
- package/esm/drivers/sql/sql-dialect.contract.d.mts.map +1 -1
- package/esm/drivers/sql/sql-types.d.mts +113 -59
- package/esm/drivers/sql/sql-types.d.mts.map +1 -1
- package/esm/errors/missing-data-source.error.d.mts +1 -2
- package/esm/errors/missing-data-source.error.d.mts.map +1 -1
- package/esm/errors/transaction-rollback.error.d.mts +1 -2
- package/esm/errors/transaction-rollback.error.d.mts.map +1 -1
- package/esm/errors/undefined-where-value.error.d.mts +1 -2
- package/esm/errors/undefined-where-value.error.d.mts.map +1 -1
- package/esm/errors/unsafe-filter.error.d.mts +1 -2
- package/esm/errors/unsafe-filter.error.d.mts.map +1 -1
- package/esm/errors/unsafe-raw-expression.error.d.mts +1 -2
- package/esm/errors/unsafe-raw-expression.error.d.mts.map +1 -1
- package/esm/errors/unsupported-lean-operation.error.d.mts +1 -2
- package/esm/errors/unsupported-lean-operation.error.d.mts.map +1 -1
- package/esm/errors/unsupported-lock-for-update.error.d.mts +1 -2
- package/esm/errors/unsupported-lock-for-update.error.d.mts.map +1 -1
- package/esm/errors/unsupported-query-operation.error.d.mts +1 -2
- package/esm/errors/unsupported-query-operation.error.d.mts.map +1 -1
- package/esm/errors/unsupported-update-operation.error.d.mts +1 -2
- package/esm/errors/unsupported-update-operation.error.d.mts.map +1 -1
- package/esm/events/model-events.d.mts +8 -6
- package/esm/events/model-events.d.mts.map +1 -1
- package/esm/expressions/aggregate-expressions.d.mts +7 -7
- package/esm/expressions/aggregate-expressions.d.mts.map +1 -1
- package/esm/expressions/column-expressions.d.mts +11 -11
- package/esm/expressions/column-expressions.d.mts.map +1 -1
- package/esm/index.d.mts +7 -2
- package/esm/index.mjs +1 -1
- package/esm/migration/column-builder.d.mts +2 -3
- package/esm/migration/column-builder.d.mts.map +1 -1
- package/esm/migration/column-helpers.d.mts +49 -50
- package/esm/migration/column-helpers.d.mts.map +1 -1
- package/esm/migration/column-helpers.mjs +1 -1
- package/esm/migration/foreign-key-builder.d.mts +2 -3
- package/esm/migration/foreign-key-builder.d.mts.map +1 -1
- package/esm/migration/index.d.mts +3 -2
- package/esm/migration/index.mjs +2 -2
- package/esm/migration/migration-runner.d.mts +7 -6
- package/esm/migration/migration-runner.d.mts.map +1 -1
- package/esm/migration/migration-runner.mjs +15 -11
- package/esm/migration/migration-runner.mjs.map +1 -1
- package/esm/migration/migration.d.mts +50 -32
- package/esm/migration/migration.d.mts.map +1 -1
- package/esm/migration/migration.mjs +1 -3
- package/esm/migration/migration.mjs.map +1 -1
- package/esm/migration/sql-serializer.d.mts +1 -3
- package/esm/migration/sql-serializer.d.mts.map +1 -1
- package/esm/migration/types.d.mts +7 -7
- package/esm/migration/types.d.mts.map +1 -1
- package/esm/model/methods/accessor-methods.mjs +1 -1
- package/esm/model/methods/accessor-methods.mjs.map +1 -1
- package/esm/model/methods/meta-methods.mjs +4 -2
- package/esm/model/methods/meta-methods.mjs.map +1 -1
- package/esm/model/methods/query-methods.mjs +1 -1
- package/esm/model/methods/write-methods.d.mts +3 -2
- package/esm/model/methods/write-methods.d.mts.map +1 -1
- package/esm/model/methods/write-methods.mjs +5 -2
- package/esm/model/methods/write-methods.mjs.map +1 -1
- package/esm/model/model.d.mts +9 -9
- package/esm/model/model.d.mts.map +1 -1
- package/esm/model/model.types.d.mts +7 -7
- package/esm/model/model.types.d.mts.map +1 -1
- package/esm/model/register-model.d.mts +13 -15
- package/esm/model/register-model.d.mts.map +1 -1
- package/esm/model/relation-decorators.d.mts +6 -8
- package/esm/model/relation-decorators.d.mts.map +1 -1
- package/esm/operations/database.d.mts +13 -8
- package/esm/operations/database.d.mts.map +1 -1
- package/esm/operations/index.d.mts +2 -1
- package/esm/operations/index.mjs +1 -1
- package/esm/operations/migrations.d.mts +18 -14
- package/esm/operations/migrations.d.mts.map +1 -1
- package/esm/query-builder/query-builder.d.mts +2 -4
- package/esm/query-builder/query-builder.d.mts.map +1 -1
- package/esm/query-builder/query-builder.mjs +12 -11
- package/esm/query-builder/query-builder.mjs.map +1 -1
- package/esm/relations/index.d.mts +2 -1
- package/esm/relations/index.mjs +1 -1
- package/esm/relations/key-conventions.mjs +2 -1
- package/esm/relations/key-conventions.mjs.map +1 -1
- package/esm/relations/pivot-operations.d.mts +3 -5
- package/esm/relations/pivot-operations.d.mts.map +1 -1
- package/esm/relations/relation-hydrator.d.mts +3 -5
- package/esm/relations/relation-hydrator.d.mts.map +1 -1
- package/esm/relations/relation-loader.d.mts +2 -4
- package/esm/relations/relation-loader.d.mts.map +1 -1
- package/esm/relations/relation-loader.mjs +4 -5
- package/esm/relations/relation-loader.mjs.map +1 -1
- package/esm/relations/types.d.mts +14 -15
- package/esm/relations/types.d.mts.map +1 -1
- package/esm/remover/database-remover.d.mts +1 -3
- package/esm/remover/database-remover.d.mts.map +1 -1
- package/esm/restorer/database-restorer.d.mts +1 -3
- package/esm/restorer/database-restorer.d.mts.map +1 -1
- package/esm/restorer/database-restorer.mjs +2 -1
- package/esm/restorer/database-restorer.mjs.map +1 -1
- package/esm/sql-database-dirty-tracker.d.mts +1 -3
- package/esm/sql-database-dirty-tracker.d.mts.map +1 -1
- package/esm/sync/model-events.mjs +1 -1
- package/esm/sync/model-sync-operation.d.mts +2 -4
- package/esm/sync/model-sync-operation.d.mts.map +1 -1
- package/esm/sync/model-sync.d.mts +3 -4
- package/esm/sync/model-sync.d.mts.map +1 -1
- package/esm/sync/sync-context.d.mts +2 -4
- package/esm/sync/sync-context.d.mts.map +1 -1
- package/esm/sync/sync-fanout.mjs +1 -1
- package/esm/sync/sync-manager.d.mts +2 -4
- package/esm/sync/sync-manager.d.mts.map +1 -1
- package/esm/sync/types.d.mts +121 -64
- package/esm/sync/types.d.mts.map +1 -1
- package/esm/transactions/after-commit.d.mts +2 -2
- package/esm/transactions/after-commit.d.mts.map +1 -1
- package/esm/types.d.mts +7 -8
- package/esm/types.d.mts.map +1 -1
- package/esm/utils/connect-to-database.d.mts +7 -8
- package/esm/utils/connect-to-database.d.mts.map +1 -1
- package/esm/utils/database-writer.utils.d.mts +3 -4
- package/esm/utils/database-writer.utils.d.mts.map +1 -1
- package/esm/utils/define-model.d.mts +3 -5
- package/esm/utils/define-model.d.mts.map +1 -1
- package/esm/utils/escape-regex.d.mts +3 -4
- package/esm/utils/escape-regex.d.mts.map +1 -1
- package/esm/utils/once-connected.d.mts +2 -4
- package/esm/utils/once-connected.d.mts.map +1 -1
- package/esm/utils/sanitize-filter.d.mts +3 -4
- package/esm/utils/sanitize-filter.d.mts.map +1 -1
- package/esm/validation/database-seal-plugins.d.mts +2 -1
- package/esm/validation/database-writer-validation-error.d.mts +1 -3
- package/esm/validation/database-writer-validation-error.d.mts.map +1 -1
- package/esm/validation/index.d.mts +3 -1
- package/esm/validation/index.mjs +1 -1
- package/esm/validation/plugins/database-rules-plugin.d.mts +2 -3
- package/esm/validation/plugins/database-rules-plugin.d.mts.map +1 -1
- package/esm/validation/plugins/embed-validator-plugin.d.mts +4 -3
- package/esm/validation/plugins/embed-validator-plugin.d.mts.map +1 -1
- package/esm/validation/types.d.mts +14 -10
- package/esm/validation/types.d.mts.map +1 -1
- package/esm/validation/validators/embed-validator.d.mts +2 -3
- package/esm/validation/validators/embed-validator.d.mts.map +1 -1
- package/esm/writer/database-writer.d.mts +1 -3
- package/esm/writer/database-writer.d.mts.map +1 -1
- package/esm/writer/database-writer.mjs +1 -1
- package/esm/writer/database-writer.mjs.map +1 -1
- package/package.json +5 -5
|
@@ -2,38 +2,59 @@ import { MigrationDefaults } from "../types.mjs";
|
|
|
2
2
|
import { TableIndexInformation } from "./driver-blueprint.contract.mjs";
|
|
3
3
|
import { DriverContract } from "./database-driver.contract.mjs";
|
|
4
4
|
import { DataSource } from "../data-source/data-source.mjs";
|
|
5
|
-
|
|
6
5
|
//#region ../../packages/cascade/src/contracts/migration-driver.contract.d.ts
|
|
7
6
|
/**
|
|
8
7
|
* Column data types supported across all database drivers.
|
|
9
8
|
*/
|
|
10
|
-
type ColumnType = "string" | "char" | "text" | "mediumText" | "longText" | "integer" | "smallInteger" | "tinyInteger" | "bigInteger" | "float" | "double" | "decimal" | "boolean" | "date" | "dateTime" | "timestamp" | "time" | "year" | "json" | "binary" | "uuid" | "ulid" | "ipAddress" | "macAddress" | "point" | "polygon" | "lineString" | "geometry" | "vector" | "enum" | "set" | "arrayInt" | "arrayBigInt" | "arrayFloat" | "arrayDecimal" | "arrayBoolean" | "arrayText" | "arrayDate" | "arrayTimestamp" | "arrayUuid" | "arrayJson";
|
|
9
|
+
export type ColumnType = "string" | "char" | "text" | "mediumText" | "longText" | "integer" | "smallInteger" | "tinyInteger" | "bigInteger" | "float" | "double" | "decimal" | "boolean" | "date" | "dateTime" | "timestamp" | "time" | "year" | "json" | "binary" | "uuid" | "ulid" | "ipAddress" | "macAddress" | "point" | "polygon" | "lineString" | "geometry" | "vector" | "enum" | "set" | "arrayInt" | "arrayBigInt" | "arrayFloat" | "arrayDecimal" | "arrayBoolean" | "arrayText" | "arrayDate" | "arrayTimestamp" | "arrayUuid" | "arrayJson";
|
|
11
10
|
/**
|
|
12
11
|
* Column definition used when adding or modifying columns.
|
|
13
12
|
*/
|
|
14
|
-
type ColumnDefinition = {
|
|
15
|
-
/** Column name */
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
13
|
+
export type ColumnDefinition = {
|
|
14
|
+
/** Column name */
|
|
15
|
+
name: string;
|
|
16
|
+
/** Column data type */
|
|
17
|
+
type: ColumnType;
|
|
18
|
+
/** Length for string/char types */
|
|
19
|
+
length?: number;
|
|
20
|
+
/** Precision for decimal types */
|
|
21
|
+
precision?: number;
|
|
22
|
+
/** Scale for decimal types */
|
|
23
|
+
scale?: number;
|
|
24
|
+
/** Whether the column allows NULL values */
|
|
25
|
+
nullable?: boolean;
|
|
26
|
+
/** Default value for the column (can be a primitive, SQL string, or {__type: 'CURRENT_TIMESTAMP'}) */
|
|
27
|
+
defaultValue?: unknown;
|
|
28
|
+
/** MySQL: ON UPDATE CURRENT_TIMESTAMP */
|
|
29
|
+
onUpdateCurrent?: boolean;
|
|
30
|
+
/** Whether this is a primary key */
|
|
31
|
+
primary?: boolean;
|
|
32
|
+
/** Whether this column auto-increments */
|
|
33
|
+
autoIncrement?: boolean;
|
|
34
|
+
/** Whether this column must be unsigned (numeric only) */
|
|
35
|
+
unsigned?: boolean;
|
|
36
|
+
/** Whether this column has a unique constraint */
|
|
37
|
+
unique?: boolean;
|
|
38
|
+
/** Column comment/description */
|
|
39
|
+
comment?: string;
|
|
40
|
+
/** Enum/set values */
|
|
41
|
+
values?: string[];
|
|
42
|
+
/** Vector dimensions (for vector type) */
|
|
43
|
+
dimensions?: number;
|
|
44
|
+
/** Whether defaultValue should be treated as raw SQL (true) or escaped literal (false) */
|
|
45
|
+
isRawDefault?: boolean;
|
|
46
|
+
/** Position this column after another column */
|
|
47
|
+
after?: string;
|
|
48
|
+
/** Position this column as the first column in the table */
|
|
49
|
+
first?: boolean;
|
|
50
|
+
/** Generated column configuration */
|
|
33
51
|
generated?: {
|
|
34
|
-
/** SQL expression to compute the value */
|
|
52
|
+
/** SQL expression to compute the value */
|
|
53
|
+
expression: string;
|
|
54
|
+
/** true = STORED (persisted), false = VIRTUAL (computed on read) */
|
|
35
55
|
stored: boolean;
|
|
36
|
-
};
|
|
56
|
+
};
|
|
57
|
+
/** Inline CHECK constraint on this column */
|
|
37
58
|
checkConstraint?: {
|
|
38
59
|
expression: string;
|
|
39
60
|
name: string;
|
|
@@ -42,53 +63,80 @@ type ColumnDefinition = {
|
|
|
42
63
|
/**
|
|
43
64
|
* Index definition for creating database indexes.
|
|
44
65
|
*/
|
|
45
|
-
type IndexDefinition = {
|
|
46
|
-
/** Index name (auto-generated if not provided) */
|
|
47
|
-
readonly
|
|
48
|
-
|
|
49
|
-
readonly
|
|
50
|
-
|
|
51
|
-
readonly
|
|
52
|
-
|
|
53
|
-
readonly
|
|
54
|
-
|
|
66
|
+
export type IndexDefinition = {
|
|
67
|
+
/** Index name (auto-generated if not provided) */
|
|
68
|
+
readonly name?: string;
|
|
69
|
+
/** Columns included in the index */
|
|
70
|
+
readonly columns: string[];
|
|
71
|
+
/** Whether this is a unique index */
|
|
72
|
+
readonly unique?: boolean;
|
|
73
|
+
/** Index type (driver-specific) */
|
|
74
|
+
readonly type?: string;
|
|
75
|
+
/** Partial index condition */
|
|
76
|
+
readonly where?: Record<string, unknown>;
|
|
77
|
+
/** Whether to create sparse index (MongoDB) */
|
|
78
|
+
readonly sparse?: boolean;
|
|
79
|
+
/** Sort direction for each column */
|
|
80
|
+
readonly directions?: Array<"asc" | "desc">;
|
|
81
|
+
/** Expression-based index (PostgreSQL) - e.g., ['lower(email)', 'upper(name)'] */
|
|
82
|
+
readonly expressions?: string[];
|
|
83
|
+
/** Covering index columns (PostgreSQL INCLUDE clause) */
|
|
84
|
+
readonly include?: string[];
|
|
85
|
+
/** Create index concurrently without blocking writes (PostgreSQL) */
|
|
55
86
|
readonly concurrently?: boolean;
|
|
56
87
|
};
|
|
57
88
|
/**
|
|
58
89
|
* Full-text search index options.
|
|
59
90
|
*/
|
|
60
|
-
type FullTextIndexOptions = {
|
|
61
|
-
/** Index name */
|
|
62
|
-
readonly
|
|
91
|
+
export type FullTextIndexOptions = {
|
|
92
|
+
/** Index name */
|
|
93
|
+
readonly name?: string;
|
|
94
|
+
/** Language for text analysis */
|
|
95
|
+
readonly language?: string;
|
|
96
|
+
/** Field weights for relevance scoring */
|
|
63
97
|
readonly weights?: Record<string, number>;
|
|
64
98
|
};
|
|
65
99
|
/**
|
|
66
100
|
* Geo-spatial index options.
|
|
67
101
|
*/
|
|
68
|
-
type GeoIndexOptions = {
|
|
69
|
-
/** Index name */
|
|
70
|
-
readonly
|
|
71
|
-
|
|
102
|
+
export type GeoIndexOptions = {
|
|
103
|
+
/** Index name */
|
|
104
|
+
readonly name?: string;
|
|
105
|
+
/** Index type: "2dsphere" (default) or "2d" */
|
|
106
|
+
readonly type?: "2dsphere" | "2d";
|
|
107
|
+
/** Minimum bound for 2d index */
|
|
108
|
+
readonly min?: number;
|
|
109
|
+
/** Maximum bound for 2d index */
|
|
72
110
|
readonly max?: number;
|
|
73
111
|
};
|
|
74
112
|
/**
|
|
75
113
|
* Vector index options for AI/ML embeddings.
|
|
76
114
|
*/
|
|
77
|
-
type VectorIndexOptions = {
|
|
78
|
-
/** Vector dimensions (e.g., 1536 for OpenAI) */
|
|
79
|
-
readonly
|
|
80
|
-
|
|
115
|
+
export type VectorIndexOptions = {
|
|
116
|
+
/** Vector dimensions (e.g., 1536 for OpenAI) */
|
|
117
|
+
readonly dimensions: number;
|
|
118
|
+
/** Similarity metric */
|
|
119
|
+
readonly similarity?: "cosine" | "euclidean" | "dotProduct";
|
|
120
|
+
/** Index name */
|
|
121
|
+
readonly name?: string;
|
|
122
|
+
/** Number of lists/clusters (IVF) */
|
|
81
123
|
readonly lists?: number;
|
|
82
124
|
};
|
|
83
125
|
/**
|
|
84
126
|
* Foreign key constraint definition (SQL only).
|
|
85
127
|
*/
|
|
86
|
-
type ForeignKeyDefinition = {
|
|
87
|
-
/** Constraint name */
|
|
88
|
-
readonly
|
|
89
|
-
|
|
90
|
-
readonly
|
|
91
|
-
|
|
128
|
+
export type ForeignKeyDefinition = {
|
|
129
|
+
/** Constraint name */
|
|
130
|
+
readonly name?: string;
|
|
131
|
+
/** Local column name */
|
|
132
|
+
readonly column: string;
|
|
133
|
+
/** Referenced table */
|
|
134
|
+
readonly referencesTable: string;
|
|
135
|
+
/** Referenced column */
|
|
136
|
+
readonly referencesColumn: string;
|
|
137
|
+
/** Action on delete */
|
|
138
|
+
readonly onDelete?: "cascade" | "restrict" | "setNull" | "noAction";
|
|
139
|
+
/** Action on update */
|
|
92
140
|
readonly onUpdate?: "cascade" | "restrict" | "setNull" | "noAction";
|
|
93
141
|
};
|
|
94
142
|
/**
|
|
@@ -103,7 +151,7 @@ type ForeignKeyDefinition = {
|
|
|
103
151
|
* await driver.createIndex("users", { columns: ["email"], unique: true });
|
|
104
152
|
* ```
|
|
105
153
|
*/
|
|
106
|
-
interface MigrationDriverContract {
|
|
154
|
+
export interface MigrationDriverContract {
|
|
107
155
|
/**
|
|
108
156
|
* Create a new table or collection.
|
|
109
157
|
*
|
|
@@ -470,7 +518,7 @@ interface MigrationDriverContract {
|
|
|
470
518
|
/**
|
|
471
519
|
* Factory function type for creating migration drivers.
|
|
472
520
|
*/
|
|
473
|
-
type MigrationDriverFactory = (source: DataSource | DriverContract) => MigrationDriverContract;
|
|
521
|
+
export type MigrationDriverFactory = (source: DataSource | DriverContract) => MigrationDriverContract;
|
|
474
522
|
//#endregion
|
|
475
|
-
export {
|
|
523
|
+
export type { TableIndexInformation };
|
|
476
524
|
//# sourceMappingURL=migration-driver.contract.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"migration-driver.contract.d.mts","names":[],"sources":["../../../../../../../../packages/cascade/src/contracts/migration-driver.contract.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"migration-driver.contract.d.mts","names":[],"sources":["../../../../../../../../packages/cascade/src/contracts/migration-driver.contract.ts"],"mappings":";;;;;;;;YASY;;;;YA+CA;;EAEV;;EAEA,MAAM;;EAEN;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAIA;;EAEA;;EAIA;;IAEE;;IAEA;;;EAIF;IACE;IACA;;;;;;YAOQ;;WAED;;WAEA;;WAEA;;WAEA;;WAEA,QAAQ;;WAER;;WAEA,aAAa;;WAEb;;WAEA;;WAEA;;;;;YAMC;;WAED;;WAEA;;WAEA,UAAU;;;;;YAMT;;WAED;;WAEA;;WAEA;;WAEA;;;;;YAMC;;WAED;;WAEA;;WAEA;;WAEA;;;;;YAMC;;WAED;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;;;;;;;;;;;;;;iBAeM;;;;;;EAUf,YAAY,gBAAgB;;;;;;EAO5B,uBAAuB,gBAAgB;;;;;;EAOvC,UAAU,gBAAgB;;;;;;EAO1B,kBAAkB,gBAAgB;;;;;;;EAQlC,YAAY,cAAc,aAAa;;;;;;EAOvC,cAAc,gBAAgB;;;;;;;EAQ9B,YAAY,gBAAgB;;;;;;;EAQ5B,YAAY,gBAAgB,QAAQ;;;;;;EAOpC,cAAc;;;;;;;;;;;;EAad,sBAAsB,oBAAoB;;;;;;;;;EAc1C,UAAU,eAAe,QAAQ,mBAAmB;;;;;;;;;EAUpD,WA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,KAAK,QAAQ;;;;EAK/D,QAAQ;;;;;YAME,0BACV,QAAQ,aAAa,mBAClB"}
|
|
@@ -1,28 +1,39 @@
|
|
|
1
1
|
import { GlobalScopeDefinition, LocalScopeCallback } from "../model/model.types.mjs";
|
|
2
|
+
import "../model/model.mjs";
|
|
2
3
|
//#region ../../packages/cascade/src/contracts/query-builder.contract.d.ts
|
|
3
4
|
/**
|
|
4
5
|
* Ordering direction supported by query builders.
|
|
5
6
|
*/
|
|
6
|
-
type OrderDirection = "asc" | "desc";
|
|
7
|
+
export type OrderDirection = "asc" | "desc";
|
|
7
8
|
/**
|
|
8
9
|
* Options describing a relationship join.
|
|
9
10
|
*/
|
|
10
|
-
type JoinOptions = {
|
|
11
|
-
/** Target table or collection. */
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
11
|
+
export type JoinOptions = {
|
|
12
|
+
/** Target table or collection. */
|
|
13
|
+
table: string;
|
|
14
|
+
/** Local field used in the join condition. */
|
|
15
|
+
localField?: string;
|
|
16
|
+
/** Operator used in the join condition (defaults to equality). */
|
|
17
|
+
operator?: string;
|
|
18
|
+
/** Foreign field used in the join condition. */
|
|
19
|
+
foreignField?: string;
|
|
20
|
+
/** Join type. */
|
|
21
|
+
type?: "inner" | "left" | "right" | "full" | "cross";
|
|
22
|
+
/** Optional alias for the joined relation. */
|
|
23
|
+
alias?: string;
|
|
24
|
+
/** Driver-specific options (e.g. Mongo pipeline). */
|
|
25
|
+
options?: Record<string, unknown>;
|
|
26
|
+
/** Projection overrides for the joined relation. */
|
|
27
|
+
select?: string[];
|
|
28
|
+
/** Extra join conditions expressed as key/value pairs. */
|
|
29
|
+
conditions?: Record<string, unknown>;
|
|
30
|
+
/** Driver specific pipeline/clauses for advanced joins. */
|
|
20
31
|
pipeline?: unknown[];
|
|
21
32
|
};
|
|
22
33
|
/**
|
|
23
34
|
* Pagination result returned by paginate helpers.
|
|
24
35
|
*/
|
|
25
|
-
type PaginationResult<T> = {
|
|
36
|
+
export type PaginationResult<T> = {
|
|
26
37
|
data: T[];
|
|
27
38
|
pagination: {
|
|
28
39
|
total: number;
|
|
@@ -34,7 +45,7 @@ type PaginationResult<T> = {
|
|
|
34
45
|
/**
|
|
35
46
|
* Cursor pagination result.
|
|
36
47
|
*/
|
|
37
|
-
type CursorPaginationResult<T> = {
|
|
48
|
+
export type CursorPaginationResult<T> = {
|
|
38
49
|
data: T[];
|
|
39
50
|
pagination: {
|
|
40
51
|
hasMore: boolean;
|
|
@@ -46,11 +57,11 @@ type CursorPaginationResult<T> = {
|
|
|
46
57
|
/**
|
|
47
58
|
* Chunk callback signature.
|
|
48
59
|
*/
|
|
49
|
-
type ChunkCallback<T> = (rows: T[], chunkIndex: number) => Promise<boolean | void> | boolean | void;
|
|
60
|
+
export type ChunkCallback<T> = (rows: T[], chunkIndex: number) => Promise<boolean | void> | boolean | void;
|
|
50
61
|
/**
|
|
51
62
|
* Cursor pagination options.
|
|
52
63
|
*/
|
|
53
|
-
type CursorPaginationOptions = {
|
|
64
|
+
export type CursorPaginationOptions = {
|
|
54
65
|
cursor?: unknown;
|
|
55
66
|
direction?: "next" | "prev";
|
|
56
67
|
limit: number;
|
|
@@ -59,37 +70,37 @@ type CursorPaginationOptions = {
|
|
|
59
70
|
/**
|
|
60
71
|
* Standard pagination options.
|
|
61
72
|
*/
|
|
62
|
-
type PaginationOptions = {
|
|
73
|
+
export type PaginationOptions = {
|
|
63
74
|
page?: number;
|
|
64
75
|
limit?: number;
|
|
65
76
|
};
|
|
66
77
|
/**
|
|
67
78
|
* Supported comparison operators.
|
|
68
79
|
*/
|
|
69
|
-
type WhereOperator = "=" | "!=" | ">" | ">=" | "<" | "<=" | "in" | "notIn" | "between" | "notBetween" | "like" | "notLike" | "startsWith" | "notStartsWith" | "endsWith" | "notEndsWith" | "exists" | string;
|
|
70
|
-
type WhereObject = Record<string, unknown>;
|
|
80
|
+
export type WhereOperator = "=" | "!=" | ">" | ">=" | "<" | "<=" | "in" | "notIn" | "between" | "notBetween" | "like" | "notLike" | "startsWith" | "notStartsWith" | "endsWith" | "notEndsWith" | "exists" | string;
|
|
81
|
+
export type WhereObject = Record<string, unknown>;
|
|
71
82
|
/**
|
|
72
83
|
* Callback-based predicate definition.
|
|
73
84
|
*/
|
|
74
|
-
type WhereCallback<T> = (builder: QueryBuilderContract<T>) => unknown;
|
|
85
|
+
export type WhereCallback<T> = (builder: QueryBuilderContract<T>) => unknown;
|
|
75
86
|
/**
|
|
76
87
|
* Group-by payload supporting strings, arrays, or driver specific objects.
|
|
77
88
|
*/
|
|
78
|
-
type GroupByInput = string | string[] | Record<string, unknown> | Array<Record<string, unknown>>;
|
|
89
|
+
export type GroupByInput = string | string[] | Record<string, unknown> | Array<Record<string, unknown>>;
|
|
79
90
|
/**
|
|
80
91
|
* Having clause payload.
|
|
81
92
|
*/
|
|
82
|
-
type HavingInput = Record<string, unknown> | [field: string, value: unknown] | [field: string, operator: WhereOperator, value: unknown];
|
|
93
|
+
export type HavingInput = Record<string, unknown> | [field: string, value: unknown] | [field: string, operator: WhereOperator, value: unknown];
|
|
83
94
|
/**
|
|
84
95
|
* Raw expression payload for projection/order/group extensions.
|
|
85
96
|
*/
|
|
86
|
-
type RawExpression = string | Record<string, unknown> | unknown;
|
|
97
|
+
export type RawExpression = string | Record<string, unknown> | unknown;
|
|
87
98
|
/**
|
|
88
99
|
* Options for `lockForUpdate()` — row-level locking on SELECT.
|
|
89
100
|
*
|
|
90
101
|
* `skipLocked` and `noWait` are mutually exclusive (PostgreSQL grammar).
|
|
91
102
|
*/
|
|
92
|
-
type LockForUpdateOptions = {
|
|
103
|
+
export type LockForUpdateOptions = {
|
|
93
104
|
/**
|
|
94
105
|
* Skip rows another transaction already holds a lock on instead of waiting
|
|
95
106
|
* (`FOR UPDATE SKIP LOCKED`) — the standard shape for concurrent job-queue
|
|
@@ -119,17 +130,23 @@ type LockForUpdateOptions = {
|
|
|
119
130
|
* // MongoDB result:
|
|
120
131
|
* { pipeline: [{ $match: { status: "active" } }, { $limit: 10 }] }
|
|
121
132
|
*/
|
|
122
|
-
type DriverQuery = {
|
|
123
|
-
/** Text-based query string: SQL, CQL, Cypher, etc. */
|
|
124
|
-
|
|
125
|
-
|
|
133
|
+
export type DriverQuery = {
|
|
134
|
+
/** Text-based query string: SQL, CQL, Cypher, etc. */
|
|
135
|
+
query?: string;
|
|
136
|
+
/** Positional or named parameter bindings for the text query. */
|
|
137
|
+
bindings?: unknown[];
|
|
138
|
+
/** Document pipeline: MongoDB aggregation stages, Elasticsearch DSL body, etc. */
|
|
139
|
+
pipeline?: unknown[];
|
|
140
|
+
/** Full escape hatch for drivers that don't fit any shape above. */
|
|
126
141
|
native?: unknown;
|
|
127
142
|
};
|
|
128
143
|
/**
|
|
129
144
|
* Options for `unwind()`, mirroring MongoDB's `$unwind` document form.
|
|
130
145
|
*/
|
|
131
|
-
type UnwindOptions = {
|
|
132
|
-
/** Keep documents whose array is missing, null or empty (default false). */
|
|
146
|
+
export type UnwindOptions = {
|
|
147
|
+
/** Keep documents whose array is missing, null or empty (default false). */
|
|
148
|
+
preserveNullAndEmptyArrays?: boolean;
|
|
149
|
+
/** Output field that receives the element's array index. */
|
|
133
150
|
includeArrayIndex?: string;
|
|
134
151
|
};
|
|
135
152
|
/**
|
|
@@ -142,7 +159,7 @@ type UnwindOptions = {
|
|
|
142
159
|
* LeanDocument<User> // User's TSchema
|
|
143
160
|
* LeanDocument<{ id: number }> // { id: number }
|
|
144
161
|
*/
|
|
145
|
-
type LeanDocument<T> = T extends {
|
|
162
|
+
export type LeanDocument<T> = T extends {
|
|
146
163
|
data: infer TSchema;
|
|
147
164
|
} ? TSchema : T;
|
|
148
165
|
/**
|
|
@@ -152,7 +169,7 @@ type LeanDocument<T> = T extends {
|
|
|
152
169
|
*
|
|
153
170
|
* @template T - The type of records returned by the query
|
|
154
171
|
*/
|
|
155
|
-
interface QueryBuilderContract<T = unknown> {
|
|
172
|
+
export interface QueryBuilderContract<T = unknown> {
|
|
156
173
|
/**
|
|
157
174
|
* Table name
|
|
158
175
|
*/
|
|
@@ -236,7 +253,9 @@ interface QueryBuilderContract<T = unknown> {
|
|
|
236
253
|
* time to emit per-row count expressions.
|
|
237
254
|
*/
|
|
238
255
|
countRelations?: Map<string, {
|
|
239
|
-
/** Relation name as declared on the model — used to resolve the relation definition. */
|
|
256
|
+
/** Relation name as declared on the model — used to resolve the relation definition. */
|
|
257
|
+
relation: string;
|
|
258
|
+
/** Operations recorded inside a constraint callback (where* filters only). */
|
|
240
259
|
constraintOps?: unknown[];
|
|
241
260
|
}>;
|
|
242
261
|
/**
|
|
@@ -1832,5 +1851,4 @@ interface QueryBuilderContract<T = unknown> {
|
|
|
1832
1851
|
addFields(fields: Record<string, unknown>): this;
|
|
1833
1852
|
}
|
|
1834
1853
|
//#endregion
|
|
1835
|
-
export { ChunkCallback, CursorPaginationOptions, CursorPaginationResult, DriverQuery, GroupByInput, HavingInput, JoinOptions, LeanDocument, LockForUpdateOptions, OrderDirection, PaginationOptions, PaginationResult, QueryBuilderContract, RawExpression, UnwindOptions, WhereCallback, WhereObject, WhereOperator };
|
|
1836
1854
|
//# sourceMappingURL=query-builder.contract.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query-builder.contract.d.mts","names":[],"sources":["../../../../../../../../packages/cascade/src/contracts/query-builder.contract.ts"],"mappings":";;;;;KAGY,cAAA;AAAZ;;;AAAA,KAKY,WAAA;EALc,kCAOxB,KAAA,UAFqB;EAIrB,UAAA,WAcmB;EAZnB,QAAA,WAFA;EAIA,YAAA;EAEA,IAAA,kDAEA;EAAA,KAAA,WAEU;EAAV,OAAA,GAAU,MAAA,mBAIV;EAFA,MAAA,aAIA;EAFA,UAAA,GAAa,MAAM,mBAEX;EAAR,QAAA;AAAA;;;;KAMU,gBAAA;EACV,IAAA,EAAM,CAAC;EACP,UAAA;IACE,KAAA;IACA,IA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AAO,KAAA,UAAe,OAAA,GAAU,aAAA;;;;;;;;;;EAWhC,SAAA,CAAU,MAAA,EAAQ,MAAA;AAAA"}
|
|
1
|
+
{"version":3,"file":"query-builder.contract.d.mts","names":[],"sources":["../../../../../../../../packages/cascade/src/contracts/query-builder.contract.ts"],"mappings":";;;;;;YAGY;;;;YAKA;;EAEV;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA,UAAU;;EAEV;;EAEA,aAAa;;EAEb;;;;;YAMU,iBAAiB;EAC3B,MAAM;EACN;IACE;IACA;IACA;IACA;;;;;;YAOQ,uBAAuB;EACjC,MAAM;EACN;IACE;IACA;IACA;IACA;;;;;;YAOQ,cAAc,MACxB,MAAM,KACN,uBACG;;;;YAKO;EACV;EACA;EACA;EACA;;;;;YAMU;EACV;EACA;;;;;YAMU;YAwBA,cAAc;;;;YAKd,cAAc,MAAM,SAAS,qBAAqB;;;;YAKlD,mCAGR,0BACA,MAAM;;;;YAKE,cACR,2BACC,eAAe,mBACf,eAAe,UAAU,eAAe;;;;YAKjC,yBAAyB;;;;;;YAOzB;;;;;;EAMV;;;;;EAKA;;;;;;;;;;;;;;;;;;;YAoBU;;EAEV;;EAEA;;EAEA;;EAEA;;;;;YAMU;;EAEV;;EAEA;;;;;;;;;;;;YAaU,aAAa,KAAK;EAAY,YAAY;IAAY,UAAU;;;;;;;;iBAS3D,qBAAqB;;;;EAIpC;;;;;EAKA,QAAQ,WAAW,WAAW;;;;;;EAO9B,WAAW,WAAW,uBAAuB;;;;;;EAO7C,YAAY,WAAW,gBAAgB,wBAAwB;;;;;;EAO/D,UAAU,WAAW,gBAAgB,wBAAwB;;;;;;;;;;;;;;;EAgB7D,QAAQ,qBAAqB,aAAa;;;;EAK1C;;;;;EAUA,sBAAsB,YAAY;;;;;EAMlC,uBAAuB,YAAY;;;;EAKnC,uBAAuB;;;;EAKvB;;;;;;;EAYA,qBAAqB,wBAAwB,OAAO;;;;;;;;;;;;EAapD,iBAAiB;;IAIb;;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table/collection name */
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
6
|
+
export type SyncInstruction = {
|
|
7
|
+
/** Target table/collection name */
|
|
8
|
+
targetTable: string;
|
|
9
|
+
/** Target model name */
|
|
10
|
+
targetModel: string;
|
|
11
|
+
/** Filter to identify documents to update */
|
|
12
|
+
filter: Record<string, unknown>;
|
|
13
|
+
/** Update operations to apply */
|
|
14
|
+
update: Record<string, unknown>;
|
|
15
|
+
/** Current depth in the sync chain */
|
|
16
|
+
depth: number;
|
|
17
|
+
/** Chain of model names leading to this instruction */
|
|
18
|
+
chain: string[];
|
|
19
|
+
/** Source model name */
|
|
20
|
+
sourceModel: string;
|
|
21
|
+
/** Source model ID */
|
|
22
|
+
sourceId: string | number;
|
|
23
|
+
/** Whether this is an array update (requires positional operator) */
|
|
24
|
+
isArrayUpdate?: boolean;
|
|
25
|
+
/** Array field path for positional updates */
|
|
26
|
+
arrayField?: string;
|
|
27
|
+
/** Identifier field for array matching */
|
|
28
|
+
identifierField?: string;
|
|
29
|
+
/** Identifier value for array matching */
|
|
18
30
|
identifierValue?: string | number;
|
|
19
31
|
};
|
|
20
32
|
/**
|
|
21
33
|
* Contract for database-specific sync adapters.
|
|
22
34
|
* Handles the execution of sync operations at the driver level.
|
|
23
35
|
*/
|
|
24
|
-
interface SyncAdapterContract {
|
|
36
|
+
export interface SyncAdapterContract {
|
|
25
37
|
/**
|
|
26
38
|
* Executes a batch of sync instructions.
|
|
27
39
|
*
|
|
@@ -45,5 +57,4 @@ interface SyncAdapterContract {
|
|
|
45
57
|
executeArrayUpdate(instruction: SyncInstruction): Promise<number>;
|
|
46
58
|
}
|
|
47
59
|
//#endregion
|
|
48
|
-
export { SyncAdapterContract, SyncInstruction };
|
|
49
60
|
//# sourceMappingURL=sync-adapter.contract.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sync-adapter.contract.d.mts","names":[],"sources":["../../../../../../../../packages/cascade/src/contracts/sync-adapter.contract.ts"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"sync-adapter.contract.d.mts","names":[],"sources":["../../../../../../../../packages/cascade/src/contracts/sync-adapter.contract.ts"],"mappings":";;;;;YAIY;;EAEV;;EAGA;;EAGA,QAAQ;;EAGR,QAAQ;;EAGR;;EAGA;;EAGA;;EAGA;;EAGA;;EAGA;;EAGA;;EAGA;;;;;;iBAOe;;;;;;;EAOf,aAAa,cAAc,oBAAoB;;;;;;;EAQ/C,WAAW,aAAa,kBAAkB;;;;;;;EAQ1C,mBAAmB,aAAa,kBAAkB"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { QueryEvent } from "../contracts/database-driver.contract.mjs";
|
|
2
2
|
import { DataSource, DataSourceOptions } from "./data-source.mjs";
|
|
3
|
-
|
|
4
3
|
//#region ../../packages/cascade/src/data-source/data-source-registry.d.ts
|
|
5
4
|
/**
|
|
6
5
|
* Event types emitted by the DataSourceRegistry.
|
|
@@ -11,11 +10,11 @@ import { DataSource, DataSourceOptions } from "./data-source.mjs";
|
|
|
11
10
|
* - `disconnected`: Emitted when a data source's driver disconnects
|
|
12
11
|
* - `query`: Emitted when a registered driver's query settles
|
|
13
12
|
*/
|
|
14
|
-
type DataSourceRegistryEvent = "registered" | "default-registered" | "connected" | "disconnected" | "query";
|
|
13
|
+
export type DataSourceRegistryEvent = "registered" | "default-registered" | "connected" | "disconnected" | "query";
|
|
15
14
|
/**
|
|
16
15
|
* Callback signature for registry events.
|
|
17
16
|
*/
|
|
18
|
-
type DataSourceRegistryListener<E extends DataSourceRegistryEvent = DataSourceRegistryEvent> = (data: E extends "query" ? QueryEvent : DataSource) => void;
|
|
17
|
+
export type DataSourceRegistryListener<E extends DataSourceRegistryEvent = DataSourceRegistryEvent> = (data: E extends "query" ? QueryEvent : DataSource) => void;
|
|
19
18
|
/** Maintains registry of named data sources. */
|
|
20
19
|
declare class DataSourceRegistry {
|
|
21
20
|
private readonly sources;
|
|
@@ -139,7 +138,7 @@ declare class DataSourceRegistry {
|
|
|
139
138
|
*/
|
|
140
139
|
getAllDataSources(): DataSource[];
|
|
141
140
|
}
|
|
142
|
-
declare const dataSourceRegistry: DataSourceRegistry;
|
|
141
|
+
export declare const dataSourceRegistry: DataSourceRegistry;
|
|
143
142
|
//#endregion
|
|
144
|
-
export {
|
|
143
|
+
export {};
|
|
145
144
|
//# sourceMappingURL=data-source-registry.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"data-source-registry.d.mts","names":[],"sources":["../../../../../../../../packages/cascade/src/data-source/data-source-registry.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"data-source-registry.d.mts","names":[],"sources":["../../../../../../../../packages/cascade/src/data-source/data-source-registry.ts"],"mappings":";;;;;;;;;;;;YAeY;;;;YAUA,2BACV,UAAU,0BAA0B,4BACjC,MAAM,oBAAoB,aAAa;;cAGtC;mBACa;UACT;UACA;mBACS;;mBAEA;;mBAEA;;;;;;;;;;;;;;;;;;;;;;;;EAyBV,SACL,SAAS,mBACT;IAAS;IAA2B;MACnC;;;;;EAmEI,WAAW,QAAQ;;;;;;;EAkBnB,cACL,cACA,eAAe,oBAAoB,QAAQ,qBAC1C,QAAQ;;;;EA2BJ;;;;EAOA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoCA,GAAG,UAAU,yBAClB,OAAO,GACP,UAAU,2BAA2B;;;;;;;;;EAahC,KAAK,UAAU,yBACpB,OAAO,GACP,UAAU,2BAA2B;;;;;;;EAWhC,IAAI,UAAU,yBACnB,OAAO,GACP,UAAU,2BAA2B;;EAMhC,IAAI,gBAAgB;;;;;;;;;;;;;;;;;EAmDpB,qBAAqB;;qBAKjB,oBAAkB"}
|
|
@@ -1,13 +1,17 @@
|
|
|
1
1
|
import { DeleteStrategy, MigrationDefaults, ModelDefaults, RelationDefaults } from "../types.mjs";
|
|
2
2
|
import { DriverContract, RawQueryResult } from "../contracts/database-driver.contract.mjs";
|
|
3
3
|
import { IdGeneratorContract } from "../contracts/database-id-generator.contract.mjs";
|
|
4
|
+
import "../contracts/index.mjs";
|
|
4
5
|
//#region ../../packages/cascade/src/data-source/data-source.d.ts
|
|
5
6
|
/**
|
|
6
7
|
* Configuration options used when registering a data source.
|
|
7
8
|
*/
|
|
8
|
-
type DataSourceOptions = {
|
|
9
|
-
/** Unique name identifying the data source. */
|
|
10
|
-
|
|
9
|
+
export type DataSourceOptions = {
|
|
10
|
+
/** Unique name identifying the data source. */
|
|
11
|
+
name: string;
|
|
12
|
+
/** Driver bound to the data source. */
|
|
13
|
+
driver: DriverContract;
|
|
14
|
+
/** Whether this data source should be considered the default one. */
|
|
11
15
|
isDefault?: boolean;
|
|
12
16
|
/**
|
|
13
17
|
* Default delete strategy for models using this data source.
|
|
@@ -109,7 +113,7 @@ type DataSourceOptions = {
|
|
|
109
113
|
* const idGenerator = dataSource.idGenerator;
|
|
110
114
|
* ```
|
|
111
115
|
*/
|
|
112
|
-
declare class DataSource {
|
|
116
|
+
export declare class DataSource {
|
|
113
117
|
/** Unique name identifying this data source. */
|
|
114
118
|
readonly name: string;
|
|
115
119
|
/** Database driver for executing queries. */
|
|
@@ -176,5 +180,4 @@ declare class DataSource {
|
|
|
176
180
|
raw<T = Record<string, unknown>>(sql: string, params?: unknown[]): Promise<RawQueryResult<T>>;
|
|
177
181
|
}
|
|
178
182
|
//#endregion
|
|
179
|
-
export { DataSource, DataSourceOptions };
|
|
180
183
|
//# sourceMappingURL=data-source.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"data-source.d.mts","names":[],"sources":["../../../../../../../../packages/cascade/src/data-source/data-source.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"data-source.d.mts","names":[],"sources":["../../../../../../../../packages/cascade/src/data-source/data-source.ts"],"mappings":";;;;;;;;YAMY;;EAEV;;EAEA,QAAQ;;EAER;;;;;;;;;;;EAWA,wBAAwB;;;;;;;;;;;EAYxB;;;;;;;;;EAUA,gBAAgB,QAAQ;;;;;;;;;EAUxB,oBAAoB;;;;;;;;;;EAWpB,mBAAmB;;;;EAKnB;;;;;;;;;;;;IAYE;;;;;;IAOA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBA8BS;;WAEK;;WAGA,QAAQ;;WAGR;;WAGA,wBAAwB;;WAGxB;;WAGA,gBAAgB,QAAQ;;WAGxB,oBAAoB;;WAGpB,mBAAmB;;WAGnB;IACd;IACA;;;;;;;EAQF,YAAmB,SAAS;;;;;;;;;;;;;;;;;MA4BjB,eAAe;;;;;;;;;;;;;;;;;;;;EA4BnB,IAAI,IAAI,yBACb,aACA,qBACC,QAAQ,eAAe"}
|
|
@@ -26,7 +26,7 @@ type DirtyColumnValues = {
|
|
|
26
26
|
* // { age: { oldValue: 30, newValue: 31 } }
|
|
27
27
|
* ```
|
|
28
28
|
*/
|
|
29
|
-
declare class DatabaseDirtyTracker {
|
|
29
|
+
export declare class DatabaseDirtyTracker {
|
|
30
30
|
/**
|
|
31
31
|
* The initial raw data snapshot taken at construction or last reset.
|
|
32
32
|
* Used as the baseline for comparison.
|
|
@@ -302,5 +302,5 @@ declare class DatabaseDirtyTracker {
|
|
|
302
302
|
protected cloneData<T>(data: T): T;
|
|
303
303
|
}
|
|
304
304
|
//#endregion
|
|
305
|
-
export {
|
|
305
|
+
export {};
|
|
306
306
|
//# sourceMappingURL=database-dirty-tracker.d.mts.map
|