arkormx 2.12.9 → 2.12.11
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/cli.mjs +87 -31
- package/dist/{index-Lxl6NdHS.d.cts → index-Cot4hmHA.d.mts} +46 -2
- package/dist/{index-O3-Mi7hj.d.mts → index-DdMKdS88.d.cts} +46 -2
- package/dist/index.cjs +142 -39
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +142 -39
- package/dist/relationship/index.cjs +1 -1
- package/dist/relationship/index.d.cts +1 -1
- package/dist/relationship/index.d.mts +1 -1
- package/dist/relationship/index.mjs +1 -1
- package/dist/{relationship-D7MhPUIX.cjs → relationship-ChCzFqO1.cjs} +42 -10
- package/dist/{relationship-DZ4WJ0Si.mjs → relationship-PB57C4Pt.mjs} +42 -10
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_relationship = require('./relationship-
|
|
2
|
+
const require_relationship = require('./relationship-ChCzFqO1.cjs');
|
|
3
3
|
let pg = require("pg");
|
|
4
4
|
let node_path = require("node:path");
|
|
5
5
|
let node_fs = require("node:fs");
|
|
@@ -36,6 +36,27 @@ var QueryExecutionException = class extends require_relationship.ArkormException
|
|
|
36
36
|
//#endregion
|
|
37
37
|
//#region src/adapters/KyselyDatabaseAdapter.ts
|
|
38
38
|
/**
|
|
39
|
+
* Reads back the schema plan recorded against an applied migration.
|
|
40
|
+
*
|
|
41
|
+
* The driver hands `jsonb` back already parsed, but a `json`/`text` column (or
|
|
42
|
+
* an older pg driver) yields a string, so both are accepted. Anything else
|
|
43
|
+
* including rows written before the column existed resolves to `undefined`,
|
|
44
|
+
* which makes the consumer fall back to replaying the migration file.
|
|
45
|
+
*
|
|
46
|
+
* @param value
|
|
47
|
+
* @returns
|
|
48
|
+
*/
|
|
49
|
+
const parseRecordedMigrationOperations = (value) => {
|
|
50
|
+
if (Array.isArray(value)) return value;
|
|
51
|
+
if (typeof value !== "string") return void 0;
|
|
52
|
+
try {
|
|
53
|
+
const parsed = JSON.parse(value);
|
|
54
|
+
return Array.isArray(parsed) ? parsed : void 0;
|
|
55
|
+
} catch {
|
|
56
|
+
return;
|
|
57
|
+
}
|
|
58
|
+
};
|
|
59
|
+
/**
|
|
39
60
|
* Database adapter implementation for Kysely, allowing Arkorm to execute queries using Kysely
|
|
40
61
|
* as the underlying query builder and executor.
|
|
41
62
|
*
|
|
@@ -535,8 +556,13 @@ var KyselyDatabaseAdapter = class KyselyDatabaseAdapter {
|
|
|
535
556
|
file text not null,
|
|
536
557
|
class_name text not null,
|
|
537
558
|
applied_at timestamptz not null,
|
|
538
|
-
checksum text null
|
|
559
|
+
checksum text null,
|
|
560
|
+
operations jsonb null
|
|
539
561
|
)
|
|
562
|
+
`, executor);
|
|
563
|
+
await this.executeRawStatement(`
|
|
564
|
+
alter table ${this.quoteIdentifier(KyselyDatabaseAdapter.migrationStateTable)}
|
|
565
|
+
add column if not exists operations jsonb null
|
|
540
566
|
`, executor);
|
|
541
567
|
await this.executeRawStatement(`
|
|
542
568
|
create table if not exists ${this.quoteIdentifier(KyselyDatabaseAdapter.migrationRunTable)} (
|
|
@@ -551,8 +577,8 @@ var KyselyDatabaseAdapter = class KyselyDatabaseAdapter {
|
|
|
551
577
|
await this.executeRawStatement(`delete from ${this.quoteIdentifier(KyselyDatabaseAdapter.migrationRunTable)}`, executor);
|
|
552
578
|
await this.executeRawStatement(`delete from ${this.quoteIdentifier(KyselyDatabaseAdapter.migrationStateTable)}`, executor);
|
|
553
579
|
for (const migration of state.migrations) await kysely.sql`
|
|
554
|
-
insert into ${kysely.sql.table(KyselyDatabaseAdapter.migrationStateTable)} (id, file, class_name, applied_at, checksum)
|
|
555
|
-
values (${migration.id}, ${migration.file}, ${migration.className}, ${migration.appliedAt}, ${migration.checksum ?? null})
|
|
580
|
+
insert into ${kysely.sql.table(KyselyDatabaseAdapter.migrationStateTable)} (id, file, class_name, applied_at, checksum, operations)
|
|
581
|
+
values (${migration.id}, ${migration.file}, ${migration.className}, ${migration.appliedAt}, ${migration.checksum ?? null}, cast(${migration.operations ? JSON.stringify(migration.operations) : null} as jsonb))
|
|
556
582
|
`.execute(executor);
|
|
557
583
|
for (const run of state.runs ?? []) await kysely.sql`
|
|
558
584
|
insert into ${kysely.sql.table(KyselyDatabaseAdapter.migrationRunTable)} (id, applied_at, migration_ids)
|
|
@@ -993,6 +1019,19 @@ var KyselyDatabaseAdapter = class KyselyDatabaseAdapter {
|
|
|
993
1019
|
buildColumnReference(table, column) {
|
|
994
1020
|
return kysely.sql`${kysely.sql.table(table)}.${kysely.sql.id(column)}`;
|
|
995
1021
|
}
|
|
1022
|
+
/**
|
|
1023
|
+
* Renders the relation's source table, aliasing it when a self-referential
|
|
1024
|
+
* relation would otherwise put the same name on both sides of a correlated
|
|
1025
|
+
* subquery.
|
|
1026
|
+
*
|
|
1027
|
+
* @param sourceTable
|
|
1028
|
+
* @param table
|
|
1029
|
+
* @returns
|
|
1030
|
+
*/
|
|
1031
|
+
buildTableSource(sourceTable, table) {
|
|
1032
|
+
if (sourceTable === table) return kysely.sql`${kysely.sql.table(table)}`;
|
|
1033
|
+
return kysely.sql`${kysely.sql.table(sourceTable)} as ${kysely.sql.table(table)}`;
|
|
1034
|
+
}
|
|
996
1035
|
buildRelatedTargetFromRelation(target, relation) {
|
|
997
1036
|
const metadata = target.model?.getRelationMetadata(relation);
|
|
998
1037
|
if (!metadata) throw new require_relationship.UnsupportedAdapterFeatureException(`Relation [${relation}] could not be resolved for SQL-backed relation execution.`, {
|
|
@@ -1000,7 +1039,7 @@ var KyselyDatabaseAdapter = class KyselyDatabaseAdapter {
|
|
|
1000
1039
|
model: target.modelName,
|
|
1001
1040
|
relation
|
|
1002
1041
|
});
|
|
1003
|
-
if (metadata.type !== "hasMany" && metadata.type !== "hasOne" && metadata.type !== "belongsTo" && metadata.type !== "belongsToMany" && metadata.type !== "hasOneThrough" && metadata.type !== "hasManyThrough") throw new require_relationship.UnsupportedAdapterFeatureException(`Relation [${relation}] is not supported for SQL-backed relation execution by the Kysely adapter yet.`, {
|
|
1042
|
+
if (metadata.type !== "hasMany" && metadata.type !== "hasOne" && metadata.type !== "belongsTo" && metadata.type !== "belongsToMany" && metadata.type !== "hasOneThrough" && metadata.type !== "hasManyThrough" && metadata.type !== "morphOne" && metadata.type !== "morphMany") throw new require_relationship.UnsupportedAdapterFeatureException(`Relation [${relation}] is not supported for SQL-backed relation execution by the Kysely adapter yet.`, {
|
|
1004
1043
|
operation: "adapter.relation.metadata",
|
|
1005
1044
|
model: target.modelName,
|
|
1006
1045
|
relation,
|
|
@@ -1010,12 +1049,15 @@ var KyselyDatabaseAdapter = class KyselyDatabaseAdapter {
|
|
|
1010
1049
|
}
|
|
1011
1050
|
});
|
|
1012
1051
|
const relatedMetadata = metadata.relatedModel.getModelMetadata();
|
|
1052
|
+
const sourceTable = this.resolveMappedTable(relatedMetadata.table);
|
|
1053
|
+
const table = sourceTable === this.resolveTable(target) ? `${sourceTable}_arkorm_self` : relatedMetadata.table;
|
|
1013
1054
|
return {
|
|
1014
1055
|
metadata,
|
|
1056
|
+
sourceTable,
|
|
1015
1057
|
relatedTarget: {
|
|
1016
1058
|
model: metadata.relatedModel,
|
|
1017
1059
|
modelName: metadata.relatedModel.name,
|
|
1018
|
-
table
|
|
1060
|
+
table,
|
|
1019
1061
|
primaryKey: relatedMetadata.primaryKey,
|
|
1020
1062
|
columns: relatedMetadata.columns,
|
|
1021
1063
|
softDelete: relatedMetadata.softDelete
|
|
@@ -1025,12 +1067,12 @@ var KyselyDatabaseAdapter = class KyselyDatabaseAdapter {
|
|
|
1025
1067
|
resolveMappedTable(table) {
|
|
1026
1068
|
return this.mapping[table] ?? table;
|
|
1027
1069
|
}
|
|
1028
|
-
buildBelongsToManyJoinSource(outerTarget, relatedTarget, metadata) {
|
|
1070
|
+
buildBelongsToManyJoinSource(outerTarget, relatedTarget, metadata, sourceTable) {
|
|
1029
1071
|
const outerTable = this.resolveTable(outerTarget);
|
|
1030
1072
|
const relatedTable = this.resolveTable(relatedTarget);
|
|
1031
1073
|
const pivotTable = this.resolveMappedTable(metadata.throughTable);
|
|
1032
1074
|
return {
|
|
1033
|
-
from: kysely.sql`${
|
|
1075
|
+
from: kysely.sql`${this.buildTableSource(sourceTable, relatedTable)} inner join ${kysely.sql.table(pivotTable)} on ${this.buildColumnReference(relatedTable, this.mapColumn(relatedTarget, metadata.relatedKey))} = ${this.buildColumnReference(pivotTable, metadata.relatedPivotKey)}`,
|
|
1034
1076
|
condition: kysely.sql`
|
|
1035
1077
|
${this.buildColumnReference(pivotTable, metadata.foreignPivotKey)}
|
|
1036
1078
|
=
|
|
@@ -1038,12 +1080,12 @@ var KyselyDatabaseAdapter = class KyselyDatabaseAdapter {
|
|
|
1038
1080
|
`
|
|
1039
1081
|
};
|
|
1040
1082
|
}
|
|
1041
|
-
buildThroughJoinSource(outerTarget, relatedTarget, metadata) {
|
|
1083
|
+
buildThroughJoinSource(outerTarget, relatedTarget, metadata, sourceTable) {
|
|
1042
1084
|
const outerTable = this.resolveTable(outerTarget);
|
|
1043
1085
|
const relatedTable = this.resolveTable(relatedTarget);
|
|
1044
1086
|
const throughTable = this.resolveMappedTable(metadata.throughTable);
|
|
1045
1087
|
return {
|
|
1046
|
-
from: kysely.sql`${
|
|
1088
|
+
from: kysely.sql`${this.buildTableSource(sourceTable, relatedTable)} inner join ${kysely.sql.table(throughTable)} on ${this.buildColumnReference(relatedTable, this.mapColumn(relatedTarget, metadata.secondKey))} = ${this.buildColumnReference(throughTable, metadata.secondLocalKey)}`,
|
|
1047
1089
|
condition: kysely.sql`
|
|
1048
1090
|
${this.buildColumnReference(throughTable, metadata.firstKey)}
|
|
1049
1091
|
=
|
|
@@ -1051,12 +1093,35 @@ var KyselyDatabaseAdapter = class KyselyDatabaseAdapter {
|
|
|
1051
1093
|
`
|
|
1052
1094
|
};
|
|
1053
1095
|
}
|
|
1096
|
+
/**
|
|
1097
|
+
* The value a polymorphic child stores in its type column for this parent: the
|
|
1098
|
+
* parent model's class name, matching what the relationship writes on create
|
|
1099
|
+
* and what the set-based eager loader groups parents by.
|
|
1100
|
+
*
|
|
1101
|
+
* @param target
|
|
1102
|
+
* @param relation
|
|
1103
|
+
* @returns
|
|
1104
|
+
*/
|
|
1105
|
+
resolveMorphType(target, relation) {
|
|
1106
|
+
const morphType = target.modelName ?? target.model?.name;
|
|
1107
|
+
if (!morphType) throw new require_relationship.UnsupportedAdapterFeatureException(`Relation [${relation}] needs a named parent model to resolve its polymorphic type.`, {
|
|
1108
|
+
operation: "adapter.relation.metadata",
|
|
1109
|
+
model: target.modelName,
|
|
1110
|
+
relation,
|
|
1111
|
+
meta: {
|
|
1112
|
+
feature: "relationFilters",
|
|
1113
|
+
relationType: "morph"
|
|
1114
|
+
}
|
|
1115
|
+
});
|
|
1116
|
+
return morphType;
|
|
1117
|
+
}
|
|
1054
1118
|
buildRelatedJoinCondition(outerTarget, relation) {
|
|
1055
|
-
const { metadata, relatedTarget } = this.buildRelatedTargetFromRelation(outerTarget, relation);
|
|
1119
|
+
const { metadata, relatedTarget, sourceTable } = this.buildRelatedTargetFromRelation(outerTarget, relation);
|
|
1056
1120
|
const outerTable = this.resolveTable(outerTarget);
|
|
1057
1121
|
const relatedTable = this.resolveTable(relatedTarget);
|
|
1122
|
+
const relatedFrom = this.buildTableSource(sourceTable, relatedTable);
|
|
1058
1123
|
if (metadata.type === "belongsToMany") {
|
|
1059
|
-
const joinSource = this.buildBelongsToManyJoinSource(outerTarget, relatedTarget, metadata);
|
|
1124
|
+
const joinSource = this.buildBelongsToManyJoinSource(outerTarget, relatedTarget, metadata, sourceTable);
|
|
1060
1125
|
return {
|
|
1061
1126
|
relatedTarget,
|
|
1062
1127
|
from: joinSource.from,
|
|
@@ -1064,7 +1129,7 @@ var KyselyDatabaseAdapter = class KyselyDatabaseAdapter {
|
|
|
1064
1129
|
};
|
|
1065
1130
|
}
|
|
1066
1131
|
if (metadata.type === "hasOneThrough" || metadata.type === "hasManyThrough") {
|
|
1067
|
-
const joinSource = this.buildThroughJoinSource(outerTarget, relatedTarget, metadata);
|
|
1132
|
+
const joinSource = this.buildThroughJoinSource(outerTarget, relatedTarget, metadata, sourceTable);
|
|
1068
1133
|
return {
|
|
1069
1134
|
relatedTarget,
|
|
1070
1135
|
from: joinSource.from,
|
|
@@ -1073,16 +1138,29 @@ var KyselyDatabaseAdapter = class KyselyDatabaseAdapter {
|
|
|
1073
1138
|
}
|
|
1074
1139
|
if (metadata.type === "hasMany" || metadata.type === "hasOne") return {
|
|
1075
1140
|
relatedTarget,
|
|
1076
|
-
from:
|
|
1141
|
+
from: relatedFrom,
|
|
1077
1142
|
condition: kysely.sql`
|
|
1078
1143
|
${this.buildColumnReference(relatedTable, this.mapColumn(relatedTarget, metadata.foreignKey))}
|
|
1079
1144
|
=
|
|
1080
1145
|
${this.buildColumnReference(outerTable, this.mapColumn(outerTarget, metadata.localKey))}
|
|
1081
1146
|
`
|
|
1082
1147
|
};
|
|
1148
|
+
if (metadata.type === "morphOne" || metadata.type === "morphMany") return {
|
|
1149
|
+
relatedTarget,
|
|
1150
|
+
from: relatedFrom,
|
|
1151
|
+
condition: kysely.sql`
|
|
1152
|
+
${this.buildColumnReference(relatedTable, this.mapColumn(relatedTarget, metadata.morphIdColumn))}
|
|
1153
|
+
=
|
|
1154
|
+
${this.buildColumnReference(outerTable, this.mapColumn(outerTarget, metadata.localKey))}
|
|
1155
|
+
and
|
|
1156
|
+
${this.buildColumnReference(relatedTable, this.mapColumn(relatedTarget, metadata.morphTypeColumn))}
|
|
1157
|
+
=
|
|
1158
|
+
${this.resolveMorphType(outerTarget, relation)}
|
|
1159
|
+
`
|
|
1160
|
+
};
|
|
1083
1161
|
return {
|
|
1084
1162
|
relatedTarget,
|
|
1085
|
-
from:
|
|
1163
|
+
from: relatedFrom,
|
|
1086
1164
|
condition: kysely.sql`
|
|
1087
1165
|
${this.buildColumnReference(relatedTable, this.mapColumn(relatedTarget, metadata.ownerKey))}
|
|
1088
1166
|
=
|
|
@@ -1752,7 +1830,7 @@ var KyselyDatabaseAdapter = class KyselyDatabaseAdapter {
|
|
|
1752
1830
|
async readAppliedMigrationsState() {
|
|
1753
1831
|
await this.ensureMigrationStateTables();
|
|
1754
1832
|
const migrationsResult = await kysely.sql`
|
|
1755
|
-
select id, file, class_name, applied_at, checksum
|
|
1833
|
+
select id, file, class_name, applied_at, checksum, operations
|
|
1756
1834
|
from ${kysely.sql.table(KyselyDatabaseAdapter.migrationStateTable)}
|
|
1757
1835
|
order by applied_at asc, id asc
|
|
1758
1836
|
`.execute(this.db);
|
|
@@ -1768,7 +1846,8 @@ var KyselyDatabaseAdapter = class KyselyDatabaseAdapter {
|
|
|
1768
1846
|
file: row.file,
|
|
1769
1847
|
className: row.class_name,
|
|
1770
1848
|
appliedAt: row.applied_at instanceof Date ? row.applied_at.toISOString() : String(row.applied_at),
|
|
1771
|
-
checksum: row.checksum ?? void 0
|
|
1849
|
+
checksum: row.checksum ?? void 0,
|
|
1850
|
+
operations: parseRecordedMigrationOperations(row.operations)
|
|
1772
1851
|
})),
|
|
1773
1852
|
runs: runsResult.rows.map((row) => ({
|
|
1774
1853
|
id: row.id,
|
|
@@ -4017,13 +4096,18 @@ var MigrateCommand = class extends _h3ravel_musket.Command {
|
|
|
4017
4096
|
if (!appliedMigrationState) return true;
|
|
4018
4097
|
const identity = require_relationship.buildMigrationIdentity(file, migrationClass.name);
|
|
4019
4098
|
const checksum = require_relationship.computeMigrationChecksum(file);
|
|
4020
|
-
const
|
|
4021
|
-
|
|
4022
|
-
|
|
4099
|
+
const recorded = require_relationship.findAppliedMigration(appliedMigrationState, identity);
|
|
4100
|
+
const alreadyApplied = useDatabaseMigrations ? Boolean(recorded) : require_relationship.isMigrationApplied(appliedMigrationState, identity, checksum);
|
|
4101
|
+
if (alreadyApplied) skipped.push([
|
|
4102
|
+
migrationClass,
|
|
4103
|
+
file,
|
|
4104
|
+
Boolean(recorded?.checksum) && recorded?.checksum !== checksum
|
|
4105
|
+
]);
|
|
4106
|
+
else if (recorded) changed.push([migrationClass, file]);
|
|
4023
4107
|
return !alreadyApplied;
|
|
4024
4108
|
});
|
|
4025
|
-
skipped.forEach(([migrationClass, file]) => {
|
|
4026
|
-
this.success(this.app.splitLogger("Skipped", `${file} (${migrationClass.name})`));
|
|
4109
|
+
skipped.forEach(([migrationClass, file, drifted]) => {
|
|
4110
|
+
this.success(this.app.splitLogger("Skipped", `${file} (${migrationClass.name})${drifted ? " [changed since applied]" : ""}`));
|
|
4027
4111
|
});
|
|
4028
4112
|
changed.forEach(([migrationClass, file]) => {
|
|
4029
4113
|
this.success(this.app.splitLogger("Changed", `${file} (${migrationClass.name})`));
|
|
@@ -4040,7 +4124,9 @@ var MigrateCommand = class extends _h3ravel_musket.Command {
|
|
|
4040
4124
|
return;
|
|
4041
4125
|
}
|
|
4042
4126
|
let columnMappingsState = require_relationship.createEmptyPersistedColumnMappingsState();
|
|
4043
|
-
|
|
4127
|
+
const executedPlans = /* @__PURE__ */ new Map();
|
|
4128
|
+
for (const [MigrationClassItem, file] of pending) {
|
|
4129
|
+
const identity = require_relationship.buildMigrationIdentity(file, MigrationClassItem.name);
|
|
4044
4130
|
if (useDatabaseMigrations) {
|
|
4045
4131
|
const planned = await this.runWithDatabaseCreationRetry(adapter, () => require_relationship.getMigrationPlan(MigrationClassItem, "up", { inert: true }));
|
|
4046
4132
|
if (!planned.ok) return;
|
|
@@ -4050,13 +4136,16 @@ var MigrateCommand = class extends _h3ravel_musket.Command {
|
|
|
4050
4136
|
this.error(`Error: ${error instanceof Error ? error.message : String(error)}`);
|
|
4051
4137
|
return;
|
|
4052
4138
|
}
|
|
4053
|
-
|
|
4139
|
+
const applied = await this.runWithDatabaseCreationRetry(adapter, () => require_relationship.applyMigrationToDatabase(adapter, MigrationClassItem));
|
|
4140
|
+
if (!applied.ok) return;
|
|
4141
|
+
executedPlans.set(identity, applied.value.operations);
|
|
4054
4142
|
continue;
|
|
4055
4143
|
}
|
|
4056
|
-
await require_relationship.applyMigrationToPrismaSchema(MigrationClassItem, {
|
|
4144
|
+
const applied = await require_relationship.applyMigrationToPrismaSchema(MigrationClassItem, {
|
|
4057
4145
|
schemaPath,
|
|
4058
4146
|
write: true
|
|
4059
4147
|
});
|
|
4148
|
+
executedPlans.set(identity, applied.operations);
|
|
4060
4149
|
}
|
|
4061
4150
|
if (appliedMigrationState) {
|
|
4062
4151
|
const runAppliedIds = [];
|
|
@@ -4067,7 +4156,8 @@ var MigrateCommand = class extends _h3ravel_musket.Command {
|
|
|
4067
4156
|
file,
|
|
4068
4157
|
className: migrationClass.name,
|
|
4069
4158
|
appliedAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
4070
|
-
checksum: require_relationship.computeMigrationChecksum(file)
|
|
4159
|
+
checksum: require_relationship.computeMigrationChecksum(file),
|
|
4160
|
+
operations: executedPlans.get(identity)
|
|
4071
4161
|
});
|
|
4072
4162
|
runAppliedIds.push(identity);
|
|
4073
4163
|
}
|
|
@@ -4256,23 +4346,32 @@ var MigrateFreshCommand = class extends _h3ravel_musket.Command {
|
|
|
4256
4346
|
}
|
|
4257
4347
|
let appliedState = require_relationship.createEmptyAppliedMigrationsState();
|
|
4258
4348
|
if (!(await this.runWithDatabaseCreationRetry(adapter, () => require_relationship.writeAppliedMigrationsStateToStore(adapter, stateFilePath, appliedState))).ok) return;
|
|
4259
|
-
|
|
4349
|
+
const executedPlans = /* @__PURE__ */ new Map();
|
|
4350
|
+
for (const [MigrationClassItem, file] of migrations) {
|
|
4351
|
+
const identity = require_relationship.buildMigrationIdentity(file, MigrationClassItem.name);
|
|
4260
4352
|
if (useDatabaseMigrations) {
|
|
4261
|
-
|
|
4353
|
+
const applied = await this.runWithDatabaseCreationRetry(adapter, () => require_relationship.applyMigrationToDatabase(adapter, MigrationClassItem));
|
|
4354
|
+
if (!applied.ok) return;
|
|
4355
|
+
executedPlans.set(identity, applied.value.operations);
|
|
4262
4356
|
continue;
|
|
4263
4357
|
}
|
|
4264
|
-
await require_relationship.applyMigrationToPrismaSchema(MigrationClassItem, {
|
|
4358
|
+
const applied = await require_relationship.applyMigrationToPrismaSchema(MigrationClassItem, {
|
|
4265
4359
|
schemaPath,
|
|
4266
4360
|
write: true
|
|
4267
4361
|
});
|
|
4362
|
+
executedPlans.set(identity, applied.operations);
|
|
4363
|
+
}
|
|
4364
|
+
for (const [migrationClass, file] of migrations) {
|
|
4365
|
+
const identity = require_relationship.buildMigrationIdentity(file, migrationClass.name);
|
|
4366
|
+
appliedState = require_relationship.markMigrationApplied(appliedState, {
|
|
4367
|
+
id: identity,
|
|
4368
|
+
file,
|
|
4369
|
+
className: migrationClass.name,
|
|
4370
|
+
appliedAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
4371
|
+
checksum: require_relationship.computeMigrationChecksum(file),
|
|
4372
|
+
operations: executedPlans.get(identity)
|
|
4373
|
+
});
|
|
4268
4374
|
}
|
|
4269
|
-
for (const [migrationClass, file] of migrations) appliedState = require_relationship.markMigrationApplied(appliedState, {
|
|
4270
|
-
id: require_relationship.buildMigrationIdentity(file, migrationClass.name),
|
|
4271
|
-
file,
|
|
4272
|
-
className: migrationClass.name,
|
|
4273
|
-
appliedAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
4274
|
-
checksum: require_relationship.computeMigrationChecksum(file)
|
|
4275
|
-
});
|
|
4276
4375
|
appliedState = require_relationship.markMigrationRun(appliedState, {
|
|
4277
4376
|
id: require_relationship.buildMigrationRunId(),
|
|
4278
4377
|
appliedAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
@@ -4482,7 +4581,7 @@ var MigrationHistoryCommand = class extends _h3ravel_musket.Command {
|
|
|
4482
4581
|
{--state-file= : Path to applied migration state file}
|
|
4483
4582
|
{--reset : Clear tracked migration history file}
|
|
4484
4583
|
{--delete : Delete tracked migration history file}
|
|
4485
|
-
{--json : Print
|
|
4584
|
+
{--json : Print JSON output (without each migration's recorded schema plan)}
|
|
4486
4585
|
`;
|
|
4487
4586
|
this.description = "Inspect or reset tracked migration history";
|
|
4488
4587
|
}
|
|
@@ -4518,7 +4617,11 @@ var MigrationHistoryCommand = class extends _h3ravel_musket.Command {
|
|
|
4518
4617
|
if (this.option("json")) {
|
|
4519
4618
|
this.success(JSON.stringify({
|
|
4520
4619
|
path: usesDatabaseState ? "database" : stateFilePath,
|
|
4521
|
-
...state
|
|
4620
|
+
...state,
|
|
4621
|
+
migrations: state.migrations.map(({ operations: _operations, ...migration }) => ({
|
|
4622
|
+
...migration,
|
|
4623
|
+
hasRecordedPlan: Array.isArray(_operations)
|
|
4624
|
+
}))
|
|
4522
4625
|
}, null, 2));
|
|
4523
4626
|
return;
|
|
4524
4627
|
}
|
|
@@ -8755,7 +8858,7 @@ var QueryBuilder = class QueryBuilder {
|
|
|
8755
8858
|
}
|
|
8756
8859
|
isSqlRelationFeatureMetadata(metadata) {
|
|
8757
8860
|
if (!metadata) return false;
|
|
8758
|
-
return metadata.type === "hasMany" || metadata.type === "hasOne" || metadata.type === "belongsTo" || metadata.type === "belongsToMany" || metadata.type === "hasOneThrough" || metadata.type === "hasManyThrough";
|
|
8861
|
+
return metadata.type === "hasMany" || metadata.type === "hasOne" || metadata.type === "belongsTo" || metadata.type === "belongsToMany" || metadata.type === "hasOneThrough" || metadata.type === "hasManyThrough" || metadata.type === "morphOne" || metadata.type === "morphMany";
|
|
8759
8862
|
}
|
|
8760
8863
|
async filterModelsByRelationConstraints(models, relationCache, baseIds) {
|
|
8761
8864
|
return (await Promise.all(models.map(async (model) => {
|
package/dist/index.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as buildPrimaryKeyLine, $a as ModelStatic, $c as SchemaTableDropOperation, $i as DelegateFindManyArgs, $n as getModel, $o as fromExpressionNode, $r as InsertSpec, $s as FactoryRelationshipResolver, $t as createEmptyPersistedColumnMappingsState, A as isQuerySchemaLike, Aa as PrismaTransactionCapableClient, Ac as MorphedByManyRelationMetadata, Ai as RawQuerySpec, An as EnumBuilder, Ao as ModelRelationshipKey, Ar as createPrismaDatabaseAdapter, As as RelationDefaultResolver, At as computeMigrationChecksum, B as applyCreateTableOperation, Ba as QuerySchemaUniqueWhere, Bc as MigrationInstanceLike, Bi as UpsertSpec, Bn as MigrateCommand, Bo as Model, Br as AdapterQueryOperation, Bs as RelatedModelForRelationship, Bt as readAppliedMigrationsState, C as getRuntimeClient, Ca as PrismaLikeInclude, Cc as HasOneRelationMetadata, Ci as QueryNotCondition, Cn as MissingDelegateException, Co as ModelEventDispatcher, Cr as Seeder, Ct as supportsDatabaseCreation, D as getRuntimePrismaClient, Da as PrismaLikeSortOrder, Dc as MorphOneRelationMetadata, Di as QuerySelectColumn, Dn as MIGRATION_BRAND, Do as ModelEventName, Dr as PrismaDatabaseAdapter, Ds as RelationAggregateType, Dt as toModelName, E as getRuntimePaginationURLDriverFactory, Ea as PrismaLikeSelect, Ec as MorphManyRelationMetadata, Ei as QueryScalarComparisonOperator, En as DB, Eo as ModelEventListener, Er as SeederInput, Es as RelationAggregateInput, Et as toMigrationFileSlug, F as PrimaryKeyGenerationPlanner, Fa as QuerySchemaInclude, Fc as AppliedMigrationRun, Fi as SelectSpec, Fn as SeedCommand, Fo as QuerySchemaForModelInstance, Fr as AdapterDatabaseCreationResult, Fs as RelationTableLookupSpec, Ft as getLastMigrationRun, G as applyMigrationToPrismaSchema, Ga as RuntimeClientLike, Gc as SchemaColumnType, Gi as ArkormDebugEvent, Gn as InitCommand, Go as JsonExpression, Gr as DatabaseAdapter, Gs as Paginator, Gt as writeAppliedMigrationsState, H as applyMigrationRollbackToDatabase, Ha as QuerySchemaUpdateData, Hc as PrismaMigrationWorkflowOptions, Hi as AdapterQueryInspection, Hn as MakeModelCommand, Ho as CaseExpression, Hr as AggregateOperation, Hs as WhereCallback, Ht as removeAppliedMigration, I as PRISMA_ENUM_MEMBER_REGEX, Ia as QuerySchemaOrderBy, Ic as AppliedMigrationsState, Ii as SoftDeleteQueryMode, In as ModelsSyncCommand, Io as RegisteredModelClass, Ir as AdapterInspectionRequest, Is as EagerLoadQueryForRelationship, It as getLatestAppliedMigrations, J as buildFieldLine, Ja as SoftDeleteConfig, Jc as SchemaIndex, Ji as CastHandler, Jn as resolveCast, Jo as coalesce, Jr as DatabaseRows, Js as FactoryAttributes, Jt as PersistedMetadataFeatures, K as applyOperationsToPrismaSchema, Ka as Serializable, Kc as SchemaForeignKey, Ki as ArkormDebugHandler, Kn as DbCommand, Ko as avg, Kr as DatabasePrimitive, Ks as ArkormCollection, Kt as writeAppliedMigrationsStateToStore, L as PRISMA_ENUM_REGEX, La as QuerySchemaRow, Lc as GenerateMigrationOptions, Li as SortDirection, Ln as MigrationHistoryCommand, Lo as RegisteredModelInstance, Lr as AdapterModelFieldStructure, Ls as EagerLoadRelations, Lt as isMigrationApplied, M as loadArkormConfig, Ma as PrismaTransactionOptions, Mc as RelationMetadata, Mi as RelationFilterSpec, Mn as GeneratedColumnExpression, Mo as ModelUpdateData, Mr as createKyselyAdapter, Ms as RelationMetadataProvider, Mt as deleteAppliedMigrationsStateFromStore, N as resetArkormRuntimeForTests, Na as QuerySchemaCreateData, Nc as RelationMetadataType, Ni as RelationLoadPlan, Nn as resolveGeneratedExpression, No as ModelWhereInput, Nr as AdapterCapabilities, Ns as RelationResult, Nt as findAppliedMigration, O as getUserConfig, Oa as PrismaLikeWhereInput, Oc as MorphToManyRelationMetadata, Oi as QueryTarget, On as Migration, Oo as ModelLifecycleState, Or as PrismaDelegateNameMapping, Os as RelationColumnLookupSpec, Ot as buildMigrationIdentity, P as runArkormTransaction, Pa as QuerySchemaFindManyArgs, Pc as AppliedMigrationEntry, Pi as RelationLoadSpec, Pn as ForeignKeyBuilder, Po as QuerySchemaForModel, Pr as AdapterCapability, Ps as RelationResultCache, Pt as getLastBatchMigrations, Q as buildModelBlock, Qa as TransactionOptions, Qc as SchemaTableCreateOperation, Qi as DelegateCreateData, Qn as Arkormx, Qo as fn, Qr as InsertManySpec, Qs as FactoryModelConstructor, Qt as applyOperationsToPersistedColumnMappingsState, R as PRISMA_MODEL_REGEX, Ra as QuerySchemaRows, Rc as GeneratedMigrationFile, Ri as UpdateManySpec, Rn as MigrateRollbackCommand, Ro as RegisteredModelName, Rr as AdapterModelIntrospectionOptions, Rs as JoinOn, Rt as markMigrationApplied, S as getRuntimeAdapter, Sa as PrismaFindManyArgsLike, Sc as HasManyThroughRelationMetadata, Si as QueryLogicalOperator, Sn as ModelNotFoundException, So as ModelDeclaredAttributeKey, Sr as SEEDER_BRAND, St as stripPrismaSchemaModelsAndEnums, T as getRuntimePaginationCurrentPageResolver, Ta as PrismaLikeScalarFilter, Tc as ModelMetadata, Ti as QueryRawCondition, Tn as ArkormException, To as ModelEventHandlerConstructor, Tr as SeederConstructor, Ts as RelationAggregateConstraint, Tt as supportsDatabaseReset, U as applyMigrationRollbackToPrismaSchema, Ua as QuerySchemaWhere, Uc as PrismaSchemaSyncOptions, Ui as ArkormBootContext, Un as MakeMigrationCommand, Uo as Expression, Ur as AggregateSelection, Us as JoinClause, Ut as resolveMigrationStateFilePath, V as applyDropTableOperation, Va as QuerySchemaUpdateArgs, Vc as PrimaryKeyGeneration, Vi as AdapterBindableModel, Vn as MakeSeederCommand, Vo as AggregateExpression, Vr as AdapterTransactionContext, Vs as RelatedModelFromResult, Vt as readAppliedMigrationsStateFromStore, W as applyMigrationToDatabase, Wa as RawSelectInput, Wc as SchemaColumn, Wi as ArkormConfig, Wn as MakeFactoryCommand, Wo as ExpressionBuilder, Wr as AggregateSpec, Ws as LengthAwarePaginator, Wt as supportsDatabaseMigrationState, X as buildInverseRelationLine, Xa as TransactionCapableClient, Xc as SchemaPrimaryKey, Xi as CastType, Xn as AttributeOptions, Xo as count, Xr as DeleteManySpec, Xs as FactoryDefinition, Xt as PersistedTableMetadata, Y as buildIndexLine, Ya as TransactionCallback, Yc as SchemaOperation, Yi as CastMap, Yn as Attribute, Yo as col, Yr as DatabaseValue, Ys as FactoryCallback, Yt as PersistedPrimaryKeyGeneration, Z as buildMigrationSource, Za as TransactionContext, Zc as SchemaTableAlterOperation, Zi as ClientResolver, Zn as Arkorm, Zo as expressionBuilder, Zr as DeleteSpec, Zs as FactoryDefinitionAttributes, Zt as PersistedTimestampColumn, _ as emitRuntimeDebugEvent, _a as PaginationOptions, _c as DatabaseTablePersistedMetadataOptions, _i as QueryJoinRawConstraint, _n as ScopeNotDefinedException, _o as GlobalScope, _r as registerModels, _t as resolveEnumName, a as getRuntimeCompatibilityAdapter, aa as DelegateUniqueWhere, ac as CaseExpressionNode, ai as QueryDayCondition, an as getPersistedTableMetadata, ao as GroupByAggregateSpec, ar as RuntimePathMap, as as val, at as deriveRelationAlias, b as getActiveTransactionClient, ba as PrismaClientLike, bc as ColumnMap, bi as QueryJsonCondition, bn as QueryExecutionExceptionContext, bo as ModelAttributesOf, br as resetRuntimeRegistryForTests, bt as runMigrationWithPrisma, c as PrismaDelegateMap, ca as DelegateWhere, cc as ExpressionJsonCast, ci as QueryFullTextCondition, cn as rebuildPersistedColumnMappingsState, co as ArkormModelRegistry, cr as getRegisteredModels, cs as ModelFactory, ct as escapeRegex, d as inferDelegateName, da as GetUserConfig, dc as InExpressionNode, di as QueryJoin, dn as resolvePersistedMetadataFeatures, do as AttributeQuerySchema, dr as loadFactoriesFrom, dt as formatDefaultValue, ea as DelegateInclude, ec as FactoryState, ei as PartitionedSelectSpec, el as SchemaUniqueConstraint, en as deletePersistedColumnMappingsState, eo as RelationshipModelStatic, er as RegisteredFactory, es as json, et as buildRelationLine, f as awaitConfiguredModelsRegistration, fa as ModelQuerySchemaLike, fc as JsonExpressionNode, fi as QueryJoinBoolean, fn as syncPersistedColumnMappingsFromState, fo as AttributeSchemaDelegate, fr as loadMigrationsFrom, ft as formatEnumDefaultValue, g as disposeArkormRuntime, ga as PaginationMeta, gc as DatabaseTableOptions, gi as QueryJoinNullConstraint, gn as UniqueConstraintResolutionException, go as DelegateForModelSchema, gr as registerMigrations, gt as pad, h as defineConfig, ha as PaginationCurrentPageResolver, hc as ValueExpressionNode, hi as QueryJoinNestedConstraint, hn as UnsupportedAdapterFeatureException, ho as AttributeWhereInput, hr as registerFactories, ht as getMigrationPlan, i as RuntimeModuleLoader, ia as DelegateSelect, ic as CaseExpressionBranch, ii as QueryCondition, in as getPersistedPrimaryKeyGeneration, io as GroupByAggregateRow, ir as RuntimePathKey, is as sum, it as deriveInverseRelationAlias, j as isTransactionCapableClient, ja as PrismaTransactionContext, jc as PivotModelStatic, ji as RelationAggregateSpec, jn as TableBuilder, jo as ModelRelationshipResult, jr as KyselyDatabaseAdapter, js as RelationDefaultValue, jt as createEmptyAppliedMigrationsState, k as isDelegateLike, ka as PrismaTransactionCallback, kc as MorphToRelationMetadata, ki as QueryTimeCondition, kn as SchemaBuilder, ko as ModelOrderByInput, kr as createPrismaCompatibilityAdapter, ks as RelationConstraint, kt as buildMigrationRunId, l as createPrismaAdapter, la as EagerLoadConstraint, lc as ExpressionNode, li as QueryGroupByItem, ln as resetPersistedColumnMappingsCache, lo as AttributeCreateInput, lr as getRegisteredPaths, ls as defineFactory, lt as findEnumBlock, m as configureArkormRuntime, ma as NamingCase, mc as RawExpressionNode, mi as QueryJoinConstraint, mn as writePersistedColumnMappingsState, mo as AttributeUpdateInput, mr as loadSeedersFrom, mt as generateMigrationFile, n as PivotModel, na as DelegateRow, nc as AggregateExpressionNode, ni as QueryComparisonCondition, nl as TimestampNames, nn as getPersistedEnumMap, no as EachCallback, nr as RuntimeConstructor, ns as min, nt as createMigrationTimestamp, o as resolveRuntimeCompatibilityQuerySchema, oa as DelegateUpdateArgs, oc as ColumnExpressionNode, oi as QueryExistsCondition, on as getPersistedTimestampColumns, oo as QueryBuilder, or as getRegisteredFactories, os as where, ot as deriveRelationFieldName, p as bindAdapterToModels, pa as ModelTableCase, pc as NullCheckExpressionNode, pi as QueryJoinColumnConstraint, pn as validatePersistedMetadataFeaturesForMigrations, po as AttributeSelect, pr as loadModelsFrom, pt as formatRelationAction, q as buildEnumBlock, qa as SimplePaginationMeta, qc as SchemaForeignKeyAction, qi as CastDefinition, qn as CliApp, qo as caseWhen, qr as DatabaseRow, qs as FactoryAttributeResolver, qt as PersistedColumnMappingsState, r as LoadedRuntimeModule, ra as DelegateRows, rc as BinaryExpressionNode, ri as QueryComparisonOperator, rl as TimestampNaming, rn as getPersistedEnumTsType, ro as ExpressionSelectMap, rr as RuntimePathInput, rs as raw, rt as deriveCollectionFieldName, s as resolveRuntimeCompatibilityQuerySchemaOrThrow, sa as DelegateUpdateData, sc as ExpressionBinaryOperator, si as QueryExpressionCondition, sn as readPersistedColumnMappingsState, so as ArkormModelNameRegistry, sr as getRegisteredMigrations, ss as InlineFactory, st as deriveSingularFieldName, t as URLDriver, ta as DelegateOrderBy, tc as MaybePromise, ti as QueryColumnComparisonCondition, tl as TimestampColumnBehavior, tn as getPersistedColumnMap, to as ChunkCallback, tr as RegisteredModel, ts as max, tt as buildUniqueConstraintLine, u as createPrismaDelegateMap, ua as EagerLoadMap, uc as FunctionExpressionNode, ui as QueryGroupCondition, un as resolveColumnMappingsFilePath, uo as AttributeOrderBy, ur as getRegisteredSeeders, ut as findModelBlock, v as ensureArkormConfigLoading, va as PaginationURLDriver, vc as BelongsToManyRelationMetadata, vi as QueryJoinType, vn as RelationResolutionException, vo as ModelAttributeValue, vr as registerPaths, vt as resolveMigrationClassName, w as getRuntimeDebugHandler, wa as PrismaLikeOrderBy, wc as HasOneThroughRelationMetadata, wi as QueryOrderBy, wn as ArkormErrorContext, wo as ModelEventHandler, wr as SeederCallArgument, wt as supportsDatabaseMigrationExecution, x as getDefaultStubsPath, xa as PrismaDelegateLike, xc as HasManyRelationMetadata, xi as QueryJsonConditionKind, xn as QueryConstraintException, xo as ModelCreateData, xr as resolveRegisteredModel, xt as runPrismaCommand, y as getActiveTransactionAdapter, ya as PaginationURLDriverFactory, yc as BelongsToRelationMetadata, yi as QueryJoinValueConstraint, yn as QueryExecutionException, yo as ModelAttributes, yr as registerSeeders, yt as resolvePrismaType, z as applyAlterTableOperation, za as QuerySchemaSelect, zc as MigrationClass, zi as UpdateSpec, zn as MigrateFreshCommand, zo as RelatedModelClass, zr as AdapterModelStructure, zs as JoinSource, zt as markMigrationRun } from "./index-Lxl6NdHS.cjs";
|
|
1
|
+
import { $ as buildPrimaryKeyLine, $a as ModelStatic, $c as SchemaTableDropOperation, $i as DelegateFindManyArgs, $n as getModel, $o as fromExpressionNode, $r as InsertSpec, $s as FactoryRelationshipResolver, $t as createEmptyPersistedColumnMappingsState, A as isQuerySchemaLike, Aa as PrismaTransactionCapableClient, Ac as MorphedByManyRelationMetadata, Ai as RawQuerySpec, An as EnumBuilder, Ao as ModelRelationshipKey, Ar as createPrismaDatabaseAdapter, As as RelationDefaultResolver, At as computeMigrationChecksum, B as applyCreateTableOperation, Ba as QuerySchemaUniqueWhere, Bc as MigrationInstanceLike, Bi as UpsertSpec, Bn as MigrateCommand, Bo as Model, Br as AdapterQueryOperation, Bs as RelatedModelForRelationship, Bt as readAppliedMigrationsState, C as getRuntimeClient, Ca as PrismaLikeInclude, Cc as HasOneRelationMetadata, Ci as QueryNotCondition, Cn as MissingDelegateException, Co as ModelEventDispatcher, Cr as Seeder, Ct as supportsDatabaseCreation, D as getRuntimePrismaClient, Da as PrismaLikeSortOrder, Dc as MorphOneRelationMetadata, Di as QuerySelectColumn, Dn as MIGRATION_BRAND, Do as ModelEventName, Dr as PrismaDatabaseAdapter, Ds as RelationAggregateType, Dt as toModelName, E as getRuntimePaginationURLDriverFactory, Ea as PrismaLikeSelect, Ec as MorphManyRelationMetadata, Ei as QueryScalarComparisonOperator, En as DB, Eo as ModelEventListener, Er as SeederInput, Es as RelationAggregateInput, Et as toMigrationFileSlug, F as PrimaryKeyGenerationPlanner, Fa as QuerySchemaInclude, Fc as AppliedMigrationRun, Fi as SelectSpec, Fn as SeedCommand, Fo as QuerySchemaForModelInstance, Fr as AdapterDatabaseCreationResult, Fs as RelationTableLookupSpec, Ft as getLastMigrationRun, G as applyMigrationToPrismaSchema, Ga as RuntimeClientLike, Gc as SchemaColumnType, Gi as ArkormDebugEvent, Gn as InitCommand, Go as JsonExpression, Gr as DatabaseAdapter, Gs as Paginator, Gt as writeAppliedMigrationsState, H as applyMigrationRollbackToDatabase, Ha as QuerySchemaUpdateData, Hc as PrismaMigrationWorkflowOptions, Hi as AdapterQueryInspection, Hn as MakeModelCommand, Ho as CaseExpression, Hr as AggregateOperation, Hs as WhereCallback, Ht as removeAppliedMigration, I as PRISMA_ENUM_MEMBER_REGEX, Ia as QuerySchemaOrderBy, Ic as AppliedMigrationsState, Ii as SoftDeleteQueryMode, In as ModelsSyncCommand, Io as RegisteredModelClass, Ir as AdapterInspectionRequest, Is as EagerLoadQueryForRelationship, It as getLatestAppliedMigrations, J as buildFieldLine, Ja as SoftDeleteConfig, Jc as SchemaIndex, Ji as CastHandler, Jn as resolveCast, Jo as coalesce, Jr as DatabaseRows, Js as FactoryAttributes, Jt as PersistedMetadataFeatures, K as applyOperationsToPrismaSchema, Ka as Serializable, Kc as SchemaForeignKey, Ki as ArkormDebugHandler, Kn as DbCommand, Ko as avg, Kr as DatabasePrimitive, Ks as ArkormCollection, Kt as writeAppliedMigrationsStateToStore, L as PRISMA_ENUM_REGEX, La as QuerySchemaRow, Lc as GenerateMigrationOptions, Li as SortDirection, Ln as MigrationHistoryCommand, Lo as RegisteredModelInstance, Lr as AdapterModelFieldStructure, Ls as EagerLoadRelations, Lt as isMigrationApplied, M as loadArkormConfig, Ma as PrismaTransactionOptions, Mc as RelationMetadata, Mi as RelationFilterSpec, Mn as GeneratedColumnExpression, Mo as ModelUpdateData, Mr as createKyselyAdapter, Ms as RelationMetadataProvider, Mt as deleteAppliedMigrationsStateFromStore, N as resetArkormRuntimeForTests, Na as QuerySchemaCreateData, Nc as RelationMetadataType, Ni as RelationLoadPlan, Nn as resolveGeneratedExpression, No as ModelWhereInput, Nr as AdapterCapabilities, Ns as RelationResult, Nt as findAppliedMigration, O as getUserConfig, Oa as PrismaLikeWhereInput, Oc as MorphToManyRelationMetadata, Oi as QueryTarget, On as Migration, Oo as ModelLifecycleState, Or as PrismaDelegateNameMapping, Os as RelationColumnLookupSpec, Ot as buildMigrationIdentity, P as runArkormTransaction, Pa as QuerySchemaFindManyArgs, Pc as AppliedMigrationEntry, Pi as RelationLoadSpec, Pn as ForeignKeyBuilder, Po as QuerySchemaForModel, Pr as AdapterCapability, Ps as RelationResultCache, Pt as getLastBatchMigrations, Q as buildModelBlock, Qa as TransactionOptions, Qc as SchemaTableCreateOperation, Qi as DelegateCreateData, Qn as Arkormx, Qo as fn, Qr as InsertManySpec, Qs as FactoryModelConstructor, Qt as applyOperationsToPersistedColumnMappingsState, R as PRISMA_MODEL_REGEX, Ra as QuerySchemaRows, Rc as GeneratedMigrationFile, Ri as UpdateManySpec, Rn as MigrateRollbackCommand, Ro as RegisteredModelName, Rr as AdapterModelIntrospectionOptions, Rs as JoinOn, Rt as markMigrationApplied, S as getRuntimeAdapter, Sa as PrismaFindManyArgsLike, Sc as HasManyThroughRelationMetadata, Si as QueryLogicalOperator, Sn as ModelNotFoundException, So as ModelDeclaredAttributeKey, Sr as SEEDER_BRAND, St as stripPrismaSchemaModelsAndEnums, T as getRuntimePaginationCurrentPageResolver, Ta as PrismaLikeScalarFilter, Tc as ModelMetadata, Ti as QueryRawCondition, Tn as ArkormException, To as ModelEventHandlerConstructor, Tr as SeederConstructor, Ts as RelationAggregateConstraint, Tt as supportsDatabaseReset, U as applyMigrationRollbackToPrismaSchema, Ua as QuerySchemaWhere, Uc as PrismaSchemaSyncOptions, Ui as ArkormBootContext, Un as MakeMigrationCommand, Uo as Expression, Ur as AggregateSelection, Us as JoinClause, Ut as resolveMigrationStateFilePath, V as applyDropTableOperation, Va as QuerySchemaUpdateArgs, Vc as PrimaryKeyGeneration, Vi as AdapterBindableModel, Vn as MakeSeederCommand, Vo as AggregateExpression, Vr as AdapterTransactionContext, Vs as RelatedModelFromResult, Vt as readAppliedMigrationsStateFromStore, W as applyMigrationToDatabase, Wa as RawSelectInput, Wc as SchemaColumn, Wi as ArkormConfig, Wn as MakeFactoryCommand, Wo as ExpressionBuilder, Wr as AggregateSpec, Ws as LengthAwarePaginator, Wt as supportsDatabaseMigrationState, X as buildInverseRelationLine, Xa as TransactionCapableClient, Xc as SchemaPrimaryKey, Xi as CastType, Xn as AttributeOptions, Xo as count, Xr as DeleteManySpec, Xs as FactoryDefinition, Xt as PersistedTableMetadata, Y as buildIndexLine, Ya as TransactionCallback, Yc as SchemaOperation, Yi as CastMap, Yn as Attribute, Yo as col, Yr as DatabaseValue, Ys as FactoryCallback, Yt as PersistedPrimaryKeyGeneration, Z as buildMigrationSource, Za as TransactionContext, Zc as SchemaTableAlterOperation, Zi as ClientResolver, Zn as Arkorm, Zo as expressionBuilder, Zr as DeleteSpec, Zs as FactoryDefinitionAttributes, Zt as PersistedTimestampColumn, _ as emitRuntimeDebugEvent, _a as PaginationOptions, _c as DatabaseTablePersistedMetadataOptions, _i as QueryJoinRawConstraint, _n as ScopeNotDefinedException, _o as GlobalScope, _r as registerModels, _t as resolveEnumName, a as getRuntimeCompatibilityAdapter, aa as DelegateUniqueWhere, ac as CaseExpressionNode, ai as QueryDayCondition, an as getPersistedTableMetadata, ao as GroupByAggregateSpec, ar as RuntimePathMap, as as val, at as deriveRelationAlias, b as getActiveTransactionClient, ba as PrismaClientLike, bc as ColumnMap, bi as QueryJsonCondition, bn as QueryExecutionExceptionContext, bo as ModelAttributesOf, br as resetRuntimeRegistryForTests, bt as runMigrationWithPrisma, c as PrismaDelegateMap, ca as DelegateWhere, cc as ExpressionJsonCast, ci as QueryFullTextCondition, cn as rebuildPersistedColumnMappingsState, co as ArkormModelRegistry, cr as getRegisteredModels, cs as ModelFactory, ct as escapeRegex, d as inferDelegateName, da as GetUserConfig, dc as InExpressionNode, di as QueryJoin, dn as resolvePersistedMetadataFeatures, do as AttributeQuerySchema, dr as loadFactoriesFrom, dt as formatDefaultValue, ea as DelegateInclude, ec as FactoryState, ei as PartitionedSelectSpec, el as SchemaUniqueConstraint, en as deletePersistedColumnMappingsState, eo as RelationshipModelStatic, er as RegisteredFactory, es as json, et as buildRelationLine, f as awaitConfiguredModelsRegistration, fa as ModelQuerySchemaLike, fc as JsonExpressionNode, fi as QueryJoinBoolean, fn as syncPersistedColumnMappingsFromState, fo as AttributeSchemaDelegate, fr as loadMigrationsFrom, ft as formatEnumDefaultValue, g as disposeArkormRuntime, ga as PaginationMeta, gc as DatabaseTableOptions, gi as QueryJoinNullConstraint, gn as UniqueConstraintResolutionException, go as DelegateForModelSchema, gr as registerMigrations, gt as pad, h as defineConfig, ha as PaginationCurrentPageResolver, hc as ValueExpressionNode, hi as QueryJoinNestedConstraint, hn as UnsupportedAdapterFeatureException, ho as AttributeWhereInput, hr as registerFactories, ht as getMigrationPlan, i as RuntimeModuleLoader, ia as DelegateSelect, ic as CaseExpressionBranch, ii as QueryCondition, in as getPersistedPrimaryKeyGeneration, io as GroupByAggregateRow, ir as RuntimePathKey, is as sum, it as deriveInverseRelationAlias, j as isTransactionCapableClient, ja as PrismaTransactionContext, jc as PivotModelStatic, ji as RelationAggregateSpec, jn as TableBuilder, jo as ModelRelationshipResult, jr as KyselyDatabaseAdapter, js as RelationDefaultValue, jt as createEmptyAppliedMigrationsState, k as isDelegateLike, ka as PrismaTransactionCallback, kc as MorphToRelationMetadata, ki as QueryTimeCondition, kn as SchemaBuilder, ko as ModelOrderByInput, kr as createPrismaCompatibilityAdapter, ks as RelationConstraint, kt as buildMigrationRunId, l as createPrismaAdapter, la as EagerLoadConstraint, lc as ExpressionNode, li as QueryGroupByItem, ln as resetPersistedColumnMappingsCache, lo as AttributeCreateInput, lr as getRegisteredPaths, ls as defineFactory, lt as findEnumBlock, m as configureArkormRuntime, ma as NamingCase, mc as RawExpressionNode, mi as QueryJoinConstraint, mn as writePersistedColumnMappingsState, mo as AttributeUpdateInput, mr as loadSeedersFrom, mt as generateMigrationFile, n as PivotModel, na as DelegateRow, nc as AggregateExpressionNode, ni as QueryComparisonCondition, nl as TimestampNames, nn as getPersistedEnumMap, no as EachCallback, nr as RuntimeConstructor, ns as min, nt as createMigrationTimestamp, o as resolveRuntimeCompatibilityQuerySchema, oa as DelegateUpdateArgs, oc as ColumnExpressionNode, oi as QueryExistsCondition, on as getPersistedTimestampColumns, oo as QueryBuilder, or as getRegisteredFactories, os as where, ot as deriveRelationFieldName, p as bindAdapterToModels, pa as ModelTableCase, pc as NullCheckExpressionNode, pi as QueryJoinColumnConstraint, pn as validatePersistedMetadataFeaturesForMigrations, po as AttributeSelect, pr as loadModelsFrom, pt as formatRelationAction, q as buildEnumBlock, qa as SimplePaginationMeta, qc as SchemaForeignKeyAction, qi as CastDefinition, qn as CliApp, qo as caseWhen, qr as DatabaseRow, qs as FactoryAttributeResolver, qt as PersistedColumnMappingsState, r as LoadedRuntimeModule, ra as DelegateRows, rc as BinaryExpressionNode, ri as QueryComparisonOperator, rl as TimestampNaming, rn as getPersistedEnumTsType, ro as ExpressionSelectMap, rr as RuntimePathInput, rs as raw, rt as deriveCollectionFieldName, s as resolveRuntimeCompatibilityQuerySchemaOrThrow, sa as DelegateUpdateData, sc as ExpressionBinaryOperator, si as QueryExpressionCondition, sn as readPersistedColumnMappingsState, so as ArkormModelNameRegistry, sr as getRegisteredMigrations, ss as InlineFactory, st as deriveSingularFieldName, t as URLDriver, ta as DelegateOrderBy, tc as MaybePromise, ti as QueryColumnComparisonCondition, tl as TimestampColumnBehavior, tn as getPersistedColumnMap, to as ChunkCallback, tr as RegisteredModel, ts as max, tt as buildUniqueConstraintLine, u as createPrismaDelegateMap, ua as EagerLoadMap, uc as FunctionExpressionNode, ui as QueryGroupCondition, un as resolveColumnMappingsFilePath, uo as AttributeOrderBy, ur as getRegisteredSeeders, ut as findModelBlock, v as ensureArkormConfigLoading, va as PaginationURLDriver, vc as BelongsToManyRelationMetadata, vi as QueryJoinType, vn as RelationResolutionException, vo as ModelAttributeValue, vr as registerPaths, vt as resolveMigrationClassName, w as getRuntimeDebugHandler, wa as PrismaLikeOrderBy, wc as HasOneThroughRelationMetadata, wi as QueryOrderBy, wn as ArkormErrorContext, wo as ModelEventHandler, wr as SeederCallArgument, wt as supportsDatabaseMigrationExecution, x as getDefaultStubsPath, xa as PrismaDelegateLike, xc as HasManyRelationMetadata, xi as QueryJsonConditionKind, xn as QueryConstraintException, xo as ModelCreateData, xr as resolveRegisteredModel, xt as runPrismaCommand, y as getActiveTransactionAdapter, ya as PaginationURLDriverFactory, yc as BelongsToRelationMetadata, yi as QueryJoinValueConstraint, yn as QueryExecutionException, yo as ModelAttributes, yr as registerSeeders, yt as resolvePrismaType, z as applyAlterTableOperation, za as QuerySchemaSelect, zc as MigrationClass, zi as UpdateSpec, zn as MigrateFreshCommand, zo as RelatedModelClass, zr as AdapterModelStructure, zs as JoinSource, zt as markMigrationRun } from "./index-DdMKdS88.cjs";
|
|
2
2
|
export { AdapterBindableModel, AdapterCapabilities, AdapterCapability, AdapterDatabaseCreationResult, AdapterInspectionRequest, AdapterModelFieldStructure, AdapterModelIntrospectionOptions, AdapterModelStructure, AdapterQueryInspection, AdapterQueryOperation, AdapterTransactionContext, AggregateExpression, AggregateExpressionNode, AggregateOperation, AggregateSelection, AggregateSpec, AppliedMigrationEntry, AppliedMigrationRun, AppliedMigrationsState, Arkorm, ArkormBootContext, ArkormCollection, ArkormConfig, ArkormDebugEvent, ArkormDebugHandler, ArkormErrorContext, ArkormException, ArkormModelNameRegistry, ArkormModelRegistry, Arkormx, Attribute, AttributeCreateInput, AttributeOptions, AttributeOrderBy, AttributeQuerySchema, AttributeSchemaDelegate, AttributeSelect, AttributeUpdateInput, AttributeWhereInput, BelongsToManyRelationMetadata, BelongsToRelationMetadata, BinaryExpressionNode, CaseExpression, CaseExpressionBranch, CaseExpressionNode, CastDefinition, CastHandler, CastMap, CastType, ChunkCallback, CliApp, ClientResolver, ColumnExpressionNode, ColumnMap, DB, DatabaseAdapter, DatabasePrimitive, DatabaseRow, DatabaseRows, DatabaseTableOptions, DatabaseTablePersistedMetadataOptions, DatabaseValue, DbCommand, DelegateCreateData, DelegateFindManyArgs, DelegateForModelSchema, DelegateInclude, DelegateOrderBy, DelegateRow, DelegateRows, DelegateSelect, DelegateUniqueWhere, DelegateUpdateArgs, DelegateUpdateData, DelegateWhere, DeleteManySpec, DeleteSpec, EachCallback, EagerLoadConstraint, EagerLoadMap, EagerLoadQueryForRelationship, EagerLoadRelations, EnumBuilder, Expression, ExpressionBinaryOperator, ExpressionBuilder, ExpressionJsonCast, ExpressionNode, ExpressionSelectMap, FactoryAttributeResolver, FactoryAttributes, FactoryCallback, FactoryDefinition, FactoryDefinitionAttributes, FactoryModelConstructor, FactoryRelationshipResolver, FactoryState, ForeignKeyBuilder, FunctionExpressionNode, GenerateMigrationOptions, GeneratedColumnExpression, GeneratedMigrationFile, GetUserConfig, GlobalScope, GroupByAggregateRow, GroupByAggregateSpec, HasManyRelationMetadata, HasManyThroughRelationMetadata, HasOneRelationMetadata, HasOneThroughRelationMetadata, InExpressionNode, InitCommand, InlineFactory, InsertManySpec, InsertSpec, JoinClause, JoinOn, JoinSource, JsonExpression, JsonExpressionNode, KyselyDatabaseAdapter, LengthAwarePaginator, LoadedRuntimeModule, MIGRATION_BRAND, MakeFactoryCommand, MakeMigrationCommand, MakeModelCommand, MakeSeederCommand, MaybePromise, MigrateCommand, MigrateFreshCommand, MigrateRollbackCommand, Migration, MigrationClass, MigrationHistoryCommand, MigrationInstanceLike, MissingDelegateException, Model, ModelAttributeValue, ModelAttributes, ModelAttributesOf, ModelCreateData, ModelDeclaredAttributeKey, ModelEventDispatcher, ModelEventHandler, ModelEventHandlerConstructor, ModelEventListener, ModelEventName, ModelFactory, ModelLifecycleState, ModelMetadata, ModelNotFoundException, ModelOrderByInput, ModelQuerySchemaLike, ModelRelationshipKey, ModelRelationshipResult, ModelStatic, ModelTableCase, ModelUpdateData, ModelWhereInput, ModelsSyncCommand, MorphManyRelationMetadata, MorphOneRelationMetadata, MorphToManyRelationMetadata, MorphToRelationMetadata, MorphedByManyRelationMetadata, NamingCase, NullCheckExpressionNode, PRISMA_ENUM_MEMBER_REGEX, PRISMA_ENUM_REGEX, PRISMA_MODEL_REGEX, PaginationCurrentPageResolver, PaginationMeta, PaginationOptions, PaginationURLDriver, PaginationURLDriverFactory, Paginator, PartitionedSelectSpec, PersistedColumnMappingsState, PersistedMetadataFeatures, PersistedPrimaryKeyGeneration, PersistedTableMetadata, PersistedTimestampColumn, PivotModel, PivotModelStatic, PrimaryKeyGeneration, PrimaryKeyGenerationPlanner, PrismaClientLike, PrismaDatabaseAdapter, PrismaDelegateLike, PrismaDelegateMap, PrismaDelegateNameMapping, PrismaFindManyArgsLike, PrismaLikeInclude, PrismaLikeOrderBy, PrismaLikeScalarFilter, PrismaLikeSelect, PrismaLikeSortOrder, PrismaLikeWhereInput, PrismaMigrationWorkflowOptions, PrismaSchemaSyncOptions, PrismaTransactionCallback, PrismaTransactionCapableClient, PrismaTransactionContext, PrismaTransactionOptions, QueryBuilder, QueryColumnComparisonCondition, QueryComparisonCondition, QueryComparisonOperator, QueryCondition, QueryConstraintException, QueryDayCondition, QueryExecutionException, QueryExecutionExceptionContext, QueryExistsCondition, QueryExpressionCondition, QueryFullTextCondition, QueryGroupByItem, QueryGroupCondition, QueryJoin, QueryJoinBoolean, QueryJoinColumnConstraint, QueryJoinConstraint, QueryJoinNestedConstraint, QueryJoinNullConstraint, QueryJoinRawConstraint, QueryJoinType, QueryJoinValueConstraint, QueryJsonCondition, QueryJsonConditionKind, QueryLogicalOperator, QueryNotCondition, QueryOrderBy, QueryRawCondition, QueryScalarComparisonOperator, QuerySchemaCreateData, QuerySchemaFindManyArgs, QuerySchemaForModel, QuerySchemaForModelInstance, QuerySchemaInclude, QuerySchemaOrderBy, QuerySchemaRow, QuerySchemaRows, QuerySchemaSelect, QuerySchemaUniqueWhere, QuerySchemaUpdateArgs, QuerySchemaUpdateData, QuerySchemaWhere, QuerySelectColumn, QueryTarget, QueryTimeCondition, RawExpressionNode, RawQuerySpec, RawSelectInput, RegisteredFactory, RegisteredModel, RegisteredModelClass, RegisteredModelInstance, RegisteredModelName, RelatedModelClass, RelatedModelForRelationship, RelatedModelFromResult, RelationAggregateConstraint, RelationAggregateInput, RelationAggregateSpec, RelationAggregateType, RelationColumnLookupSpec, RelationConstraint, RelationDefaultResolver, RelationDefaultValue, RelationFilterSpec, RelationLoadPlan, RelationLoadSpec, RelationMetadata, RelationMetadataProvider, RelationMetadataType, RelationResolutionException, RelationResult, RelationResultCache, RelationTableLookupSpec, RelationshipModelStatic, RuntimeClientLike, RuntimeConstructor, RuntimeModuleLoader, RuntimePathInput, RuntimePathKey, RuntimePathMap, SEEDER_BRAND, SchemaBuilder, SchemaColumn, SchemaColumnType, SchemaForeignKey, SchemaForeignKeyAction, SchemaIndex, SchemaOperation, SchemaPrimaryKey, SchemaTableAlterOperation, SchemaTableCreateOperation, SchemaTableDropOperation, SchemaUniqueConstraint, ScopeNotDefinedException, SeedCommand, Seeder, SeederCallArgument, SeederConstructor, SeederInput, SelectSpec, Serializable, SimplePaginationMeta, SoftDeleteConfig, SoftDeleteQueryMode, SortDirection, TableBuilder, TimestampColumnBehavior, TimestampNames, TimestampNaming, TransactionCallback, TransactionCapableClient, TransactionContext, TransactionOptions, URLDriver, UniqueConstraintResolutionException, UnsupportedAdapterFeatureException, UpdateManySpec, UpdateSpec, UpsertSpec, ValueExpressionNode, WhereCallback, applyAlterTableOperation, applyCreateTableOperation, applyDropTableOperation, applyMigrationRollbackToDatabase, applyMigrationRollbackToPrismaSchema, applyMigrationToDatabase, applyMigrationToPrismaSchema, applyOperationsToPersistedColumnMappingsState, applyOperationsToPrismaSchema, avg, awaitConfiguredModelsRegistration, bindAdapterToModels, buildEnumBlock, buildFieldLine, buildIndexLine, buildInverseRelationLine, buildMigrationIdentity, buildMigrationRunId, buildMigrationSource, buildModelBlock, buildPrimaryKeyLine, buildRelationLine, buildUniqueConstraintLine, caseWhen, coalesce, col, computeMigrationChecksum, configureArkormRuntime, count, createEmptyAppliedMigrationsState, createEmptyPersistedColumnMappingsState, createKyselyAdapter, createMigrationTimestamp, createPrismaAdapter, createPrismaCompatibilityAdapter, createPrismaDatabaseAdapter, createPrismaDelegateMap, defineConfig, defineFactory, deleteAppliedMigrationsStateFromStore, deletePersistedColumnMappingsState, deriveCollectionFieldName, deriveInverseRelationAlias, deriveRelationAlias, deriveRelationFieldName, deriveSingularFieldName, disposeArkormRuntime, emitRuntimeDebugEvent, ensureArkormConfigLoading, escapeRegex, expressionBuilder, findAppliedMigration, findEnumBlock, findModelBlock, fn, formatDefaultValue, formatEnumDefaultValue, formatRelationAction, fromExpressionNode, generateMigrationFile, getActiveTransactionAdapter, getActiveTransactionClient, getDefaultStubsPath, getLastBatchMigrations, getLastMigrationRun, getLatestAppliedMigrations, getMigrationPlan, getModel, getPersistedColumnMap, getPersistedEnumMap, getPersistedEnumTsType, getPersistedPrimaryKeyGeneration, getPersistedTableMetadata, getPersistedTimestampColumns, getRegisteredFactories, getRegisteredMigrations, getRegisteredModels, getRegisteredPaths, getRegisteredSeeders, getRuntimeAdapter, getRuntimeClient, getRuntimeCompatibilityAdapter, getRuntimeDebugHandler, getRuntimePaginationCurrentPageResolver, getRuntimePaginationURLDriverFactory, getRuntimePrismaClient, getUserConfig, inferDelegateName, isDelegateLike, isMigrationApplied, isQuerySchemaLike, isTransactionCapableClient, json, loadArkormConfig, loadFactoriesFrom, loadMigrationsFrom, loadModelsFrom, loadSeedersFrom, markMigrationApplied, markMigrationRun, max, min, pad, raw, readAppliedMigrationsState, readAppliedMigrationsStateFromStore, readPersistedColumnMappingsState, rebuildPersistedColumnMappingsState, registerFactories, registerMigrations, registerModels, registerPaths, registerSeeders, removeAppliedMigration, resetArkormRuntimeForTests, resetPersistedColumnMappingsCache, resetRuntimeRegistryForTests, resolveCast, resolveColumnMappingsFilePath, resolveEnumName, resolveGeneratedExpression, resolveMigrationClassName, resolveMigrationStateFilePath, resolvePersistedMetadataFeatures, resolvePrismaType, resolveRegisteredModel, resolveRuntimeCompatibilityQuerySchema, resolveRuntimeCompatibilityQuerySchemaOrThrow, runArkormTransaction, runMigrationWithPrisma, runPrismaCommand, stripPrismaSchemaModelsAndEnums, sum, supportsDatabaseCreation, supportsDatabaseMigrationExecution, supportsDatabaseMigrationState, supportsDatabaseReset, syncPersistedColumnMappingsFromState, toMigrationFileSlug, toModelName, val, validatePersistedMetadataFeaturesForMigrations, where, writeAppliedMigrationsState, writeAppliedMigrationsStateToStore, writePersistedColumnMappingsState };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as buildPrimaryKeyLine, $a as ModelStatic, $c as SchemaTableDropOperation, $i as DelegateFindManyArgs, $n as getModel, $o as fromExpressionNode, $r as InsertSpec, $s as FactoryRelationshipResolver, $t as createEmptyPersistedColumnMappingsState, A as isQuerySchemaLike, Aa as PrismaTransactionCapableClient, Ac as MorphedByManyRelationMetadata, Ai as RawQuerySpec, An as EnumBuilder, Ao as ModelRelationshipKey, Ar as createPrismaDatabaseAdapter, As as RelationDefaultResolver, At as computeMigrationChecksum, B as applyCreateTableOperation, Ba as QuerySchemaUniqueWhere, Bc as MigrationInstanceLike, Bi as UpsertSpec, Bn as MigrateCommand, Bo as Model, Br as AdapterQueryOperation, Bs as RelatedModelForRelationship, Bt as readAppliedMigrationsState, C as getRuntimeClient, Ca as PrismaLikeInclude, Cc as HasOneRelationMetadata, Ci as QueryNotCondition, Cn as MissingDelegateException, Co as ModelEventDispatcher, Cr as Seeder, Ct as supportsDatabaseCreation, D as getRuntimePrismaClient, Da as PrismaLikeSortOrder, Dc as MorphOneRelationMetadata, Di as QuerySelectColumn, Dn as MIGRATION_BRAND, Do as ModelEventName, Dr as PrismaDatabaseAdapter, Ds as RelationAggregateType, Dt as toModelName, E as getRuntimePaginationURLDriverFactory, Ea as PrismaLikeSelect, Ec as MorphManyRelationMetadata, Ei as QueryScalarComparisonOperator, En as DB, Eo as ModelEventListener, Er as SeederInput, Es as RelationAggregateInput, Et as toMigrationFileSlug, F as PrimaryKeyGenerationPlanner, Fa as QuerySchemaInclude, Fc as AppliedMigrationRun, Fi as SelectSpec, Fn as SeedCommand, Fo as QuerySchemaForModelInstance, Fr as AdapterDatabaseCreationResult, Fs as RelationTableLookupSpec, Ft as getLastMigrationRun, G as applyMigrationToPrismaSchema, Ga as RuntimeClientLike, Gc as SchemaColumnType, Gi as ArkormDebugEvent, Gn as InitCommand, Go as JsonExpression, Gr as DatabaseAdapter, Gs as Paginator, Gt as writeAppliedMigrationsState, H as applyMigrationRollbackToDatabase, Ha as QuerySchemaUpdateData, Hc as PrismaMigrationWorkflowOptions, Hi as AdapterQueryInspection, Hn as MakeModelCommand, Ho as CaseExpression, Hr as AggregateOperation, Hs as WhereCallback, Ht as removeAppliedMigration, I as PRISMA_ENUM_MEMBER_REGEX, Ia as QuerySchemaOrderBy, Ic as AppliedMigrationsState, Ii as SoftDeleteQueryMode, In as ModelsSyncCommand, Io as RegisteredModelClass, Ir as AdapterInspectionRequest, Is as EagerLoadQueryForRelationship, It as getLatestAppliedMigrations, J as buildFieldLine, Ja as SoftDeleteConfig, Jc as SchemaIndex, Ji as CastHandler, Jn as resolveCast, Jo as coalesce, Jr as DatabaseRows, Js as FactoryAttributes, Jt as PersistedMetadataFeatures, K as applyOperationsToPrismaSchema, Ka as Serializable, Kc as SchemaForeignKey, Ki as ArkormDebugHandler, Kn as DbCommand, Ko as avg, Kr as DatabasePrimitive, Ks as ArkormCollection, Kt as writeAppliedMigrationsStateToStore, L as PRISMA_ENUM_REGEX, La as QuerySchemaRow, Lc as GenerateMigrationOptions, Li as SortDirection, Ln as MigrationHistoryCommand, Lo as RegisteredModelInstance, Lr as AdapterModelFieldStructure, Ls as EagerLoadRelations, Lt as isMigrationApplied, M as loadArkormConfig, Ma as PrismaTransactionOptions, Mc as RelationMetadata, Mi as RelationFilterSpec, Mn as GeneratedColumnExpression, Mo as ModelUpdateData, Mr as createKyselyAdapter, Ms as RelationMetadataProvider, Mt as deleteAppliedMigrationsStateFromStore, N as resetArkormRuntimeForTests, Na as QuerySchemaCreateData, Nc as RelationMetadataType, Ni as RelationLoadPlan, Nn as resolveGeneratedExpression, No as ModelWhereInput, Nr as AdapterCapabilities, Ns as RelationResult, Nt as findAppliedMigration, O as getUserConfig, Oa as PrismaLikeWhereInput, Oc as MorphToManyRelationMetadata, Oi as QueryTarget, On as Migration, Oo as ModelLifecycleState, Or as PrismaDelegateNameMapping, Os as RelationColumnLookupSpec, Ot as buildMigrationIdentity, P as runArkormTransaction, Pa as QuerySchemaFindManyArgs, Pc as AppliedMigrationEntry, Pi as RelationLoadSpec, Pn as ForeignKeyBuilder, Po as QuerySchemaForModel, Pr as AdapterCapability, Ps as RelationResultCache, Pt as getLastBatchMigrations, Q as buildModelBlock, Qa as TransactionOptions, Qc as SchemaTableCreateOperation, Qi as DelegateCreateData, Qn as Arkormx, Qo as fn, Qr as InsertManySpec, Qs as FactoryModelConstructor, Qt as applyOperationsToPersistedColumnMappingsState, R as PRISMA_MODEL_REGEX, Ra as QuerySchemaRows, Rc as GeneratedMigrationFile, Ri as UpdateManySpec, Rn as MigrateRollbackCommand, Ro as RegisteredModelName, Rr as AdapterModelIntrospectionOptions, Rs as JoinOn, Rt as markMigrationApplied, S as getRuntimeAdapter, Sa as PrismaFindManyArgsLike, Sc as HasManyThroughRelationMetadata, Si as QueryLogicalOperator, Sn as ModelNotFoundException, So as ModelDeclaredAttributeKey, Sr as SEEDER_BRAND, St as stripPrismaSchemaModelsAndEnums, T as getRuntimePaginationCurrentPageResolver, Ta as PrismaLikeScalarFilter, Tc as ModelMetadata, Ti as QueryRawCondition, Tn as ArkormException, To as ModelEventHandlerConstructor, Tr as SeederConstructor, Ts as RelationAggregateConstraint, Tt as supportsDatabaseReset, U as applyMigrationRollbackToPrismaSchema, Ua as QuerySchemaWhere, Uc as PrismaSchemaSyncOptions, Ui as ArkormBootContext, Un as MakeMigrationCommand, Uo as Expression, Ur as AggregateSelection, Us as JoinClause, Ut as resolveMigrationStateFilePath, V as applyDropTableOperation, Va as QuerySchemaUpdateArgs, Vc as PrimaryKeyGeneration, Vi as AdapterBindableModel, Vn as MakeSeederCommand, Vo as AggregateExpression, Vr as AdapterTransactionContext, Vs as RelatedModelFromResult, Vt as readAppliedMigrationsStateFromStore, W as applyMigrationToDatabase, Wa as RawSelectInput, Wc as SchemaColumn, Wi as ArkormConfig, Wn as MakeFactoryCommand, Wo as ExpressionBuilder, Wr as AggregateSpec, Ws as LengthAwarePaginator, Wt as supportsDatabaseMigrationState, X as buildInverseRelationLine, Xa as TransactionCapableClient, Xc as SchemaPrimaryKey, Xi as CastType, Xn as AttributeOptions, Xo as count, Xr as DeleteManySpec, Xs as FactoryDefinition, Xt as PersistedTableMetadata, Y as buildIndexLine, Ya as TransactionCallback, Yc as SchemaOperation, Yi as CastMap, Yn as Attribute, Yo as col, Yr as DatabaseValue, Ys as FactoryCallback, Yt as PersistedPrimaryKeyGeneration, Z as buildMigrationSource, Za as TransactionContext, Zc as SchemaTableAlterOperation, Zi as ClientResolver, Zn as Arkorm, Zo as expressionBuilder, Zr as DeleteSpec, Zs as FactoryDefinitionAttributes, Zt as PersistedTimestampColumn, _ as emitRuntimeDebugEvent, _a as PaginationOptions, _c as DatabaseTablePersistedMetadataOptions, _i as QueryJoinRawConstraint, _n as ScopeNotDefinedException, _o as GlobalScope, _r as registerModels, _t as resolveEnumName, a as getRuntimeCompatibilityAdapter, aa as DelegateUniqueWhere, ac as CaseExpressionNode, ai as QueryDayCondition, an as getPersistedTableMetadata, ao as GroupByAggregateSpec, ar as RuntimePathMap, as as val, at as deriveRelationAlias, b as getActiveTransactionClient, ba as PrismaClientLike, bc as ColumnMap, bi as QueryJsonCondition, bn as QueryExecutionExceptionContext, bo as ModelAttributesOf, br as resetRuntimeRegistryForTests, bt as runMigrationWithPrisma, c as PrismaDelegateMap, ca as DelegateWhere, cc as ExpressionJsonCast, ci as QueryFullTextCondition, cn as rebuildPersistedColumnMappingsState, co as ArkormModelRegistry, cr as getRegisteredModels, cs as ModelFactory, ct as escapeRegex, d as inferDelegateName, da as GetUserConfig, dc as InExpressionNode, di as QueryJoin, dn as resolvePersistedMetadataFeatures, do as AttributeQuerySchema, dr as loadFactoriesFrom, dt as formatDefaultValue, ea as DelegateInclude, ec as FactoryState, ei as PartitionedSelectSpec, el as SchemaUniqueConstraint, en as deletePersistedColumnMappingsState, eo as RelationshipModelStatic, er as RegisteredFactory, es as json, et as buildRelationLine, f as awaitConfiguredModelsRegistration, fa as ModelQuerySchemaLike, fc as JsonExpressionNode, fi as QueryJoinBoolean, fn as syncPersistedColumnMappingsFromState, fo as AttributeSchemaDelegate, fr as loadMigrationsFrom, ft as formatEnumDefaultValue, g as disposeArkormRuntime, ga as PaginationMeta, gc as DatabaseTableOptions, gi as QueryJoinNullConstraint, gn as UniqueConstraintResolutionException, go as DelegateForModelSchema, gr as registerMigrations, gt as pad, h as defineConfig, ha as PaginationCurrentPageResolver, hc as ValueExpressionNode, hi as QueryJoinNestedConstraint, hn as UnsupportedAdapterFeatureException, ho as AttributeWhereInput, hr as registerFactories, ht as getMigrationPlan, i as RuntimeModuleLoader, ia as DelegateSelect, ic as CaseExpressionBranch, ii as QueryCondition, in as getPersistedPrimaryKeyGeneration, io as GroupByAggregateRow, ir as RuntimePathKey, is as sum, it as deriveInverseRelationAlias, j as isTransactionCapableClient, ja as PrismaTransactionContext, jc as PivotModelStatic, ji as RelationAggregateSpec, jn as TableBuilder, jo as ModelRelationshipResult, jr as KyselyDatabaseAdapter, js as RelationDefaultValue, jt as createEmptyAppliedMigrationsState, k as isDelegateLike, ka as PrismaTransactionCallback, kc as MorphToRelationMetadata, ki as QueryTimeCondition, kn as SchemaBuilder, ko as ModelOrderByInput, kr as createPrismaCompatibilityAdapter, ks as RelationConstraint, kt as buildMigrationRunId, l as createPrismaAdapter, la as EagerLoadConstraint, lc as ExpressionNode, li as QueryGroupByItem, ln as resetPersistedColumnMappingsCache, lo as AttributeCreateInput, lr as getRegisteredPaths, ls as defineFactory, lt as findEnumBlock, m as configureArkormRuntime, ma as NamingCase, mc as RawExpressionNode, mi as QueryJoinConstraint, mn as writePersistedColumnMappingsState, mo as AttributeUpdateInput, mr as loadSeedersFrom, mt as generateMigrationFile, n as PivotModel, na as DelegateRow, nc as AggregateExpressionNode, ni as QueryComparisonCondition, nl as TimestampNames, nn as getPersistedEnumMap, no as EachCallback, nr as RuntimeConstructor, ns as min, nt as createMigrationTimestamp, o as resolveRuntimeCompatibilityQuerySchema, oa as DelegateUpdateArgs, oc as ColumnExpressionNode, oi as QueryExistsCondition, on as getPersistedTimestampColumns, oo as QueryBuilder, or as getRegisteredFactories, os as where, ot as deriveRelationFieldName, p as bindAdapterToModels, pa as ModelTableCase, pc as NullCheckExpressionNode, pi as QueryJoinColumnConstraint, pn as validatePersistedMetadataFeaturesForMigrations, po as AttributeSelect, pr as loadModelsFrom, pt as formatRelationAction, q as buildEnumBlock, qa as SimplePaginationMeta, qc as SchemaForeignKeyAction, qi as CastDefinition, qn as CliApp, qo as caseWhen, qr as DatabaseRow, qs as FactoryAttributeResolver, qt as PersistedColumnMappingsState, r as LoadedRuntimeModule, ra as DelegateRows, rc as BinaryExpressionNode, ri as QueryComparisonOperator, rl as TimestampNaming, rn as getPersistedEnumTsType, ro as ExpressionSelectMap, rr as RuntimePathInput, rs as raw, rt as deriveCollectionFieldName, s as resolveRuntimeCompatibilityQuerySchemaOrThrow, sa as DelegateUpdateData, sc as ExpressionBinaryOperator, si as QueryExpressionCondition, sn as readPersistedColumnMappingsState, so as ArkormModelNameRegistry, sr as getRegisteredMigrations, ss as InlineFactory, st as deriveSingularFieldName, t as URLDriver, ta as DelegateOrderBy, tc as MaybePromise, ti as QueryColumnComparisonCondition, tl as TimestampColumnBehavior, tn as getPersistedColumnMap, to as ChunkCallback, tr as RegisteredModel, ts as max, tt as buildUniqueConstraintLine, u as createPrismaDelegateMap, ua as EagerLoadMap, uc as FunctionExpressionNode, ui as QueryGroupCondition, un as resolveColumnMappingsFilePath, uo as AttributeOrderBy, ur as getRegisteredSeeders, ut as findModelBlock, v as ensureArkormConfigLoading, va as PaginationURLDriver, vc as BelongsToManyRelationMetadata, vi as QueryJoinType, vn as RelationResolutionException, vo as ModelAttributeValue, vr as registerPaths, vt as resolveMigrationClassName, w as getRuntimeDebugHandler, wa as PrismaLikeOrderBy, wc as HasOneThroughRelationMetadata, wi as QueryOrderBy, wn as ArkormErrorContext, wo as ModelEventHandler, wr as SeederCallArgument, wt as supportsDatabaseMigrationExecution, x as getDefaultStubsPath, xa as PrismaDelegateLike, xc as HasManyRelationMetadata, xi as QueryJsonConditionKind, xn as QueryConstraintException, xo as ModelCreateData, xr as resolveRegisteredModel, xt as runPrismaCommand, y as getActiveTransactionAdapter, ya as PaginationURLDriverFactory, yc as BelongsToRelationMetadata, yi as QueryJoinValueConstraint, yn as QueryExecutionException, yo as ModelAttributes, yr as registerSeeders, yt as resolvePrismaType, z as applyAlterTableOperation, za as QuerySchemaSelect, zc as MigrationClass, zi as UpdateSpec, zn as MigrateFreshCommand, zo as RelatedModelClass, zr as AdapterModelStructure, zs as JoinSource, zt as markMigrationRun } from "./index-O3-Mi7hj.mjs";
|
|
1
|
+
import { $ as buildPrimaryKeyLine, $a as ModelStatic, $c as SchemaTableDropOperation, $i as DelegateFindManyArgs, $n as getModel, $o as fromExpressionNode, $r as InsertSpec, $s as FactoryRelationshipResolver, $t as createEmptyPersistedColumnMappingsState, A as isQuerySchemaLike, Aa as PrismaTransactionCapableClient, Ac as MorphedByManyRelationMetadata, Ai as RawQuerySpec, An as EnumBuilder, Ao as ModelRelationshipKey, Ar as createPrismaDatabaseAdapter, As as RelationDefaultResolver, At as computeMigrationChecksum, B as applyCreateTableOperation, Ba as QuerySchemaUniqueWhere, Bc as MigrationInstanceLike, Bi as UpsertSpec, Bn as MigrateCommand, Bo as Model, Br as AdapterQueryOperation, Bs as RelatedModelForRelationship, Bt as readAppliedMigrationsState, C as getRuntimeClient, Ca as PrismaLikeInclude, Cc as HasOneRelationMetadata, Ci as QueryNotCondition, Cn as MissingDelegateException, Co as ModelEventDispatcher, Cr as Seeder, Ct as supportsDatabaseCreation, D as getRuntimePrismaClient, Da as PrismaLikeSortOrder, Dc as MorphOneRelationMetadata, Di as QuerySelectColumn, Dn as MIGRATION_BRAND, Do as ModelEventName, Dr as PrismaDatabaseAdapter, Ds as RelationAggregateType, Dt as toModelName, E as getRuntimePaginationURLDriverFactory, Ea as PrismaLikeSelect, Ec as MorphManyRelationMetadata, Ei as QueryScalarComparisonOperator, En as DB, Eo as ModelEventListener, Er as SeederInput, Es as RelationAggregateInput, Et as toMigrationFileSlug, F as PrimaryKeyGenerationPlanner, Fa as QuerySchemaInclude, Fc as AppliedMigrationRun, Fi as SelectSpec, Fn as SeedCommand, Fo as QuerySchemaForModelInstance, Fr as AdapterDatabaseCreationResult, Fs as RelationTableLookupSpec, Ft as getLastMigrationRun, G as applyMigrationToPrismaSchema, Ga as RuntimeClientLike, Gc as SchemaColumnType, Gi as ArkormDebugEvent, Gn as InitCommand, Go as JsonExpression, Gr as DatabaseAdapter, Gs as Paginator, Gt as writeAppliedMigrationsState, H as applyMigrationRollbackToDatabase, Ha as QuerySchemaUpdateData, Hc as PrismaMigrationWorkflowOptions, Hi as AdapterQueryInspection, Hn as MakeModelCommand, Ho as CaseExpression, Hr as AggregateOperation, Hs as WhereCallback, Ht as removeAppliedMigration, I as PRISMA_ENUM_MEMBER_REGEX, Ia as QuerySchemaOrderBy, Ic as AppliedMigrationsState, Ii as SoftDeleteQueryMode, In as ModelsSyncCommand, Io as RegisteredModelClass, Ir as AdapterInspectionRequest, Is as EagerLoadQueryForRelationship, It as getLatestAppliedMigrations, J as buildFieldLine, Ja as SoftDeleteConfig, Jc as SchemaIndex, Ji as CastHandler, Jn as resolveCast, Jo as coalesce, Jr as DatabaseRows, Js as FactoryAttributes, Jt as PersistedMetadataFeatures, K as applyOperationsToPrismaSchema, Ka as Serializable, Kc as SchemaForeignKey, Ki as ArkormDebugHandler, Kn as DbCommand, Ko as avg, Kr as DatabasePrimitive, Ks as ArkormCollection, Kt as writeAppliedMigrationsStateToStore, L as PRISMA_ENUM_REGEX, La as QuerySchemaRow, Lc as GenerateMigrationOptions, Li as SortDirection, Ln as MigrationHistoryCommand, Lo as RegisteredModelInstance, Lr as AdapterModelFieldStructure, Ls as EagerLoadRelations, Lt as isMigrationApplied, M as loadArkormConfig, Ma as PrismaTransactionOptions, Mc as RelationMetadata, Mi as RelationFilterSpec, Mn as GeneratedColumnExpression, Mo as ModelUpdateData, Mr as createKyselyAdapter, Ms as RelationMetadataProvider, Mt as deleteAppliedMigrationsStateFromStore, N as resetArkormRuntimeForTests, Na as QuerySchemaCreateData, Nc as RelationMetadataType, Ni as RelationLoadPlan, Nn as resolveGeneratedExpression, No as ModelWhereInput, Nr as AdapterCapabilities, Ns as RelationResult, Nt as findAppliedMigration, O as getUserConfig, Oa as PrismaLikeWhereInput, Oc as MorphToManyRelationMetadata, Oi as QueryTarget, On as Migration, Oo as ModelLifecycleState, Or as PrismaDelegateNameMapping, Os as RelationColumnLookupSpec, Ot as buildMigrationIdentity, P as runArkormTransaction, Pa as QuerySchemaFindManyArgs, Pc as AppliedMigrationEntry, Pi as RelationLoadSpec, Pn as ForeignKeyBuilder, Po as QuerySchemaForModel, Pr as AdapterCapability, Ps as RelationResultCache, Pt as getLastBatchMigrations, Q as buildModelBlock, Qa as TransactionOptions, Qc as SchemaTableCreateOperation, Qi as DelegateCreateData, Qn as Arkormx, Qo as fn, Qr as InsertManySpec, Qs as FactoryModelConstructor, Qt as applyOperationsToPersistedColumnMappingsState, R as PRISMA_MODEL_REGEX, Ra as QuerySchemaRows, Rc as GeneratedMigrationFile, Ri as UpdateManySpec, Rn as MigrateRollbackCommand, Ro as RegisteredModelName, Rr as AdapterModelIntrospectionOptions, Rs as JoinOn, Rt as markMigrationApplied, S as getRuntimeAdapter, Sa as PrismaFindManyArgsLike, Sc as HasManyThroughRelationMetadata, Si as QueryLogicalOperator, Sn as ModelNotFoundException, So as ModelDeclaredAttributeKey, Sr as SEEDER_BRAND, St as stripPrismaSchemaModelsAndEnums, T as getRuntimePaginationCurrentPageResolver, Ta as PrismaLikeScalarFilter, Tc as ModelMetadata, Ti as QueryRawCondition, Tn as ArkormException, To as ModelEventHandlerConstructor, Tr as SeederConstructor, Ts as RelationAggregateConstraint, Tt as supportsDatabaseReset, U as applyMigrationRollbackToPrismaSchema, Ua as QuerySchemaWhere, Uc as PrismaSchemaSyncOptions, Ui as ArkormBootContext, Un as MakeMigrationCommand, Uo as Expression, Ur as AggregateSelection, Us as JoinClause, Ut as resolveMigrationStateFilePath, V as applyDropTableOperation, Va as QuerySchemaUpdateArgs, Vc as PrimaryKeyGeneration, Vi as AdapterBindableModel, Vn as MakeSeederCommand, Vo as AggregateExpression, Vr as AdapterTransactionContext, Vs as RelatedModelFromResult, Vt as readAppliedMigrationsStateFromStore, W as applyMigrationToDatabase, Wa as RawSelectInput, Wc as SchemaColumn, Wi as ArkormConfig, Wn as MakeFactoryCommand, Wo as ExpressionBuilder, Wr as AggregateSpec, Ws as LengthAwarePaginator, Wt as supportsDatabaseMigrationState, X as buildInverseRelationLine, Xa as TransactionCapableClient, Xc as SchemaPrimaryKey, Xi as CastType, Xn as AttributeOptions, Xo as count, Xr as DeleteManySpec, Xs as FactoryDefinition, Xt as PersistedTableMetadata, Y as buildIndexLine, Ya as TransactionCallback, Yc as SchemaOperation, Yi as CastMap, Yn as Attribute, Yo as col, Yr as DatabaseValue, Ys as FactoryCallback, Yt as PersistedPrimaryKeyGeneration, Z as buildMigrationSource, Za as TransactionContext, Zc as SchemaTableAlterOperation, Zi as ClientResolver, Zn as Arkorm, Zo as expressionBuilder, Zr as DeleteSpec, Zs as FactoryDefinitionAttributes, Zt as PersistedTimestampColumn, _ as emitRuntimeDebugEvent, _a as PaginationOptions, _c as DatabaseTablePersistedMetadataOptions, _i as QueryJoinRawConstraint, _n as ScopeNotDefinedException, _o as GlobalScope, _r as registerModels, _t as resolveEnumName, a as getRuntimeCompatibilityAdapter, aa as DelegateUniqueWhere, ac as CaseExpressionNode, ai as QueryDayCondition, an as getPersistedTableMetadata, ao as GroupByAggregateSpec, ar as RuntimePathMap, as as val, at as deriveRelationAlias, b as getActiveTransactionClient, ba as PrismaClientLike, bc as ColumnMap, bi as QueryJsonCondition, bn as QueryExecutionExceptionContext, bo as ModelAttributesOf, br as resetRuntimeRegistryForTests, bt as runMigrationWithPrisma, c as PrismaDelegateMap, ca as DelegateWhere, cc as ExpressionJsonCast, ci as QueryFullTextCondition, cn as rebuildPersistedColumnMappingsState, co as ArkormModelRegistry, cr as getRegisteredModels, cs as ModelFactory, ct as escapeRegex, d as inferDelegateName, da as GetUserConfig, dc as InExpressionNode, di as QueryJoin, dn as resolvePersistedMetadataFeatures, do as AttributeQuerySchema, dr as loadFactoriesFrom, dt as formatDefaultValue, ea as DelegateInclude, ec as FactoryState, ei as PartitionedSelectSpec, el as SchemaUniqueConstraint, en as deletePersistedColumnMappingsState, eo as RelationshipModelStatic, er as RegisteredFactory, es as json, et as buildRelationLine, f as awaitConfiguredModelsRegistration, fa as ModelQuerySchemaLike, fc as JsonExpressionNode, fi as QueryJoinBoolean, fn as syncPersistedColumnMappingsFromState, fo as AttributeSchemaDelegate, fr as loadMigrationsFrom, ft as formatEnumDefaultValue, g as disposeArkormRuntime, ga as PaginationMeta, gc as DatabaseTableOptions, gi as QueryJoinNullConstraint, gn as UniqueConstraintResolutionException, go as DelegateForModelSchema, gr as registerMigrations, gt as pad, h as defineConfig, ha as PaginationCurrentPageResolver, hc as ValueExpressionNode, hi as QueryJoinNestedConstraint, hn as UnsupportedAdapterFeatureException, ho as AttributeWhereInput, hr as registerFactories, ht as getMigrationPlan, i as RuntimeModuleLoader, ia as DelegateSelect, ic as CaseExpressionBranch, ii as QueryCondition, in as getPersistedPrimaryKeyGeneration, io as GroupByAggregateRow, ir as RuntimePathKey, is as sum, it as deriveInverseRelationAlias, j as isTransactionCapableClient, ja as PrismaTransactionContext, jc as PivotModelStatic, ji as RelationAggregateSpec, jn as TableBuilder, jo as ModelRelationshipResult, jr as KyselyDatabaseAdapter, js as RelationDefaultValue, jt as createEmptyAppliedMigrationsState, k as isDelegateLike, ka as PrismaTransactionCallback, kc as MorphToRelationMetadata, ki as QueryTimeCondition, kn as SchemaBuilder, ko as ModelOrderByInput, kr as createPrismaCompatibilityAdapter, ks as RelationConstraint, kt as buildMigrationRunId, l as createPrismaAdapter, la as EagerLoadConstraint, lc as ExpressionNode, li as QueryGroupByItem, ln as resetPersistedColumnMappingsCache, lo as AttributeCreateInput, lr as getRegisteredPaths, ls as defineFactory, lt as findEnumBlock, m as configureArkormRuntime, ma as NamingCase, mc as RawExpressionNode, mi as QueryJoinConstraint, mn as writePersistedColumnMappingsState, mo as AttributeUpdateInput, mr as loadSeedersFrom, mt as generateMigrationFile, n as PivotModel, na as DelegateRow, nc as AggregateExpressionNode, ni as QueryComparisonCondition, nl as TimestampNames, nn as getPersistedEnumMap, no as EachCallback, nr as RuntimeConstructor, ns as min, nt as createMigrationTimestamp, o as resolveRuntimeCompatibilityQuerySchema, oa as DelegateUpdateArgs, oc as ColumnExpressionNode, oi as QueryExistsCondition, on as getPersistedTimestampColumns, oo as QueryBuilder, or as getRegisteredFactories, os as where, ot as deriveRelationFieldName, p as bindAdapterToModels, pa as ModelTableCase, pc as NullCheckExpressionNode, pi as QueryJoinColumnConstraint, pn as validatePersistedMetadataFeaturesForMigrations, po as AttributeSelect, pr as loadModelsFrom, pt as formatRelationAction, q as buildEnumBlock, qa as SimplePaginationMeta, qc as SchemaForeignKeyAction, qi as CastDefinition, qn as CliApp, qo as caseWhen, qr as DatabaseRow, qs as FactoryAttributeResolver, qt as PersistedColumnMappingsState, r as LoadedRuntimeModule, ra as DelegateRows, rc as BinaryExpressionNode, ri as QueryComparisonOperator, rl as TimestampNaming, rn as getPersistedEnumTsType, ro as ExpressionSelectMap, rr as RuntimePathInput, rs as raw, rt as deriveCollectionFieldName, s as resolveRuntimeCompatibilityQuerySchemaOrThrow, sa as DelegateUpdateData, sc as ExpressionBinaryOperator, si as QueryExpressionCondition, sn as readPersistedColumnMappingsState, so as ArkormModelNameRegistry, sr as getRegisteredMigrations, ss as InlineFactory, st as deriveSingularFieldName, t as URLDriver, ta as DelegateOrderBy, tc as MaybePromise, ti as QueryColumnComparisonCondition, tl as TimestampColumnBehavior, tn as getPersistedColumnMap, to as ChunkCallback, tr as RegisteredModel, ts as max, tt as buildUniqueConstraintLine, u as createPrismaDelegateMap, ua as EagerLoadMap, uc as FunctionExpressionNode, ui as QueryGroupCondition, un as resolveColumnMappingsFilePath, uo as AttributeOrderBy, ur as getRegisteredSeeders, ut as findModelBlock, v as ensureArkormConfigLoading, va as PaginationURLDriver, vc as BelongsToManyRelationMetadata, vi as QueryJoinType, vn as RelationResolutionException, vo as ModelAttributeValue, vr as registerPaths, vt as resolveMigrationClassName, w as getRuntimeDebugHandler, wa as PrismaLikeOrderBy, wc as HasOneThroughRelationMetadata, wi as QueryOrderBy, wn as ArkormErrorContext, wo as ModelEventHandler, wr as SeederCallArgument, wt as supportsDatabaseMigrationExecution, x as getDefaultStubsPath, xa as PrismaDelegateLike, xc as HasManyRelationMetadata, xi as QueryJsonConditionKind, xn as QueryConstraintException, xo as ModelCreateData, xr as resolveRegisteredModel, xt as runPrismaCommand, y as getActiveTransactionAdapter, ya as PaginationURLDriverFactory, yc as BelongsToRelationMetadata, yi as QueryJoinValueConstraint, yn as QueryExecutionException, yo as ModelAttributes, yr as registerSeeders, yt as resolvePrismaType, z as applyAlterTableOperation, za as QuerySchemaSelect, zc as MigrationClass, zi as UpdateSpec, zn as MigrateFreshCommand, zo as RelatedModelClass, zr as AdapterModelStructure, zs as JoinSource, zt as markMigrationRun } from "./index-Cot4hmHA.mjs";
|
|
2
2
|
export { AdapterBindableModel, AdapterCapabilities, AdapterCapability, AdapterDatabaseCreationResult, AdapterInspectionRequest, AdapterModelFieldStructure, AdapterModelIntrospectionOptions, AdapterModelStructure, AdapterQueryInspection, AdapterQueryOperation, AdapterTransactionContext, AggregateExpression, AggregateExpressionNode, AggregateOperation, AggregateSelection, AggregateSpec, AppliedMigrationEntry, AppliedMigrationRun, AppliedMigrationsState, Arkorm, ArkormBootContext, ArkormCollection, ArkormConfig, ArkormDebugEvent, ArkormDebugHandler, ArkormErrorContext, ArkormException, ArkormModelNameRegistry, ArkormModelRegistry, Arkormx, Attribute, AttributeCreateInput, AttributeOptions, AttributeOrderBy, AttributeQuerySchema, AttributeSchemaDelegate, AttributeSelect, AttributeUpdateInput, AttributeWhereInput, BelongsToManyRelationMetadata, BelongsToRelationMetadata, BinaryExpressionNode, CaseExpression, CaseExpressionBranch, CaseExpressionNode, CastDefinition, CastHandler, CastMap, CastType, ChunkCallback, CliApp, ClientResolver, ColumnExpressionNode, ColumnMap, DB, DatabaseAdapter, DatabasePrimitive, DatabaseRow, DatabaseRows, DatabaseTableOptions, DatabaseTablePersistedMetadataOptions, DatabaseValue, DbCommand, DelegateCreateData, DelegateFindManyArgs, DelegateForModelSchema, DelegateInclude, DelegateOrderBy, DelegateRow, DelegateRows, DelegateSelect, DelegateUniqueWhere, DelegateUpdateArgs, DelegateUpdateData, DelegateWhere, DeleteManySpec, DeleteSpec, EachCallback, EagerLoadConstraint, EagerLoadMap, EagerLoadQueryForRelationship, EagerLoadRelations, EnumBuilder, Expression, ExpressionBinaryOperator, ExpressionBuilder, ExpressionJsonCast, ExpressionNode, ExpressionSelectMap, FactoryAttributeResolver, FactoryAttributes, FactoryCallback, FactoryDefinition, FactoryDefinitionAttributes, FactoryModelConstructor, FactoryRelationshipResolver, FactoryState, ForeignKeyBuilder, FunctionExpressionNode, GenerateMigrationOptions, GeneratedColumnExpression, GeneratedMigrationFile, GetUserConfig, GlobalScope, GroupByAggregateRow, GroupByAggregateSpec, HasManyRelationMetadata, HasManyThroughRelationMetadata, HasOneRelationMetadata, HasOneThroughRelationMetadata, InExpressionNode, InitCommand, InlineFactory, InsertManySpec, InsertSpec, JoinClause, JoinOn, JoinSource, JsonExpression, JsonExpressionNode, KyselyDatabaseAdapter, LengthAwarePaginator, LoadedRuntimeModule, MIGRATION_BRAND, MakeFactoryCommand, MakeMigrationCommand, MakeModelCommand, MakeSeederCommand, MaybePromise, MigrateCommand, MigrateFreshCommand, MigrateRollbackCommand, Migration, MigrationClass, MigrationHistoryCommand, MigrationInstanceLike, MissingDelegateException, Model, ModelAttributeValue, ModelAttributes, ModelAttributesOf, ModelCreateData, ModelDeclaredAttributeKey, ModelEventDispatcher, ModelEventHandler, ModelEventHandlerConstructor, ModelEventListener, ModelEventName, ModelFactory, ModelLifecycleState, ModelMetadata, ModelNotFoundException, ModelOrderByInput, ModelQuerySchemaLike, ModelRelationshipKey, ModelRelationshipResult, ModelStatic, ModelTableCase, ModelUpdateData, ModelWhereInput, ModelsSyncCommand, MorphManyRelationMetadata, MorphOneRelationMetadata, MorphToManyRelationMetadata, MorphToRelationMetadata, MorphedByManyRelationMetadata, NamingCase, NullCheckExpressionNode, PRISMA_ENUM_MEMBER_REGEX, PRISMA_ENUM_REGEX, PRISMA_MODEL_REGEX, PaginationCurrentPageResolver, PaginationMeta, PaginationOptions, PaginationURLDriver, PaginationURLDriverFactory, Paginator, PartitionedSelectSpec, PersistedColumnMappingsState, PersistedMetadataFeatures, PersistedPrimaryKeyGeneration, PersistedTableMetadata, PersistedTimestampColumn, PivotModel, PivotModelStatic, PrimaryKeyGeneration, PrimaryKeyGenerationPlanner, PrismaClientLike, PrismaDatabaseAdapter, PrismaDelegateLike, PrismaDelegateMap, PrismaDelegateNameMapping, PrismaFindManyArgsLike, PrismaLikeInclude, PrismaLikeOrderBy, PrismaLikeScalarFilter, PrismaLikeSelect, PrismaLikeSortOrder, PrismaLikeWhereInput, PrismaMigrationWorkflowOptions, PrismaSchemaSyncOptions, PrismaTransactionCallback, PrismaTransactionCapableClient, PrismaTransactionContext, PrismaTransactionOptions, QueryBuilder, QueryColumnComparisonCondition, QueryComparisonCondition, QueryComparisonOperator, QueryCondition, QueryConstraintException, QueryDayCondition, QueryExecutionException, QueryExecutionExceptionContext, QueryExistsCondition, QueryExpressionCondition, QueryFullTextCondition, QueryGroupByItem, QueryGroupCondition, QueryJoin, QueryJoinBoolean, QueryJoinColumnConstraint, QueryJoinConstraint, QueryJoinNestedConstraint, QueryJoinNullConstraint, QueryJoinRawConstraint, QueryJoinType, QueryJoinValueConstraint, QueryJsonCondition, QueryJsonConditionKind, QueryLogicalOperator, QueryNotCondition, QueryOrderBy, QueryRawCondition, QueryScalarComparisonOperator, QuerySchemaCreateData, QuerySchemaFindManyArgs, QuerySchemaForModel, QuerySchemaForModelInstance, QuerySchemaInclude, QuerySchemaOrderBy, QuerySchemaRow, QuerySchemaRows, QuerySchemaSelect, QuerySchemaUniqueWhere, QuerySchemaUpdateArgs, QuerySchemaUpdateData, QuerySchemaWhere, QuerySelectColumn, QueryTarget, QueryTimeCondition, RawExpressionNode, RawQuerySpec, RawSelectInput, RegisteredFactory, RegisteredModel, RegisteredModelClass, RegisteredModelInstance, RegisteredModelName, RelatedModelClass, RelatedModelForRelationship, RelatedModelFromResult, RelationAggregateConstraint, RelationAggregateInput, RelationAggregateSpec, RelationAggregateType, RelationColumnLookupSpec, RelationConstraint, RelationDefaultResolver, RelationDefaultValue, RelationFilterSpec, RelationLoadPlan, RelationLoadSpec, RelationMetadata, RelationMetadataProvider, RelationMetadataType, RelationResolutionException, RelationResult, RelationResultCache, RelationTableLookupSpec, RelationshipModelStatic, RuntimeClientLike, RuntimeConstructor, RuntimeModuleLoader, RuntimePathInput, RuntimePathKey, RuntimePathMap, SEEDER_BRAND, SchemaBuilder, SchemaColumn, SchemaColumnType, SchemaForeignKey, SchemaForeignKeyAction, SchemaIndex, SchemaOperation, SchemaPrimaryKey, SchemaTableAlterOperation, SchemaTableCreateOperation, SchemaTableDropOperation, SchemaUniqueConstraint, ScopeNotDefinedException, SeedCommand, Seeder, SeederCallArgument, SeederConstructor, SeederInput, SelectSpec, Serializable, SimplePaginationMeta, SoftDeleteConfig, SoftDeleteQueryMode, SortDirection, TableBuilder, TimestampColumnBehavior, TimestampNames, TimestampNaming, TransactionCallback, TransactionCapableClient, TransactionContext, TransactionOptions, URLDriver, UniqueConstraintResolutionException, UnsupportedAdapterFeatureException, UpdateManySpec, UpdateSpec, UpsertSpec, ValueExpressionNode, WhereCallback, applyAlterTableOperation, applyCreateTableOperation, applyDropTableOperation, applyMigrationRollbackToDatabase, applyMigrationRollbackToPrismaSchema, applyMigrationToDatabase, applyMigrationToPrismaSchema, applyOperationsToPersistedColumnMappingsState, applyOperationsToPrismaSchema, avg, awaitConfiguredModelsRegistration, bindAdapterToModels, buildEnumBlock, buildFieldLine, buildIndexLine, buildInverseRelationLine, buildMigrationIdentity, buildMigrationRunId, buildMigrationSource, buildModelBlock, buildPrimaryKeyLine, buildRelationLine, buildUniqueConstraintLine, caseWhen, coalesce, col, computeMigrationChecksum, configureArkormRuntime, count, createEmptyAppliedMigrationsState, createEmptyPersistedColumnMappingsState, createKyselyAdapter, createMigrationTimestamp, createPrismaAdapter, createPrismaCompatibilityAdapter, createPrismaDatabaseAdapter, createPrismaDelegateMap, defineConfig, defineFactory, deleteAppliedMigrationsStateFromStore, deletePersistedColumnMappingsState, deriveCollectionFieldName, deriveInverseRelationAlias, deriveRelationAlias, deriveRelationFieldName, deriveSingularFieldName, disposeArkormRuntime, emitRuntimeDebugEvent, ensureArkormConfigLoading, escapeRegex, expressionBuilder, findAppliedMigration, findEnumBlock, findModelBlock, fn, formatDefaultValue, formatEnumDefaultValue, formatRelationAction, fromExpressionNode, generateMigrationFile, getActiveTransactionAdapter, getActiveTransactionClient, getDefaultStubsPath, getLastBatchMigrations, getLastMigrationRun, getLatestAppliedMigrations, getMigrationPlan, getModel, getPersistedColumnMap, getPersistedEnumMap, getPersistedEnumTsType, getPersistedPrimaryKeyGeneration, getPersistedTableMetadata, getPersistedTimestampColumns, getRegisteredFactories, getRegisteredMigrations, getRegisteredModels, getRegisteredPaths, getRegisteredSeeders, getRuntimeAdapter, getRuntimeClient, getRuntimeCompatibilityAdapter, getRuntimeDebugHandler, getRuntimePaginationCurrentPageResolver, getRuntimePaginationURLDriverFactory, getRuntimePrismaClient, getUserConfig, inferDelegateName, isDelegateLike, isMigrationApplied, isQuerySchemaLike, isTransactionCapableClient, json, loadArkormConfig, loadFactoriesFrom, loadMigrationsFrom, loadModelsFrom, loadSeedersFrom, markMigrationApplied, markMigrationRun, max, min, pad, raw, readAppliedMigrationsState, readAppliedMigrationsStateFromStore, readPersistedColumnMappingsState, rebuildPersistedColumnMappingsState, registerFactories, registerMigrations, registerModels, registerPaths, registerSeeders, removeAppliedMigration, resetArkormRuntimeForTests, resetPersistedColumnMappingsCache, resetRuntimeRegistryForTests, resolveCast, resolveColumnMappingsFilePath, resolveEnumName, resolveGeneratedExpression, resolveMigrationClassName, resolveMigrationStateFilePath, resolvePersistedMetadataFeatures, resolvePrismaType, resolveRegisteredModel, resolveRuntimeCompatibilityQuerySchema, resolveRuntimeCompatibilityQuerySchemaOrThrow, runArkormTransaction, runMigrationWithPrisma, runPrismaCommand, stripPrismaSchemaModelsAndEnums, sum, supportsDatabaseCreation, supportsDatabaseMigrationExecution, supportsDatabaseMigrationState, supportsDatabaseReset, syncPersistedColumnMappingsFromState, toMigrationFileSlug, toModelName, val, validatePersistedMetadataFeaturesForMigrations, where, writeAppliedMigrationsState, writeAppliedMigrationsStateToStore, writePersistedColumnMappingsState };
|