arkormx 2.12.10 → 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/{index-BYL9S6st.d.mts → index-Cot4hmHA.d.mts} +20 -0
- package/dist/{index-CDSTYl6q.d.cts → index-DdMKdS88.d.cts} +20 -0
- package/dist/index.cjs +64 -12
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +64 -12
- package/dist/relationship/index.d.cts +1 -1
- package/dist/relationship/index.d.mts +1 -1
- package/package.json +1 -1
|
@@ -6544,10 +6544,30 @@ declare class KyselyDatabaseAdapter implements DatabaseAdapter {
|
|
|
6544
6544
|
private buildWhereClause;
|
|
6545
6545
|
private buildPaginationClause;
|
|
6546
6546
|
private buildColumnReference;
|
|
6547
|
+
/**
|
|
6548
|
+
* Renders the relation's source table, aliasing it when a self-referential
|
|
6549
|
+
* relation would otherwise put the same name on both sides of a correlated
|
|
6550
|
+
* subquery.
|
|
6551
|
+
*
|
|
6552
|
+
* @param sourceTable
|
|
6553
|
+
* @param table
|
|
6554
|
+
* @returns
|
|
6555
|
+
*/
|
|
6556
|
+
private buildTableSource;
|
|
6547
6557
|
private buildRelatedTargetFromRelation;
|
|
6548
6558
|
private resolveMappedTable;
|
|
6549
6559
|
private buildBelongsToManyJoinSource;
|
|
6550
6560
|
private buildThroughJoinSource;
|
|
6561
|
+
/**
|
|
6562
|
+
* The value a polymorphic child stores in its type column for this parent: the
|
|
6563
|
+
* parent model's class name, matching what the relationship writes on create
|
|
6564
|
+
* and what the set-based eager loader groups parents by.
|
|
6565
|
+
*
|
|
6566
|
+
* @param target
|
|
6567
|
+
* @param relation
|
|
6568
|
+
* @returns
|
|
6569
|
+
*/
|
|
6570
|
+
private resolveMorphType;
|
|
6551
6571
|
private buildRelatedJoinCondition;
|
|
6552
6572
|
private combineConditions;
|
|
6553
6573
|
private buildRelationFilterExpression;
|
|
@@ -6544,10 +6544,30 @@ declare class KyselyDatabaseAdapter implements DatabaseAdapter {
|
|
|
6544
6544
|
private buildWhereClause;
|
|
6545
6545
|
private buildPaginationClause;
|
|
6546
6546
|
private buildColumnReference;
|
|
6547
|
+
/**
|
|
6548
|
+
* Renders the relation's source table, aliasing it when a self-referential
|
|
6549
|
+
* relation would otherwise put the same name on both sides of a correlated
|
|
6550
|
+
* subquery.
|
|
6551
|
+
*
|
|
6552
|
+
* @param sourceTable
|
|
6553
|
+
* @param table
|
|
6554
|
+
* @returns
|
|
6555
|
+
*/
|
|
6556
|
+
private buildTableSource;
|
|
6547
6557
|
private buildRelatedTargetFromRelation;
|
|
6548
6558
|
private resolveMappedTable;
|
|
6549
6559
|
private buildBelongsToManyJoinSource;
|
|
6550
6560
|
private buildThroughJoinSource;
|
|
6561
|
+
/**
|
|
6562
|
+
* The value a polymorphic child stores in its type column for this parent: the
|
|
6563
|
+
* parent model's class name, matching what the relationship writes on create
|
|
6564
|
+
* and what the set-based eager loader groups parents by.
|
|
6565
|
+
*
|
|
6566
|
+
* @param target
|
|
6567
|
+
* @param relation
|
|
6568
|
+
* @returns
|
|
6569
|
+
*/
|
|
6570
|
+
private resolveMorphType;
|
|
6551
6571
|
private buildRelatedJoinCondition;
|
|
6552
6572
|
private combineConditions;
|
|
6553
6573
|
private buildRelationFilterExpression;
|
package/dist/index.cjs
CHANGED
|
@@ -1019,6 +1019,19 @@ var KyselyDatabaseAdapter = class KyselyDatabaseAdapter {
|
|
|
1019
1019
|
buildColumnReference(table, column) {
|
|
1020
1020
|
return kysely.sql`${kysely.sql.table(table)}.${kysely.sql.id(column)}`;
|
|
1021
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
|
+
}
|
|
1022
1035
|
buildRelatedTargetFromRelation(target, relation) {
|
|
1023
1036
|
const metadata = target.model?.getRelationMetadata(relation);
|
|
1024
1037
|
if (!metadata) throw new require_relationship.UnsupportedAdapterFeatureException(`Relation [${relation}] could not be resolved for SQL-backed relation execution.`, {
|
|
@@ -1026,7 +1039,7 @@ var KyselyDatabaseAdapter = class KyselyDatabaseAdapter {
|
|
|
1026
1039
|
model: target.modelName,
|
|
1027
1040
|
relation
|
|
1028
1041
|
});
|
|
1029
|
-
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.`, {
|
|
1030
1043
|
operation: "adapter.relation.metadata",
|
|
1031
1044
|
model: target.modelName,
|
|
1032
1045
|
relation,
|
|
@@ -1036,12 +1049,15 @@ var KyselyDatabaseAdapter = class KyselyDatabaseAdapter {
|
|
|
1036
1049
|
}
|
|
1037
1050
|
});
|
|
1038
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;
|
|
1039
1054
|
return {
|
|
1040
1055
|
metadata,
|
|
1056
|
+
sourceTable,
|
|
1041
1057
|
relatedTarget: {
|
|
1042
1058
|
model: metadata.relatedModel,
|
|
1043
1059
|
modelName: metadata.relatedModel.name,
|
|
1044
|
-
table
|
|
1060
|
+
table,
|
|
1045
1061
|
primaryKey: relatedMetadata.primaryKey,
|
|
1046
1062
|
columns: relatedMetadata.columns,
|
|
1047
1063
|
softDelete: relatedMetadata.softDelete
|
|
@@ -1051,12 +1067,12 @@ var KyselyDatabaseAdapter = class KyselyDatabaseAdapter {
|
|
|
1051
1067
|
resolveMappedTable(table) {
|
|
1052
1068
|
return this.mapping[table] ?? table;
|
|
1053
1069
|
}
|
|
1054
|
-
buildBelongsToManyJoinSource(outerTarget, relatedTarget, metadata) {
|
|
1070
|
+
buildBelongsToManyJoinSource(outerTarget, relatedTarget, metadata, sourceTable) {
|
|
1055
1071
|
const outerTable = this.resolveTable(outerTarget);
|
|
1056
1072
|
const relatedTable = this.resolveTable(relatedTarget);
|
|
1057
1073
|
const pivotTable = this.resolveMappedTable(metadata.throughTable);
|
|
1058
1074
|
return {
|
|
1059
|
-
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)}`,
|
|
1060
1076
|
condition: kysely.sql`
|
|
1061
1077
|
${this.buildColumnReference(pivotTable, metadata.foreignPivotKey)}
|
|
1062
1078
|
=
|
|
@@ -1064,12 +1080,12 @@ var KyselyDatabaseAdapter = class KyselyDatabaseAdapter {
|
|
|
1064
1080
|
`
|
|
1065
1081
|
};
|
|
1066
1082
|
}
|
|
1067
|
-
buildThroughJoinSource(outerTarget, relatedTarget, metadata) {
|
|
1083
|
+
buildThroughJoinSource(outerTarget, relatedTarget, metadata, sourceTable) {
|
|
1068
1084
|
const outerTable = this.resolveTable(outerTarget);
|
|
1069
1085
|
const relatedTable = this.resolveTable(relatedTarget);
|
|
1070
1086
|
const throughTable = this.resolveMappedTable(metadata.throughTable);
|
|
1071
1087
|
return {
|
|
1072
|
-
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)}`,
|
|
1073
1089
|
condition: kysely.sql`
|
|
1074
1090
|
${this.buildColumnReference(throughTable, metadata.firstKey)}
|
|
1075
1091
|
=
|
|
@@ -1077,12 +1093,35 @@ var KyselyDatabaseAdapter = class KyselyDatabaseAdapter {
|
|
|
1077
1093
|
`
|
|
1078
1094
|
};
|
|
1079
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
|
+
}
|
|
1080
1118
|
buildRelatedJoinCondition(outerTarget, relation) {
|
|
1081
|
-
const { metadata, relatedTarget } = this.buildRelatedTargetFromRelation(outerTarget, relation);
|
|
1119
|
+
const { metadata, relatedTarget, sourceTable } = this.buildRelatedTargetFromRelation(outerTarget, relation);
|
|
1082
1120
|
const outerTable = this.resolveTable(outerTarget);
|
|
1083
1121
|
const relatedTable = this.resolveTable(relatedTarget);
|
|
1122
|
+
const relatedFrom = this.buildTableSource(sourceTable, relatedTable);
|
|
1084
1123
|
if (metadata.type === "belongsToMany") {
|
|
1085
|
-
const joinSource = this.buildBelongsToManyJoinSource(outerTarget, relatedTarget, metadata);
|
|
1124
|
+
const joinSource = this.buildBelongsToManyJoinSource(outerTarget, relatedTarget, metadata, sourceTable);
|
|
1086
1125
|
return {
|
|
1087
1126
|
relatedTarget,
|
|
1088
1127
|
from: joinSource.from,
|
|
@@ -1090,7 +1129,7 @@ var KyselyDatabaseAdapter = class KyselyDatabaseAdapter {
|
|
|
1090
1129
|
};
|
|
1091
1130
|
}
|
|
1092
1131
|
if (metadata.type === "hasOneThrough" || metadata.type === "hasManyThrough") {
|
|
1093
|
-
const joinSource = this.buildThroughJoinSource(outerTarget, relatedTarget, metadata);
|
|
1132
|
+
const joinSource = this.buildThroughJoinSource(outerTarget, relatedTarget, metadata, sourceTable);
|
|
1094
1133
|
return {
|
|
1095
1134
|
relatedTarget,
|
|
1096
1135
|
from: joinSource.from,
|
|
@@ -1099,16 +1138,29 @@ var KyselyDatabaseAdapter = class KyselyDatabaseAdapter {
|
|
|
1099
1138
|
}
|
|
1100
1139
|
if (metadata.type === "hasMany" || metadata.type === "hasOne") return {
|
|
1101
1140
|
relatedTarget,
|
|
1102
|
-
from:
|
|
1141
|
+
from: relatedFrom,
|
|
1103
1142
|
condition: kysely.sql`
|
|
1104
1143
|
${this.buildColumnReference(relatedTable, this.mapColumn(relatedTarget, metadata.foreignKey))}
|
|
1105
1144
|
=
|
|
1106
1145
|
${this.buildColumnReference(outerTable, this.mapColumn(outerTarget, metadata.localKey))}
|
|
1107
1146
|
`
|
|
1108
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
|
+
};
|
|
1109
1161
|
return {
|
|
1110
1162
|
relatedTarget,
|
|
1111
|
-
from:
|
|
1163
|
+
from: relatedFrom,
|
|
1112
1164
|
condition: kysely.sql`
|
|
1113
1165
|
${this.buildColumnReference(relatedTable, this.mapColumn(relatedTarget, metadata.ownerKey))}
|
|
1114
1166
|
=
|
|
@@ -8806,7 +8858,7 @@ var QueryBuilder = class QueryBuilder {
|
|
|
8806
8858
|
}
|
|
8807
8859
|
isSqlRelationFeatureMetadata(metadata) {
|
|
8808
8860
|
if (!metadata) return false;
|
|
8809
|
-
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";
|
|
8810
8862
|
}
|
|
8811
8863
|
async filterModelsByRelationConstraints(models, relationCache, baseIds) {
|
|
8812
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-CDSTYl6q.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-BYL9S6st.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 };
|
package/dist/index.mjs
CHANGED
|
@@ -1018,6 +1018,19 @@ var KyselyDatabaseAdapter = class KyselyDatabaseAdapter {
|
|
|
1018
1018
|
buildColumnReference(table, column) {
|
|
1019
1019
|
return sql`${sql.table(table)}.${sql.id(column)}`;
|
|
1020
1020
|
}
|
|
1021
|
+
/**
|
|
1022
|
+
* Renders the relation's source table, aliasing it when a self-referential
|
|
1023
|
+
* relation would otherwise put the same name on both sides of a correlated
|
|
1024
|
+
* subquery.
|
|
1025
|
+
*
|
|
1026
|
+
* @param sourceTable
|
|
1027
|
+
* @param table
|
|
1028
|
+
* @returns
|
|
1029
|
+
*/
|
|
1030
|
+
buildTableSource(sourceTable, table) {
|
|
1031
|
+
if (sourceTable === table) return sql`${sql.table(table)}`;
|
|
1032
|
+
return sql`${sql.table(sourceTable)} as ${sql.table(table)}`;
|
|
1033
|
+
}
|
|
1021
1034
|
buildRelatedTargetFromRelation(target, relation) {
|
|
1022
1035
|
const metadata = target.model?.getRelationMetadata(relation);
|
|
1023
1036
|
if (!metadata) throw new UnsupportedAdapterFeatureException(`Relation [${relation}] could not be resolved for SQL-backed relation execution.`, {
|
|
@@ -1025,7 +1038,7 @@ var KyselyDatabaseAdapter = class KyselyDatabaseAdapter {
|
|
|
1025
1038
|
model: target.modelName,
|
|
1026
1039
|
relation
|
|
1027
1040
|
});
|
|
1028
|
-
if (metadata.type !== "hasMany" && metadata.type !== "hasOne" && metadata.type !== "belongsTo" && metadata.type !== "belongsToMany" && metadata.type !== "hasOneThrough" && metadata.type !== "hasManyThrough") throw new UnsupportedAdapterFeatureException(`Relation [${relation}] is not supported for SQL-backed relation execution by the Kysely adapter yet.`, {
|
|
1041
|
+
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 UnsupportedAdapterFeatureException(`Relation [${relation}] is not supported for SQL-backed relation execution by the Kysely adapter yet.`, {
|
|
1029
1042
|
operation: "adapter.relation.metadata",
|
|
1030
1043
|
model: target.modelName,
|
|
1031
1044
|
relation,
|
|
@@ -1035,12 +1048,15 @@ var KyselyDatabaseAdapter = class KyselyDatabaseAdapter {
|
|
|
1035
1048
|
}
|
|
1036
1049
|
});
|
|
1037
1050
|
const relatedMetadata = metadata.relatedModel.getModelMetadata();
|
|
1051
|
+
const sourceTable = this.resolveMappedTable(relatedMetadata.table);
|
|
1052
|
+
const table = sourceTable === this.resolveTable(target) ? `${sourceTable}_arkorm_self` : relatedMetadata.table;
|
|
1038
1053
|
return {
|
|
1039
1054
|
metadata,
|
|
1055
|
+
sourceTable,
|
|
1040
1056
|
relatedTarget: {
|
|
1041
1057
|
model: metadata.relatedModel,
|
|
1042
1058
|
modelName: metadata.relatedModel.name,
|
|
1043
|
-
table
|
|
1059
|
+
table,
|
|
1044
1060
|
primaryKey: relatedMetadata.primaryKey,
|
|
1045
1061
|
columns: relatedMetadata.columns,
|
|
1046
1062
|
softDelete: relatedMetadata.softDelete
|
|
@@ -1050,12 +1066,12 @@ var KyselyDatabaseAdapter = class KyselyDatabaseAdapter {
|
|
|
1050
1066
|
resolveMappedTable(table) {
|
|
1051
1067
|
return this.mapping[table] ?? table;
|
|
1052
1068
|
}
|
|
1053
|
-
buildBelongsToManyJoinSource(outerTarget, relatedTarget, metadata) {
|
|
1069
|
+
buildBelongsToManyJoinSource(outerTarget, relatedTarget, metadata, sourceTable) {
|
|
1054
1070
|
const outerTable = this.resolveTable(outerTarget);
|
|
1055
1071
|
const relatedTable = this.resolveTable(relatedTarget);
|
|
1056
1072
|
const pivotTable = this.resolveMappedTable(metadata.throughTable);
|
|
1057
1073
|
return {
|
|
1058
|
-
from: sql`${
|
|
1074
|
+
from: sql`${this.buildTableSource(sourceTable, relatedTable)} inner join ${sql.table(pivotTable)} on ${this.buildColumnReference(relatedTable, this.mapColumn(relatedTarget, metadata.relatedKey))} = ${this.buildColumnReference(pivotTable, metadata.relatedPivotKey)}`,
|
|
1059
1075
|
condition: sql`
|
|
1060
1076
|
${this.buildColumnReference(pivotTable, metadata.foreignPivotKey)}
|
|
1061
1077
|
=
|
|
@@ -1063,12 +1079,12 @@ var KyselyDatabaseAdapter = class KyselyDatabaseAdapter {
|
|
|
1063
1079
|
`
|
|
1064
1080
|
};
|
|
1065
1081
|
}
|
|
1066
|
-
buildThroughJoinSource(outerTarget, relatedTarget, metadata) {
|
|
1082
|
+
buildThroughJoinSource(outerTarget, relatedTarget, metadata, sourceTable) {
|
|
1067
1083
|
const outerTable = this.resolveTable(outerTarget);
|
|
1068
1084
|
const relatedTable = this.resolveTable(relatedTarget);
|
|
1069
1085
|
const throughTable = this.resolveMappedTable(metadata.throughTable);
|
|
1070
1086
|
return {
|
|
1071
|
-
from: sql`${
|
|
1087
|
+
from: sql`${this.buildTableSource(sourceTable, relatedTable)} inner join ${sql.table(throughTable)} on ${this.buildColumnReference(relatedTable, this.mapColumn(relatedTarget, metadata.secondKey))} = ${this.buildColumnReference(throughTable, metadata.secondLocalKey)}`,
|
|
1072
1088
|
condition: sql`
|
|
1073
1089
|
${this.buildColumnReference(throughTable, metadata.firstKey)}
|
|
1074
1090
|
=
|
|
@@ -1076,12 +1092,35 @@ var KyselyDatabaseAdapter = class KyselyDatabaseAdapter {
|
|
|
1076
1092
|
`
|
|
1077
1093
|
};
|
|
1078
1094
|
}
|
|
1095
|
+
/**
|
|
1096
|
+
* The value a polymorphic child stores in its type column for this parent: the
|
|
1097
|
+
* parent model's class name, matching what the relationship writes on create
|
|
1098
|
+
* and what the set-based eager loader groups parents by.
|
|
1099
|
+
*
|
|
1100
|
+
* @param target
|
|
1101
|
+
* @param relation
|
|
1102
|
+
* @returns
|
|
1103
|
+
*/
|
|
1104
|
+
resolveMorphType(target, relation) {
|
|
1105
|
+
const morphType = target.modelName ?? target.model?.name;
|
|
1106
|
+
if (!morphType) throw new UnsupportedAdapterFeatureException(`Relation [${relation}] needs a named parent model to resolve its polymorphic type.`, {
|
|
1107
|
+
operation: "adapter.relation.metadata",
|
|
1108
|
+
model: target.modelName,
|
|
1109
|
+
relation,
|
|
1110
|
+
meta: {
|
|
1111
|
+
feature: "relationFilters",
|
|
1112
|
+
relationType: "morph"
|
|
1113
|
+
}
|
|
1114
|
+
});
|
|
1115
|
+
return morphType;
|
|
1116
|
+
}
|
|
1079
1117
|
buildRelatedJoinCondition(outerTarget, relation) {
|
|
1080
|
-
const { metadata, relatedTarget } = this.buildRelatedTargetFromRelation(outerTarget, relation);
|
|
1118
|
+
const { metadata, relatedTarget, sourceTable } = this.buildRelatedTargetFromRelation(outerTarget, relation);
|
|
1081
1119
|
const outerTable = this.resolveTable(outerTarget);
|
|
1082
1120
|
const relatedTable = this.resolveTable(relatedTarget);
|
|
1121
|
+
const relatedFrom = this.buildTableSource(sourceTable, relatedTable);
|
|
1083
1122
|
if (metadata.type === "belongsToMany") {
|
|
1084
|
-
const joinSource = this.buildBelongsToManyJoinSource(outerTarget, relatedTarget, metadata);
|
|
1123
|
+
const joinSource = this.buildBelongsToManyJoinSource(outerTarget, relatedTarget, metadata, sourceTable);
|
|
1085
1124
|
return {
|
|
1086
1125
|
relatedTarget,
|
|
1087
1126
|
from: joinSource.from,
|
|
@@ -1089,7 +1128,7 @@ var KyselyDatabaseAdapter = class KyselyDatabaseAdapter {
|
|
|
1089
1128
|
};
|
|
1090
1129
|
}
|
|
1091
1130
|
if (metadata.type === "hasOneThrough" || metadata.type === "hasManyThrough") {
|
|
1092
|
-
const joinSource = this.buildThroughJoinSource(outerTarget, relatedTarget, metadata);
|
|
1131
|
+
const joinSource = this.buildThroughJoinSource(outerTarget, relatedTarget, metadata, sourceTable);
|
|
1093
1132
|
return {
|
|
1094
1133
|
relatedTarget,
|
|
1095
1134
|
from: joinSource.from,
|
|
@@ -1098,16 +1137,29 @@ var KyselyDatabaseAdapter = class KyselyDatabaseAdapter {
|
|
|
1098
1137
|
}
|
|
1099
1138
|
if (metadata.type === "hasMany" || metadata.type === "hasOne") return {
|
|
1100
1139
|
relatedTarget,
|
|
1101
|
-
from:
|
|
1140
|
+
from: relatedFrom,
|
|
1102
1141
|
condition: sql`
|
|
1103
1142
|
${this.buildColumnReference(relatedTable, this.mapColumn(relatedTarget, metadata.foreignKey))}
|
|
1104
1143
|
=
|
|
1105
1144
|
${this.buildColumnReference(outerTable, this.mapColumn(outerTarget, metadata.localKey))}
|
|
1106
1145
|
`
|
|
1107
1146
|
};
|
|
1147
|
+
if (metadata.type === "morphOne" || metadata.type === "morphMany") return {
|
|
1148
|
+
relatedTarget,
|
|
1149
|
+
from: relatedFrom,
|
|
1150
|
+
condition: sql`
|
|
1151
|
+
${this.buildColumnReference(relatedTable, this.mapColumn(relatedTarget, metadata.morphIdColumn))}
|
|
1152
|
+
=
|
|
1153
|
+
${this.buildColumnReference(outerTable, this.mapColumn(outerTarget, metadata.localKey))}
|
|
1154
|
+
and
|
|
1155
|
+
${this.buildColumnReference(relatedTable, this.mapColumn(relatedTarget, metadata.morphTypeColumn))}
|
|
1156
|
+
=
|
|
1157
|
+
${this.resolveMorphType(outerTarget, relation)}
|
|
1158
|
+
`
|
|
1159
|
+
};
|
|
1108
1160
|
return {
|
|
1109
1161
|
relatedTarget,
|
|
1110
|
-
from:
|
|
1162
|
+
from: relatedFrom,
|
|
1111
1163
|
condition: sql`
|
|
1112
1164
|
${this.buildColumnReference(relatedTable, this.mapColumn(relatedTarget, metadata.ownerKey))}
|
|
1113
1165
|
=
|
|
@@ -8805,7 +8857,7 @@ var QueryBuilder = class QueryBuilder {
|
|
|
8805
8857
|
}
|
|
8806
8858
|
isSqlRelationFeatureMetadata(metadata) {
|
|
8807
8859
|
if (!metadata) return false;
|
|
8808
|
-
return metadata.type === "hasMany" || metadata.type === "hasOne" || metadata.type === "belongsTo" || metadata.type === "belongsToMany" || metadata.type === "hasOneThrough" || metadata.type === "hasManyThrough";
|
|
8860
|
+
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";
|
|
8809
8861
|
}
|
|
8810
8862
|
async filterModelsByRelationConstraints(models, relationCache, baseIds) {
|
|
8811
8863
|
return (await Promise.all(models.map(async (model) => {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Cs as Relation, Ss as BelongsToManyRelation, _s as HasOneRelation, bs as BelongsToRelation, ds as MorphToRelation, fs as MorphedByManyRelation, gs as HasOneThroughRelation, hs as MorphManyRelation, ms as MorphOneRelation, ps as MorphToManyRelation, us as SetBasedEagerLoader, vs as HasManyThroughRelation, ws as RelationTableLoader, xs as SingleResultRelation, ys as HasManyRelation } from "../index-
|
|
1
|
+
import { Cs as Relation, Ss as BelongsToManyRelation, _s as HasOneRelation, bs as BelongsToRelation, ds as MorphToRelation, fs as MorphedByManyRelation, gs as HasOneThroughRelation, hs as MorphManyRelation, ms as MorphOneRelation, ps as MorphToManyRelation, us as SetBasedEagerLoader, vs as HasManyThroughRelation, ws as RelationTableLoader, xs as SingleResultRelation, ys as HasManyRelation } from "../index-DdMKdS88.cjs";
|
|
2
2
|
export { BelongsToManyRelation, BelongsToRelation, HasManyRelation, HasManyThroughRelation, HasOneRelation, HasOneThroughRelation, MorphManyRelation, MorphOneRelation, MorphToManyRelation, MorphToRelation, MorphedByManyRelation, Relation, RelationTableLoader, SetBasedEagerLoader, SingleResultRelation };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Cs as Relation, Ss as BelongsToManyRelation, _s as HasOneRelation, bs as BelongsToRelation, ds as MorphToRelation, fs as MorphedByManyRelation, gs as HasOneThroughRelation, hs as MorphManyRelation, ms as MorphOneRelation, ps as MorphToManyRelation, us as SetBasedEagerLoader, vs as HasManyThroughRelation, ws as RelationTableLoader, xs as SingleResultRelation, ys as HasManyRelation } from "../index-
|
|
1
|
+
import { Cs as Relation, Ss as BelongsToManyRelation, _s as HasOneRelation, bs as BelongsToRelation, ds as MorphToRelation, fs as MorphedByManyRelation, gs as HasOneThroughRelation, hs as MorphManyRelation, ms as MorphOneRelation, ps as MorphToManyRelation, us as SetBasedEagerLoader, vs as HasManyThroughRelation, ws as RelationTableLoader, xs as SingleResultRelation, ys as HasManyRelation } from "../index-Cot4hmHA.mjs";
|
|
2
2
|
export { BelongsToManyRelation, BelongsToRelation, HasManyRelation, HasManyThroughRelation, HasOneRelation, HasOneThroughRelation, MorphManyRelation, MorphOneRelation, MorphToManyRelation, MorphToRelation, MorphedByManyRelation, Relation, RelationTableLoader, SetBasedEagerLoader, SingleResultRelation };
|