arkormx 2.11.0 → 2.11.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.mjs +257 -44
- package/dist/{index-DggXDBiD.d.cts → index-KPekH7gI.d.mts} +155 -3
- package/dist/{index-DoqUdah-.d.mts → index-WJEmy3Yu.d.cts} +155 -3
- package/dist/index.cjs +349 -49
- package/dist/index.d.cts +2 -2
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +347 -50
- package/dist/relationship/index.cjs +1 -1
- package/dist/relationship/index.d.cts +1 -1
- package/dist/relationship/index.d.mts +1 -1
- package/dist/relationship/index.mjs +1 -1
- package/dist/{relationship-CP1xbMOa.mjs → relationship-4S2yHPIH.mjs} +67 -1
- package/dist/{relationship-IC-TAFyG.cjs → relationship-CQbj9Ahg.cjs} +78 -0
- package/package.json +5 -5
package/dist/index.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as buildRelationLine, $a as AttributeCreateInput, $i as DelegateUniqueWhere, $n as RuntimePathInput, $r as QueryDayCondition, $s as RawExpressionNode, $t as getPersistedColumnMap, A as isTransactionCapableClient, Aa as QuerySchemaOrderBy, Ac as SchemaForeignKey, Ai as SoftDeleteQueryMode, An as GeneratedColumnExpression, Ao as Expression, Ar as AdapterDatabaseCreationResult, As as Paginator, At as createEmptyAppliedMigrationsState, B as applyDropTableOperation, Ba as Serializable, Bc as TimestampNames, Bi as ArkormDebugHandler, Bn as MakeModelCommand, Bo as fromExpressionNode, Br as DatabaseAdapter, Bs as MaybePromise, Bt as removeAppliedMigration, C as getRuntimeDebugHandler, Ca as PrismaTransactionCallback, Cc as MigrationClass, Ci as QueryTimeCondition, Cn as ArkormException, Co as ModelWhereInput, Cr as PrismaDelegateNameMapping, Cs as JoinOn, Ct as supportsDatabaseMigrationExecution, D as getUserConfig, Da as QuerySchemaCreateData, Dc as PrismaSchemaSyncOptions, Di as RelationLoadPlan, Dn as SchemaBuilder, Do as Model, Dr as createKyselyAdapter, Ds as WhereCallback, Dt as buildMigrationIdentity, E as getRuntimePrismaClient, Ea as PrismaTransactionOptions, Ec as PrismaMigrationWorkflowOptions, Ei as RelationFilterSpec, En as Migration, Eo as RelatedModelClass, Er as KyselyDatabaseAdapter, Es as RelatedModelFromResult, Et as toModelName, F as PRISMA_ENUM_MEMBER_REGEX, Fa as QuerySchemaUpdateArgs, Fc as SchemaTableAlterOperation, Fi as AdapterBindableModel, Fn as MigrationHistoryCommand, Fo as coalesce, Fr as AdapterQueryOperation, Fs as FactoryDefinition, Ft as isMigrationApplied, G as applyOperationsToPrismaSchema, Ga as TransactionContext, Gi as ClientResolver, Gn as resolveCast, Go as sum, Gr as DeleteManySpec, Gs as ColumnExpressionNode, Gt as PersistedColumnMappingsState, H as applyMigrationRollbackToPrismaSchema, Ha as SoftDeleteConfig, Hi as CastHandler, Hn as MakeFactoryCommand, Ho as max, Hr as DatabaseRow, Hs as BinaryExpressionNode, Ht as supportsDatabaseMigrationState, I as PRISMA_ENUM_REGEX, Ia as QuerySchemaUpdateData, Ic as SchemaTableCreateOperation, Ii as AdapterQueryInspection, In as MigrateRollbackCommand, Io as col, Ir as AdapterTransactionContext, Is as FactoryDefinitionAttributes, It as markMigrationApplied, J as buildIndexLine, Ja as RelationshipModelStatic, Ji as DelegateInclude, Jn as Arkorm, Jo as InlineFactory, Jr as InsertSpec, Js as ExpressionNode, Jt as PersistedTableMetadata, K as buildEnumBlock, Ka as TransactionOptions, Ki as DelegateCreateData, Kn as Attribute, Ko as val, Kr as DeleteSpec, Ks as ExpressionBinaryOperator, Kt as PersistedMetadataFeatures, L as PRISMA_MODEL_REGEX, La as QuerySchemaWhere, Lc as SchemaTableDropOperation, Li as ArkormBootContext, Ln as MigrateFreshCommand, Lo as count, Lr as AggregateOperation, Ls as FactoryModelConstructor, Lt as markMigrationRun, M as resetArkormRuntimeForTests, Ma as QuerySchemaRows, Mc as SchemaIndex, Mi as UpdateManySpec, Mn as ForeignKeyBuilder, Mo as JsonExpression, Mr as AdapterModelFieldStructure, Ms as FactoryAttributeResolver, Mt as findAppliedMigration, N as runArkormTransaction, Na as QuerySchemaSelect, Nc as SchemaOperation, Ni as UpdateSpec, Nn as SeedCommand, No as avg, Nr as AdapterModelIntrospectionOptions, Ns as FactoryAttributes, Nt as getLastMigrationRun, O as isDelegateLike, Oa as QuerySchemaFindManyArgs, Oc as SchemaColumn, Oi as RelationLoadSpec, On as EnumBuilder, Oo as AggregateExpression, Or as AdapterCapabilities, Os as JoinClause, Ot as buildMigrationRunId, P as PrimaryKeyGenerationPlanner, Pa as QuerySchemaUniqueWhere, Pc as SchemaPrimaryKey, Pi as UpsertSpec, Pn as ModelsSyncCommand, Po as caseWhen, Pr as AdapterModelStructure, Ps as FactoryCallback, Pt as getLatestAppliedMigrations, Q as buildPrimaryKeyLine, Qa as QueryBuilder, Qi as DelegateSelect, Qn as RuntimeConstructor, Qr as QueryCondition, Qs as NullCheckExpressionNode, Qt as deletePersistedColumnMappingsState, R as applyAlterTableOperation, Ra as RawSelectInput, Rc as SchemaUniqueConstraint, Ri as ArkormConfig, Rn as MigrateCommand, Ro as expressionBuilder, Rr as AggregateSelection, Rs as FactoryRelationshipResolver, Rt as readAppliedMigrationsState, S as getRuntimeClient, Sa as PrismaLikeWhereInput, Sc as GeneratedMigrationFile, Si as QueryTarget, Sn as ArkormErrorContext, So as ModelUpdateData, Sr as PrismaDatabaseAdapter, Ss as EagerLoadRelations, St as supportsDatabaseCreation, T as getRuntimePaginationURLDriverFactory, Ta as PrismaTransactionContext, Tc as PrimaryKeyGeneration, Ti as RelationAggregateSpec, Tn as MIGRATION_BRAND, To as QuerySchemaForModelInstance, Tr as createPrismaDatabaseAdapter, Ts as RelatedModelForRelationship, Tt as toMigrationFileSlug, U as applyMigrationToDatabase, Ua as TransactionCallback, Ui as CastMap, Un as InitCommand, Uo as min, Ur as DatabaseRows, Us as CaseExpressionBranch, Ut as writeAppliedMigrationsState, V as applyMigrationRollbackToDatabase, Va as SimplePaginationMeta, Vc as TimestampNaming, Vi as CastDefinition, Vn as MakeMigrationCommand, Vo as json, Vr as DatabasePrimitive, Vs as AggregateExpressionNode, Vt as resolveMigrationStateFilePath, W as applyMigrationToPrismaSchema, Wa as TransactionCapableClient, Wi as CastType, Wn as CliApp, Wo as raw, Wr as DatabaseValue, Ws as CaseExpressionNode, Wt as writeAppliedMigrationsStateToStore, X as buildMigrationSource, Xa as GroupByAggregateRow, Xi as DelegateRow, Xn as RegisteredFactory, Xo as defineFactory, Xr as QueryComparisonCondition, Xs as InExpressionNode, Xt as applyOperationsToPersistedColumnMappingsState, Y as buildInverseRelationLine, Ya as ExpressionSelectMap, Yi as DelegateOrderBy, Yn as Arkormx, Yo as ModelFactory, Yr as QueryColumnComparisonCondition, Ys as FunctionExpressionNode, Yt as PersistedTimestampColumn, Z as buildModelBlock, Za as GroupByAggregateSpec, Zi as DelegateRows, Zn as RegisteredModel, Zr as QueryComparisonOperator, Zs as JsonExpressionNode, Zt as createEmptyPersistedColumnMappingsState, _ as ensureArkormConfigLoading, _a as PrismaLikeInclude, _c as RelationMetadataType, _i as QueryNotCondition, _n as QueryExecutionException, _o as ModelEventName, _r as SEEDER_BRAND, _s as RelationDefaultValue, _t as resolveMigrationClassName, a as getRuntimeCompatibilityAdapter, aa as GetUserConfig, ac as ColumnMap, ai as QueryJoin, an as readPersistedColumnMappingsState, ao as AttributeWhereInput, ar as getRegisteredPaths, at as deriveRelationFieldName, b as getDefaultStubsPath, ba as PrismaLikeSelect, bc as AppliedMigrationsState, bi as QueryScalarComparisonOperator, bn as ModelNotFoundException, bo as ModelRelationshipKey, br as SeederConstructor, bs as RelationResultCache, bt as runPrismaCommand, c as PrismaDelegateMap, ca as NamingCase, cc as HasOneRelationMetadata, ci as QueryJoinConstraint, cn as resolveColumnMappingsFilePath, co as ModelAttributeValue, cr as loadMigrationsFrom, ct as findEnumBlock, d as inferDelegateName, da as PaginationOptions, dc as MorphManyRelationMetadata, di as QueryJoinRawConstraint, dn as validatePersistedMetadataFeaturesForMigrations, do as ModelCreateData, dr as registerFactories, ds as RelationAggregateConstraint, dt as formatEnumDefaultValue, ea as DelegateUpdateArgs, ec as ValueExpressionNode, ei as QueryExistsCondition, en as getPersistedEnumMap, eo as AttributeOrderBy, er as RuntimePathKey, et as buildUniqueConstraintLine, f as awaitConfiguredModelsRegistration, fa as PaginationURLDriver, fc as MorphOneRelationMetadata, fi as QueryJoinType, fn as writePersistedColumnMappingsState, fo as ModelDeclaredAttributeKey, fr as registerMigrations, fs as RelationAggregateInput, ft as formatRelationAction, g as emitRuntimeDebugEvent, ga as PrismaFindManyArgsLike, gc as RelationMetadata, gi as QueryLogicalOperator, gn as RelationResolutionException, go as ModelEventListener, gr as resetRuntimeRegistryForTests, gs as RelationDefaultResolver, gt as resolveEnumName, h as defineConfig, ha as PrismaDelegateLike, hc as PivotModelStatic, hi as QueryJsonConditionKind, hn as ScopeNotDefinedException, ho as ModelEventHandlerConstructor, hr as registerSeeders, hs as RelationConstraint, ht as pad, i as RuntimeModuleLoader, ia as EagerLoadMap, ic as BelongsToRelationMetadata, ii as QueryGroupCondition, in as getPersistedTimestampColumns, io as AttributeUpdateInput, ir as getRegisteredModels, it as deriveRelationAlias, j as loadArkormConfig, ja as QuerySchemaRow, jc as SchemaForeignKeyAction, ji as SortDirection, jn as resolveGeneratedExpression, jo as ExpressionBuilder, jr as AdapterInspectionRequest, js as ArkormCollection, jt as deleteAppliedMigrationsStateFromStore, k as isQuerySchemaLike, ka as QuerySchemaInclude, kc as SchemaColumnType, ki as SelectSpec, kn as TableBuilder, ko as CaseExpression, kr as AdapterCapability, ks as LengthAwarePaginator, kt as computeMigrationChecksum, l as createPrismaAdapter, la as PaginationCurrentPageResolver, lc as HasOneThroughRelationMetadata, li as QueryJoinNestedConstraint, ln as resolvePersistedMetadataFeatures, lo as ModelAttributes, lr as loadModelsFrom, lt as findModelBlock, m as configureArkormRuntime, ma as PrismaClientLike, mc as MorphToRelationMetadata, mi as QueryJsonCondition, mn as UniqueConstraintResolutionException, mo as ModelEventHandler, mr as registerPaths, ms as RelationColumnLookupSpec, mt as getMigrationPlan, n as PivotModel, na as DelegateWhere, nc as DatabaseTablePersistedMetadataOptions, ni as QueryFullTextCondition, nn as getPersistedPrimaryKeyGeneration, no as AttributeSchemaDelegate, nr as getRegisteredFactories, nt as deriveCollectionFieldName, o as resolveRuntimeCompatibilityQuerySchema, oa as ModelQuerySchemaLike, oc as HasManyRelationMetadata, oi as QueryJoinBoolean, on as rebuildPersistedColumnMappingsState, oo as DelegateForModelSchema, or as getRegisteredSeeders, ot as deriveSingularFieldName, p as bindAdapterToModels, pa as PaginationURLDriverFactory, pc as MorphToManyRelationMetadata, pi as QueryJoinValueConstraint, pn as UnsupportedAdapterFeatureException, po as ModelEventDispatcher, pr as registerModels, ps as RelationAggregateType, pt as generateMigrationFile, q as buildFieldLine, qa as ModelStatic, qi as DelegateFindManyArgs, qn as AttributeOptions, qo as where, qr as InsertManySpec, qs as ExpressionJsonCast, qt as PersistedPrimaryKeyGeneration, r as LoadedRuntimeModule, ra as EagerLoadConstraint, rc as BelongsToManyRelationMetadata, ri as QueryGroupByItem, rn as getPersistedTableMetadata, ro as AttributeSelect, rr as getRegisteredMigrations, rt as deriveInverseRelationAlias, s as resolveRuntimeCompatibilityQuerySchemaOrThrow, sa as ModelTableCase, sc as HasManyThroughRelationMetadata, si as QueryJoinColumnConstraint, sn as resetPersistedColumnMappingsCache, so as GlobalScope, sr as loadFactoriesFrom, st as escapeRegex, t as URLDriver, ta as DelegateUpdateData, tc as DatabaseTableOptions, ti as QueryExpressionCondition, tn as getPersistedEnumTsType, to as AttributeQuerySchema, tr as RuntimePathMap, tt as createMigrationTimestamp, u as createPrismaDelegateMap, ua as PaginationMeta, uc as ModelMetadata, ui as QueryJoinNullConstraint, un as syncPersistedColumnMappingsFromState, uo as ModelAttributesOf, ur as loadSeedersFrom, ut as formatDefaultValue, v as getActiveTransactionAdapter, va as PrismaLikeOrderBy, vc as AppliedMigrationEntry, vi as QueryOrderBy, vn as QueryExecutionExceptionContext, vo as ModelLifecycleState, vr as Seeder, vs as RelationMetadataProvider, vt as resolvePrismaType, w as getRuntimePaginationCurrentPageResolver, wa as PrismaTransactionCapableClient, wc as MigrationInstanceLike, wi as RawQuerySpec, wn as DB, wo as QuerySchemaForModel, wr as createPrismaCompatibilityAdapter, ws as JoinSource, wt as supportsDatabaseReset, x as getRuntimeAdapter, xa as PrismaLikeSortOrder, xc as GenerateMigrationOptions, xi as QuerySelectColumn, xn as MissingDelegateException, xo as ModelRelationshipResult, xr as SeederInput, xs as RelationTableLookupSpec, xt as stripPrismaSchemaModelsAndEnums, y as getActiveTransactionClient, ya as PrismaLikeScalarFilter, yc as AppliedMigrationRun, yi as QueryRawCondition, yn as QueryConstraintException, yo as ModelOrderByInput, yr as SeederCallArgument, ys as RelationResult, yt as runMigrationWithPrisma, z as applyCreateTableOperation, za as RuntimeClientLike, zc as TimestampColumnBehavior, zi as ArkormDebugEvent, zn as MakeSeederCommand, zo as fn, zr as AggregateSpec, zs as FactoryState, zt as readAppliedMigrationsStateFromStore } from "./index-DoqUdah-.mjs";
|
|
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, Arkormx, Attribute, AttributeCreateInput, AttributeOptions, AttributeOrderBy, AttributeQuerySchema, AttributeSchemaDelegate, AttributeSelect, AttributeUpdateInput, AttributeWhereInput, BelongsToManyRelationMetadata, BelongsToRelationMetadata, BinaryExpressionNode, CaseExpression, CaseExpressionBranch, CaseExpressionNode, CastDefinition, CastHandler, CastMap, CastType, CliApp, ClientResolver, ColumnExpressionNode, ColumnMap, DB, DatabaseAdapter, DatabasePrimitive, DatabaseRow, DatabaseRows, DatabaseTableOptions, DatabaseTablePersistedMetadataOptions, DatabaseValue, DelegateCreateData, DelegateFindManyArgs, DelegateForModelSchema, DelegateInclude, DelegateOrderBy, DelegateRow, DelegateRows, DelegateSelect, DelegateUniqueWhere, DelegateUpdateArgs, DelegateUpdateData, DelegateWhere, DeleteManySpec, DeleteSpec, EagerLoadConstraint, EagerLoadMap, 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, NamingCase, NullCheckExpressionNode, PRISMA_ENUM_MEMBER_REGEX, PRISMA_ENUM_REGEX, PRISMA_MODEL_REGEX, PaginationCurrentPageResolver, PaginationMeta, PaginationOptions, PaginationURLDriver, PaginationURLDriverFactory, Paginator, 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, 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, emitRuntimeDebugEvent, ensureArkormConfigLoading, escapeRegex, expressionBuilder, findAppliedMigration, findEnumBlock, findModelBlock, fn, formatDefaultValue, formatEnumDefaultValue, formatRelationAction, fromExpressionNode, generateMigrationFile, getActiveTransactionAdapter, getActiveTransactionClient, getDefaultStubsPath, getLastMigrationRun, getLatestAppliedMigrations, getMigrationPlan, 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, resolveRuntimeCompatibilityQuerySchema, resolveRuntimeCompatibilityQuerySchemaOrThrow, runArkormTransaction, runMigrationWithPrisma, runPrismaCommand, stripPrismaSchemaModelsAndEnums, sum, supportsDatabaseCreation, supportsDatabaseMigrationExecution, supportsDatabaseMigrationState, supportsDatabaseReset, syncPersistedColumnMappingsFromState, toMigrationFileSlug, toModelName, val, validatePersistedMetadataFeaturesForMigrations, where, writeAppliedMigrationsState, writeAppliedMigrationsStateToStore, writePersistedColumnMappingsState };
|
|
1
|
+
import { $ as buildPrimaryKeyLine, $a as EachCallback, $i as DelegateRow, $n as RegisteredFactory, $o as InlineFactory, $r as QueryComparisonCondition, $s as ExpressionNode, $t as createEmptyPersistedColumnMappingsState, A as isQuerySchemaLike, Aa as QuerySchemaCreateData, Ac as PrimaryKeyGeneration, Ai as RelationLoadPlan, An as EnumBuilder, Ao as QuerySchemaForModelInstance, Ar as createKyselyAdapter, As as RelatedModelForRelationship, At as computeMigrationChecksum, B as applyCreateTableOperation, Ba as QuerySchemaWhere, Bc as SchemaTableAlterOperation, Bi as ArkormBootContext, Bn as MigrateCommand, Bo as coalesce, Br as AggregateOperation, Bs as FactoryDefinition, Bt as readAppliedMigrationsState, C as getRuntimeClient, Ca as PrismaLikeSelect, Cc as AppliedMigrationEntry, Ci as QueryScalarComparisonOperator, Cn as MissingDelegateException, Co as ModelLifecycleState, Cr as SeederConstructor, Cs as RelationMetadataProvider, Ct as supportsDatabaseCreation, D as getRuntimePrismaClient, Da as PrismaTransactionCapableClient, Dc as GeneratedMigrationFile, Di as RawQuerySpec, Dn as MIGRATION_BRAND, Do as ModelUpdateData, Dr as createPrismaCompatibilityAdapter, Ds as EagerLoadRelations, Dt as toModelName, E as getRuntimePaginationURLDriverFactory, Ea as PrismaTransactionCallback, Ec as GenerateMigrationOptions, Ei as QueryTimeCondition, En as DB, Eo as ModelRelationshipResult, Er as PrismaDelegateNameMapping, Es as RelationTableLookupSpec, Et as toMigrationFileSlug, F as PrimaryKeyGenerationPlanner, Fa as QuerySchemaRows, Fc as SchemaForeignKey, Fi as UpdateManySpec, Fn as SeedCommand, Fo as Expression, Fr as AdapterModelFieldStructure, Fs as Paginator, Ft as getLastMigrationRun, G as applyMigrationToPrismaSchema, Ga as SoftDeleteConfig, Gc as TimestampNames, Gi as CastHandler, Gn as InitCommand, Go as fromExpressionNode, Gr as DatabaseRow, Gs as MaybePromise, Gt as writeAppliedMigrationsState, H as applyMigrationRollbackToDatabase, Ha as RuntimeClientLike, Hc as SchemaTableDropOperation, Hi as ArkormDebugEvent, Hn as MakeModelCommand, Ho as count, Hr as AggregateSpec, Hs as FactoryModelConstructor, Ht as removeAppliedMigration, I as PRISMA_ENUM_MEMBER_REGEX, Ia as QuerySchemaSelect, Ic as SchemaForeignKeyAction, Ii as UpdateSpec, In as ModelsSyncCommand, Io as ExpressionBuilder, Ir as AdapterModelIntrospectionOptions, Is as ArkormCollection, It as getLatestAppliedMigrations, J as buildFieldLine, Ja as TransactionContext, Ji as ClientResolver, Jn as resolveCast, Jo as min, Jr as DeleteManySpec, Js as CaseExpressionBranch, Jt as PersistedMetadataFeatures, K as applyOperationsToPrismaSchema, Ka as TransactionCallback, Kc as TimestampNaming, Ki as CastMap, Kn as DbCommand, Ko as json, Kr as DatabaseRows, Ks as AggregateExpressionNode, Kt as writeAppliedMigrationsStateToStore, L as PRISMA_ENUM_REGEX, La as QuerySchemaUniqueWhere, Lc as SchemaIndex, Li as UpsertSpec, Ln as MigrationHistoryCommand, Lo as JsonExpression, Lr as AdapterModelStructure, Ls as FactoryAttributeResolver, Lt as isMigrationApplied, M as loadArkormConfig, Ma as QuerySchemaInclude, Mc as PrismaSchemaSyncOptions, Mi as SelectSpec, Mn as GeneratedColumnExpression, Mo as Model, Mr as AdapterCapability, Ms as WhereCallback, Mt as deleteAppliedMigrationsStateFromStore, N as resetArkormRuntimeForTests, Na as QuerySchemaOrderBy, Nc as SchemaColumn, Ni as SoftDeleteQueryMode, Nn as resolveGeneratedExpression, No as AggregateExpression, Nr as AdapterDatabaseCreationResult, Ns as JoinClause, Nt as findAppliedMigration, O as getUserConfig, Oa as PrismaTransactionContext, Oc as MigrationClass, Oi as RelationAggregateSpec, On as Migration, Oo as ModelWhereInput, Or as createPrismaDatabaseAdapter, Os as JoinOn, Ot as buildMigrationIdentity, P as runArkormTransaction, Pa as QuerySchemaRow, Pc as SchemaColumnType, Pi as SortDirection, Pn as ForeignKeyBuilder, Po as CaseExpression, Pr as AdapterInspectionRequest, Ps as LengthAwarePaginator, Pt as getLastBatchMigrations, Q as buildModelBlock, Qa as ChunkCallback, Qi as DelegateOrderBy, Qn as Arkormx, Qo as where, Qr as QueryColumnComparisonCondition, Qs as ExpressionJsonCast, Qt as applyOperationsToPersistedColumnMappingsState, R as PRISMA_MODEL_REGEX, Ra as QuerySchemaUpdateArgs, Rc as SchemaOperation, Ri as AdapterBindableModel, Rn as MigrateRollbackCommand, Ro as avg, Rr as AdapterQueryOperation, Rs as FactoryAttributes, Rt as markMigrationApplied, S as getRuntimeAdapter, Sa as PrismaLikeScalarFilter, Sc as RelationMetadataType, Si as QueryRawCondition, Sn as ModelNotFoundException, So as ModelEventName, Sr as SeederCallArgument, Ss as RelationDefaultValue, St as stripPrismaSchemaModelsAndEnums, T as getRuntimePaginationCurrentPageResolver, Ta as PrismaLikeWhereInput, Tc as AppliedMigrationsState, Ti as QueryTarget, Tn as ArkormException, To as ModelRelationshipKey, Tr as PrismaDatabaseAdapter, Ts as RelationResultCache, Tt as supportsDatabaseReset, U as applyMigrationRollbackToPrismaSchema, Ua as Serializable, Uc as SchemaUniqueConstraint, Ui as ArkormDebugHandler, Un as MakeMigrationCommand, Uo as expressionBuilder, Ur as DatabaseAdapter, Us as FactoryRelationshipResolver, Ut as resolveMigrationStateFilePath, V as applyDropTableOperation, Va as RawSelectInput, Vc as SchemaTableCreateOperation, Vi as ArkormConfig, Vn as MakeSeederCommand, Vo as col, Vr as AggregateSelection, Vs as FactoryDefinitionAttributes, Vt as readAppliedMigrationsStateFromStore, W as applyMigrationToDatabase, Wa as SimplePaginationMeta, Wc as TimestampColumnBehavior, Wi as CastDefinition, Wn as MakeFactoryCommand, Wo as fn, Wr as DatabasePrimitive, Ws as FactoryState, Wt as supportsDatabaseMigrationState, X as buildInverseRelationLine, Xa as ModelStatic, Xi as DelegateFindManyArgs, Xn as AttributeOptions, Xo as sum, Xr as InsertManySpec, Xs as ColumnExpressionNode, Xt as PersistedTableMetadata, Y as buildIndexLine, Ya as TransactionOptions, Yi as DelegateCreateData, Yn as Attribute, Yo as raw, Yr as DeleteSpec, Ys as CaseExpressionNode, Yt as PersistedPrimaryKeyGeneration, Z as buildMigrationSource, Za as RelationshipModelStatic, Zi as DelegateInclude, Zn as Arkorm, Zo as val, Zr as InsertSpec, Zs as ExpressionBinaryOperator, Zt as PersistedTimestampColumn, _ as emitRuntimeDebugEvent, _a as PrismaClientLike, _c as MorphOneRelationMetadata, _i as QueryJsonCondition, _n as ScopeNotDefinedException, _o as ModelDeclaredAttributeKey, _r as registerPaths, _s as RelationAggregateInput, _t as resolveEnumName, a as getRuntimeCompatibilityAdapter, aa as DelegateWhere, ac as ValueExpressionNode, ai as QueryFullTextCondition, an as getPersistedTableMetadata, ao as AttributeOrderBy, ar as getRegisteredFactories, at as deriveRelationAlias, b as getActiveTransactionClient, ba as PrismaLikeInclude, bc as PivotModelStatic, bi as QueryNotCondition, bn as QueryExecutionExceptionContext, bo as ModelEventHandlerConstructor, br as SEEDER_BRAND, bs as RelationConstraint, bt as runMigrationWithPrisma, c as PrismaDelegateMap, ca as GetUserConfig, cc as BelongsToManyRelationMetadata, ci as QueryJoin, cn as rebuildPersistedColumnMappingsState, co as AttributeSelect, cr as getRegisteredPaths, ct as escapeRegex, d as inferDelegateName, da as NamingCase, dc as HasManyRelationMetadata, di as QueryJoinConstraint, dn as resolvePersistedMetadataFeatures, do as DelegateForModelSchema, dr as loadMigrationsFrom, dt as formatDefaultValue, ea as DelegateRows, ec as FunctionExpressionNode, ei as QueryComparisonOperator, en as deletePersistedColumnMappingsState, eo as ExpressionSelectMap, er as RegisteredModel, es as ModelFactory, et as buildRelationLine, f as awaitConfiguredModelsRegistration, fa as PaginationCurrentPageResolver, fc as HasManyThroughRelationMetadata, fi as QueryJoinNestedConstraint, fn as syncPersistedColumnMappingsFromState, fo as GlobalScope, fr as loadModelsFrom, ft as formatEnumDefaultValue, g as disposeArkormRuntime, ga as PaginationURLDriverFactory, gc as MorphManyRelationMetadata, gi as QueryJoinValueConstraint, gn as UniqueConstraintResolutionException, go as ModelCreateData, gr as registerModels, gs as RelationAggregateConstraint, gt as pad, h as defineConfig, ha as PaginationURLDriver, hc as ModelMetadata, hi as QueryJoinType, hn as UnsupportedAdapterFeatureException, ho as ModelAttributesOf, hr as registerMigrations, ht as getMigrationPlan, i as RuntimeModuleLoader, ia as DelegateUpdateData, ic as RawExpressionNode, ii as QueryExpressionCondition, in as getPersistedPrimaryKeyGeneration, io as AttributeCreateInput, ir as RuntimePathMap, it as deriveInverseRelationAlias, j as isTransactionCapableClient, ja as QuerySchemaFindManyArgs, jc as PrismaMigrationWorkflowOptions, ji as RelationLoadSpec, jn as TableBuilder, jo as RelatedModelClass, jr as AdapterCapabilities, js as RelatedModelFromResult, jt as createEmptyAppliedMigrationsState, k as isDelegateLike, ka as PrismaTransactionOptions, kc as MigrationInstanceLike, ki as RelationFilterSpec, kn as SchemaBuilder, ko as QuerySchemaForModel, kr as KyselyDatabaseAdapter, ks as JoinSource, kt as buildMigrationRunId, l as createPrismaAdapter, la as ModelQuerySchemaLike, lc as BelongsToRelationMetadata, li as QueryJoinBoolean, ln as resetPersistedColumnMappingsCache, lo as AttributeUpdateInput, lr as getRegisteredSeeders, lt as findEnumBlock, m as configureArkormRuntime, ma as PaginationOptions, mc as HasOneThroughRelationMetadata, mi as QueryJoinRawConstraint, mn as writePersistedColumnMappingsState, mo as ModelAttributes, mr as registerFactories, mt as generateMigrationFile, n as PivotModel, na as DelegateUniqueWhere, nc as JsonExpressionNode, ni as QueryDayCondition, nn as getPersistedEnumMap, no as GroupByAggregateSpec, nr as RuntimePathInput, nt as createMigrationTimestamp, o as resolveRuntimeCompatibilityQuerySchema, oa as EagerLoadConstraint, oc as DatabaseTableOptions, oi as QueryGroupByItem, on as getPersistedTimestampColumns, oo as AttributeQuerySchema, or as getRegisteredMigrations, ot as deriveRelationFieldName, p as bindAdapterToModels, pa as PaginationMeta, pc as HasOneRelationMetadata, pi as QueryJoinNullConstraint, pn as validatePersistedMetadataFeaturesForMigrations, po as ModelAttributeValue, pr as loadSeedersFrom, pt as formatRelationAction, q as buildEnumBlock, qa as TransactionCapableClient, qi as CastType, qn as CliApp, qo as max, qr as DatabaseValue, qs as BinaryExpressionNode, qt as PersistedColumnMappingsState, r as LoadedRuntimeModule, ra as DelegateUpdateArgs, rc as NullCheckExpressionNode, ri as QueryExistsCondition, rn as getPersistedEnumTsType, ro as QueryBuilder, rr as RuntimePathKey, rt as deriveCollectionFieldName, s as resolveRuntimeCompatibilityQuerySchemaOrThrow, sa as EagerLoadMap, sc as DatabaseTablePersistedMetadataOptions, si as QueryGroupCondition, sn as readPersistedColumnMappingsState, so as AttributeSchemaDelegate, sr as getRegisteredModels, st as deriveSingularFieldName, t as URLDriver, ta as DelegateSelect, tc as InExpressionNode, ti as QueryCondition, tn as getPersistedColumnMap, to as GroupByAggregateRow, tr as RuntimeConstructor, ts as defineFactory, tt as buildUniqueConstraintLine, u as createPrismaDelegateMap, ua as ModelTableCase, uc as ColumnMap, ui as QueryJoinColumnConstraint, un as resolveColumnMappingsFilePath, uo as AttributeWhereInput, ur as loadFactoriesFrom, ut as findModelBlock, v as ensureArkormConfigLoading, va as PrismaDelegateLike, vc as MorphToManyRelationMetadata, vi as QueryJsonConditionKind, vn as RelationResolutionException, vo as ModelEventDispatcher, vr as registerSeeders, vs as RelationAggregateType, vt as resolveMigrationClassName, w as getRuntimeDebugHandler, wa as PrismaLikeSortOrder, wc as AppliedMigrationRun, wi as QuerySelectColumn, wn as ArkormErrorContext, wo as ModelOrderByInput, wr as SeederInput, ws as RelationResult, wt as supportsDatabaseMigrationExecution, x as getDefaultStubsPath, xa as PrismaLikeOrderBy, xc as RelationMetadata, xi as QueryOrderBy, xn as QueryConstraintException, xo as ModelEventListener, xr as Seeder, xs as RelationDefaultResolver, xt as runPrismaCommand, y as getActiveTransactionAdapter, ya as PrismaFindManyArgsLike, yc as MorphToRelationMetadata, yi as QueryLogicalOperator, yn as QueryExecutionException, yo as ModelEventHandler, yr as resetRuntimeRegistryForTests, ys as RelationColumnLookupSpec, yt as resolvePrismaType, z as applyAlterTableOperation, za as QuerySchemaUpdateData, zc as SchemaPrimaryKey, zi as AdapterQueryInspection, zn as MigrateFreshCommand, zo as caseWhen, zr as AdapterTransactionContext, zs as FactoryCallback, zt as markMigrationRun } from "./index-KPekH7gI.mjs";
|
|
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, 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, 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, NamingCase, NullCheckExpressionNode, PRISMA_ENUM_MEMBER_REGEX, PRISMA_ENUM_REGEX, PRISMA_MODEL_REGEX, PaginationCurrentPageResolver, PaginationMeta, PaginationOptions, PaginationURLDriver, PaginationURLDriverFactory, Paginator, 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, 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, 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, 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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as
|
|
1
|
+
import { $ as resetRuntimeRegistryForTests, $n as RuntimeModuleLoader, $t as resolveMigrationClassName, A as getRuntimePaginationURLDriverFactory, An as val, At as buildIndexLine, B as getRegisteredMigrations, Bn as getLastBatchMigrations, Bt as deriveRelationAlias, C as getActiveTransactionAdapter, Cn as fn, Ct as applyMigrationRollbackToDatabase, D as getRuntimeClient, Dn as min, Dt as applyOperationsToPrismaSchema, E as getRuntimeAdapter, En as max, Et as applyMigrationToPrismaSchema, F as isTransactionCapableClient, Fn as buildMigrationRunId, Ft as buildRelationLine, G as loadMigrationsFrom, Gn as markMigrationRun, Gt as findModelBlock, H as getRegisteredPaths, Hn as getLatestAppliedMigrations, Ht as deriveSingularFieldName, I as loadArkormConfig, In as computeMigrationChecksum, It as buildUniqueConstraintLine, J as registerFactories, Jn as removeAppliedMigration, Jt as formatRelationAction, K as loadModelsFrom, Kn as readAppliedMigrationsState, Kt as formatDefaultValue, L as resetArkormRuntimeForTests, Ln as createEmptyAppliedMigrationsState, Lt as createMigrationTimestamp, M as getUserConfig, Mn as PrimaryKeyGenerationPlanner, Mt as buildMigrationSource, N as isDelegateLike, Nn as ForeignKeyBuilder, Nt as buildModelBlock, O as getRuntimeDebugHandler, On as raw, Ot as buildEnumBlock, P as isQuerySchemaLike, Pn as buildMigrationIdentity, Pt as buildPrimaryKeyLine, Q as registerSeeders, Qn as writeAppliedMigrationsStateToStore, Qt as resolveEnumName, R as runArkormTransaction, Rn as deleteAppliedMigrationsStateFromStore, Rt as deriveCollectionFieldName, S as ensureArkormConfigLoading, Sn as expressionBuilder, St as applyDropTableOperation, T as getDefaultStubsPath, Tn as json, Tt as applyMigrationToDatabase, U as getRegisteredSeeders, Un as isMigrationApplied, Ut as escapeRegex, V as getRegisteredModels, Vn as getLastMigrationRun, Vt as deriveRelationFieldName, W as loadFactoriesFrom, Wn as markMigrationApplied, Wt as findEnumBlock, X as registerModels, Xn as supportsDatabaseMigrationState, Xt as getMigrationPlan, Y as registerMigrations, Yn as resolveMigrationStateFilePath, Yt as generateMigrationFile, Z as registerPaths, Zn as writeAppliedMigrationsState, Zt as pad, _ as bindAdapterToModels, _n as avg, _t as PRISMA_ENUM_MEMBER_REGEX, a as HasOneThroughRelation, an as supportsDatabaseMigrationExecution, ar as ArkormException, at as getPersistedEnumTsType, b as disposeArkormRuntime, bn as col, bt as applyAlterTableOperation, c as HasManyRelation, cn as toModelName, ct as getPersistedTimestampColumns, d as BelongsToManyRelation, dn as TableBuilder, dt as resetPersistedColumnMappingsCache, en as resolvePrismaType, er as UnsupportedAdapterFeatureException, et as applyOperationsToPersistedColumnMappingsState, f as Relation, fn as resolveGeneratedExpression, ft as resolveColumnMappingsFilePath, g as awaitConfiguredModelsRegistration, gn as JsonExpression, gt as writePersistedColumnMappingsState, h as URLDriver, hn as Expression, ht as validatePersistedMetadataFeaturesForMigrations, i as MorphManyRelation, in as supportsDatabaseCreation, ir as ArkormCollection, it as getPersistedEnumMap, j as getRuntimePrismaClient, jn as where, jt as buildInverseRelationLine, k as getRuntimePaginationCurrentPageResolver, kn as sum, kt as buildFieldLine, l as BelongsToRelation, ln as SchemaBuilder, lt as readPersistedColumnMappingsState, m as Paginator, mn as CaseExpression, mt as syncPersistedColumnMappingsFromState, n as MorphToManyRelation, nn as runPrismaCommand, nt as deletePersistedColumnMappingsState, o as HasOneRelation, on as supportsDatabaseReset, ot as getPersistedPrimaryKeyGeneration, p as LengthAwarePaginator, pn as AggregateExpression, pt as resolvePersistedMetadataFeatures, q as loadSeedersFrom, qn as readAppliedMigrationsStateFromStore, qt as formatEnumDefaultValue, r as MorphOneRelation, rn as stripPrismaSchemaModelsAndEnums, rr as RelationResolutionException, rt as getPersistedColumnMap, s as HasManyThroughRelation, sn as toMigrationFileSlug, st as getPersistedTableMetadata, t as MorphToRelation, tn as runMigrationWithPrisma, tr as SetBasedEagerLoader, tt as createEmptyPersistedColumnMappingsState, un as EnumBuilder, ut as rebuildPersistedColumnMappingsState, v as configureArkormRuntime, vn as caseWhen, vt as PRISMA_ENUM_REGEX, w as getActiveTransactionClient, wn as fromExpressionNode, wt as applyMigrationRollbackToPrismaSchema, x as emitRuntimeDebugEvent, xn as count, xt as applyCreateTableOperation, y as defineConfig, yn as coalesce, yt as PRISMA_MODEL_REGEX, z as getRegisteredFactories, zn as findAppliedMigration, zt as deriveInverseRelationAlias } from "./relationship-4S2yHPIH.mjs";
|
|
2
2
|
import { Pool } from "pg";
|
|
3
3
|
import { join, resolve } from "node:path";
|
|
4
4
|
import { createRequire } from "module";
|
|
@@ -68,6 +68,15 @@ var KyselyDatabaseAdapter = class KyselyDatabaseAdapter {
|
|
|
68
68
|
expressions: true
|
|
69
69
|
};
|
|
70
70
|
}
|
|
71
|
+
/**
|
|
72
|
+
* Destroys the underlying Kysely instance, which ends its connection pool so a
|
|
73
|
+
* short-lived process (e.g. the CLI) can exit promptly. A no-op when `db` is a
|
|
74
|
+
* transaction executor, which does not own the pool.
|
|
75
|
+
*/
|
|
76
|
+
async dispose() {
|
|
77
|
+
const destroyable = this.db;
|
|
78
|
+
if (typeof destroyable.destroy === "function") await destroyable.destroy();
|
|
79
|
+
}
|
|
71
80
|
resolveConfiguredDatabaseName(connectionString) {
|
|
72
81
|
const parsed = new URL(connectionString);
|
|
73
82
|
const database = decodeURIComponent(parsed.pathname.replace(/^\/+/, ""));
|
|
@@ -1805,6 +1814,14 @@ var PrismaDatabaseAdapter = class PrismaDatabaseAdapter {
|
|
|
1805
1814
|
returning: false
|
|
1806
1815
|
};
|
|
1807
1816
|
}
|
|
1817
|
+
/**
|
|
1818
|
+
* Disconnects the underlying Prisma client so a short-lived process (e.g. the
|
|
1819
|
+
* CLI) can exit promptly instead of waiting for the connection to idle out.
|
|
1820
|
+
*/
|
|
1821
|
+
async dispose() {
|
|
1822
|
+
const disconnectable = this.prisma;
|
|
1823
|
+
if (typeof disconnectable.$disconnect === "function") await disconnectable.$disconnect();
|
|
1824
|
+
}
|
|
1808
1825
|
hasTransactionSupport(client) {
|
|
1809
1826
|
return Boolean(client) && typeof client.$transaction === "function";
|
|
1810
1827
|
}
|
|
@@ -3304,6 +3321,162 @@ var CliApp = class {
|
|
|
3304
3321
|
}
|
|
3305
3322
|
};
|
|
3306
3323
|
|
|
3324
|
+
//#endregion
|
|
3325
|
+
//#region src/helpers/runtime-compatibility.ts
|
|
3326
|
+
const isObjectLike = (value) => {
|
|
3327
|
+
return Boolean(value) && typeof value === "object";
|
|
3328
|
+
};
|
|
3329
|
+
const isCompatibilityClient = (value) => {
|
|
3330
|
+
return Boolean(value) && typeof value === "object";
|
|
3331
|
+
};
|
|
3332
|
+
const getCompatibilitySources = (preferredClient) => {
|
|
3333
|
+
const activeTransactionClient = getActiveTransactionClient();
|
|
3334
|
+
const runtimeClient = getRuntimeClient();
|
|
3335
|
+
return activeTransactionClient ? [
|
|
3336
|
+
activeTransactionClient,
|
|
3337
|
+
preferredClient,
|
|
3338
|
+
runtimeClient
|
|
3339
|
+
] : [preferredClient, runtimeClient];
|
|
3340
|
+
};
|
|
3341
|
+
const getRuntimeCompatibilityAdapter = (preferredClient) => {
|
|
3342
|
+
const client = getCompatibilitySources(preferredClient).find((source) => isCompatibilityClient(source));
|
|
3343
|
+
if (!client) return void 0;
|
|
3344
|
+
return createPrismaCompatibilityAdapter(client);
|
|
3345
|
+
};
|
|
3346
|
+
const resolveRuntimeCompatibilityQuerySchema = (candidates, preferredClient) => {
|
|
3347
|
+
return getCompatibilitySources(preferredClient).flatMap((source) => {
|
|
3348
|
+
if (!isObjectLike(source)) return [];
|
|
3349
|
+
return candidates.map((candidate) => source[candidate]);
|
|
3350
|
+
}).find((candidate) => isQuerySchemaLike(candidate));
|
|
3351
|
+
};
|
|
3352
|
+
const resolveRuntimeCompatibilityQuerySchemaOrThrow = (key, candidates, modelName, preferredClient) => {
|
|
3353
|
+
const resolved = resolveRuntimeCompatibilityQuerySchema(candidates, preferredClient);
|
|
3354
|
+
if (!resolved) throw new MissingDelegateException(`Database delegate [${key}] is not configured.`, {
|
|
3355
|
+
operation: "getDelegate",
|
|
3356
|
+
model: modelName,
|
|
3357
|
+
delegate: key,
|
|
3358
|
+
meta: { candidates }
|
|
3359
|
+
});
|
|
3360
|
+
return resolved;
|
|
3361
|
+
};
|
|
3362
|
+
|
|
3363
|
+
//#endregion
|
|
3364
|
+
//#region src/cli/commands/DbCommand.ts
|
|
3365
|
+
/**
|
|
3366
|
+
* Executes a raw SQL statement against the configured database adapter and prints
|
|
3367
|
+
* the result — Arkorm's equivalent of `artisan db`.
|
|
3368
|
+
*
|
|
3369
|
+
* @author Legacy (3m1n3nc3)
|
|
3370
|
+
*/
|
|
3371
|
+
var DbCommand = class extends Command {
|
|
3372
|
+
constructor(..._args) {
|
|
3373
|
+
super(..._args);
|
|
3374
|
+
this.signature = `db
|
|
3375
|
+
{sql? : Raw SQL statement to execute (prompts for it when omitted)}
|
|
3376
|
+
{--file= : Read the SQL statement from a file instead of the argument}
|
|
3377
|
+
{--bindings= : JSON array of positional bindings for ? placeholders}
|
|
3378
|
+
{--json : Print result rows as JSON instead of a table}
|
|
3379
|
+
`;
|
|
3380
|
+
this.description = "Execute a raw SQL statement against the configured database";
|
|
3381
|
+
}
|
|
3382
|
+
async handle() {
|
|
3383
|
+
this.app.command = this;
|
|
3384
|
+
await loadArkormConfig();
|
|
3385
|
+
const sql = await this.resolveSql();
|
|
3386
|
+
if (sql === null) return;
|
|
3387
|
+
if (sql.trim().length === 0) return void this.error("Error: No SQL statement provided.");
|
|
3388
|
+
const bindings = this.resolveBindings();
|
|
3389
|
+
if (bindings === null) return;
|
|
3390
|
+
const adapter = getRuntimeAdapter() ?? getRuntimeCompatibilityAdapter();
|
|
3391
|
+
if (!adapter) return void this.error("Error: No database driver configured. Set an adapter or client in arkormx.config.");
|
|
3392
|
+
if (typeof adapter.rawQuery !== "function") return void this.error("Error: The configured adapter does not support raw queries. Use a SQL-backed adapter (e.g. the Kysely/PostgreSQL adapter).");
|
|
3393
|
+
let rows;
|
|
3394
|
+
try {
|
|
3395
|
+
rows = await adapter.rawQuery({
|
|
3396
|
+
sql,
|
|
3397
|
+
bindings
|
|
3398
|
+
});
|
|
3399
|
+
} catch (error) {
|
|
3400
|
+
this.error(`Error: ${error instanceof Error ? error.message : String(error)}`);
|
|
3401
|
+
return;
|
|
3402
|
+
}
|
|
3403
|
+
this.render(rows);
|
|
3404
|
+
}
|
|
3405
|
+
/**
|
|
3406
|
+
* Resolves the SQL to run. Priority: the positional argument, then `--file`,
|
|
3407
|
+
* then an interactive editor prompt (so a bare `arkorm db` lets you compose a
|
|
3408
|
+
* statement). Returns `null` (after emitting an error) when a referenced file is
|
|
3409
|
+
* missing.
|
|
3410
|
+
*/
|
|
3411
|
+
async resolveSql() {
|
|
3412
|
+
const argument = this.argument("sql");
|
|
3413
|
+
if (typeof argument === "string" && argument.trim().length > 0) return argument;
|
|
3414
|
+
const filePath = this.option("file") ? String(this.option("file")) : void 0;
|
|
3415
|
+
if (filePath) {
|
|
3416
|
+
const resolved = resolve(filePath);
|
|
3417
|
+
if (!existsSync$1(resolved)) {
|
|
3418
|
+
this.error(`Error: SQL file not found: ${this.app.formatPathForLog(resolved)}`);
|
|
3419
|
+
return null;
|
|
3420
|
+
}
|
|
3421
|
+
return readFileSync$1(resolved, "utf-8");
|
|
3422
|
+
}
|
|
3423
|
+
return await this.multiline("Query", "Enter the SQL to execute");
|
|
3424
|
+
}
|
|
3425
|
+
/**
|
|
3426
|
+
* Parses `--bindings` as a JSON array. Returns `null` (after emitting an error)
|
|
3427
|
+
* when the value is present but not a valid JSON array.
|
|
3428
|
+
*/
|
|
3429
|
+
resolveBindings() {
|
|
3430
|
+
const raw = this.option("bindings");
|
|
3431
|
+
if (raw == null || raw === "") return [];
|
|
3432
|
+
try {
|
|
3433
|
+
const parsed = JSON.parse(String(raw));
|
|
3434
|
+
if (!Array.isArray(parsed)) {
|
|
3435
|
+
this.error("Error: --bindings must be a JSON array, e.g. --bindings=\"[1, \\\"active\\\"]\".");
|
|
3436
|
+
return null;
|
|
3437
|
+
}
|
|
3438
|
+
return parsed;
|
|
3439
|
+
} catch {
|
|
3440
|
+
this.error("Error: --bindings must be valid JSON, e.g. --bindings=\"[1, \\\"active\\\"]\".");
|
|
3441
|
+
return null;
|
|
3442
|
+
}
|
|
3443
|
+
}
|
|
3444
|
+
render(rows) {
|
|
3445
|
+
if (this.option("json")) {
|
|
3446
|
+
this.line(JSON.stringify(rows, null, 2));
|
|
3447
|
+
return;
|
|
3448
|
+
}
|
|
3449
|
+
if (rows.length === 0) {
|
|
3450
|
+
this.success("Statement executed successfully. (0 rows returned)");
|
|
3451
|
+
return;
|
|
3452
|
+
}
|
|
3453
|
+
this.renderTable(rows);
|
|
3454
|
+
this.success(`(${rows.length} row${rows.length === 1 ? "" : "s"})`);
|
|
3455
|
+
}
|
|
3456
|
+
renderTable(rows) {
|
|
3457
|
+
const columns = rows.reduce((accumulator, row) => {
|
|
3458
|
+
Object.keys(row).forEach((key) => {
|
|
3459
|
+
if (!accumulator.includes(key)) accumulator.push(key);
|
|
3460
|
+
});
|
|
3461
|
+
return accumulator;
|
|
3462
|
+
}, []);
|
|
3463
|
+
const cell = (value) => {
|
|
3464
|
+
if (value === null || value === void 0) return "NULL";
|
|
3465
|
+
if (value instanceof Date) return value.toISOString();
|
|
3466
|
+
if (typeof value === "object") return JSON.stringify(value);
|
|
3467
|
+
return String(value);
|
|
3468
|
+
};
|
|
3469
|
+
const widths = columns.map((column) => rows.reduce((max, row) => Math.max(max, cell(row[column]).length), column.length));
|
|
3470
|
+
const separator = `+${widths.map((width) => "-".repeat(width + 2)).join("+")}+`;
|
|
3471
|
+
const formatRow = (values) => `| ${values.map((value, index) => value.padEnd(widths[index])).join(" | ")} |`;
|
|
3472
|
+
this.line(separator);
|
|
3473
|
+
this.line(formatRow(columns));
|
|
3474
|
+
this.line(separator);
|
|
3475
|
+
rows.forEach((row) => this.line(formatRow(columns.map((column) => cell(row[column])))));
|
|
3476
|
+
this.line(separator);
|
|
3477
|
+
}
|
|
3478
|
+
};
|
|
3479
|
+
|
|
3307
3480
|
//#endregion
|
|
3308
3481
|
//#region src/cli/commands/InitCommand.ts
|
|
3309
3482
|
/**
|
|
@@ -3901,7 +4074,7 @@ var MigrateRollbackCommand = class extends Command {
|
|
|
3901
4074
|
constructor(..._args) {
|
|
3902
4075
|
super(..._args);
|
|
3903
4076
|
this.signature = `migrate:rollback
|
|
3904
|
-
{--step= : Number of
|
|
4077
|
+
{--step= : Number of batches to rollback (defaults to 1, the last batch)}
|
|
3905
4078
|
{--dry-run : Preview rollback targets without applying changes}
|
|
3906
4079
|
{--deploy : Use prisma migrate deploy instead of migrate dev (Prisma compatibility driver only)}
|
|
3907
4080
|
{--skip-generate : Skip prisma generate (Prisma compatibility driver only)}
|
|
@@ -3923,14 +4096,10 @@ var MigrateRollbackCommand = class extends Command {
|
|
|
3923
4096
|
const useDatabaseMigrations = supportsDatabaseMigrationExecution(adapter);
|
|
3924
4097
|
const persistedFeatures = resolvePersistedMetadataFeatures(this.app.getConfig("features"));
|
|
3925
4098
|
let appliedState = await readAppliedMigrationsStateFromStore(adapter, stateFilePath);
|
|
3926
|
-
const stepOption = this.option("step"
|
|
3927
|
-
const stepCount = stepOption == null ?
|
|
3928
|
-
if (
|
|
3929
|
-
const targets =
|
|
3930
|
-
const lastRun = getLastMigrationRun(appliedState);
|
|
3931
|
-
if (!lastRun) return [];
|
|
3932
|
-
return lastRun.migrationIds.map((id) => appliedState.migrations.find((migration) => migration.id === id)).filter((migration) => Boolean(migration));
|
|
3933
|
-
})();
|
|
4099
|
+
const stepOption = this.option("step");
|
|
4100
|
+
const stepCount = stepOption == null ? 1 : Number(stepOption);
|
|
4101
|
+
if (!Number.isFinite(stepCount) || stepCount <= 0 || !Number.isInteger(stepCount)) return void this.error("Error: --step must be a positive integer.");
|
|
4102
|
+
const targets = getLastBatchMigrations(appliedState, stepCount);
|
|
3934
4103
|
if (targets.length === 0) return void this.error("Error: No tracked migrations available to rollback.");
|
|
3935
4104
|
const available = await this.loadAllMigrations(migrationDirs);
|
|
3936
4105
|
const rollbackClasses = targets.map((target) => {
|
|
@@ -4266,45 +4435,6 @@ var logo_default = String.raw`
|
|
|
4266
4435
|
███ ███ ██ ██ ▀█▄ ▀███▀ ██ ██ ██ ██
|
|
4267
4436
|
`;
|
|
4268
4437
|
|
|
4269
|
-
//#endregion
|
|
4270
|
-
//#region src/helpers/runtime-compatibility.ts
|
|
4271
|
-
const isObjectLike = (value) => {
|
|
4272
|
-
return Boolean(value) && typeof value === "object";
|
|
4273
|
-
};
|
|
4274
|
-
const isCompatibilityClient = (value) => {
|
|
4275
|
-
return Boolean(value) && typeof value === "object";
|
|
4276
|
-
};
|
|
4277
|
-
const getCompatibilitySources = (preferredClient) => {
|
|
4278
|
-
const activeTransactionClient = getActiveTransactionClient();
|
|
4279
|
-
const runtimeClient = getRuntimeClient();
|
|
4280
|
-
return activeTransactionClient ? [
|
|
4281
|
-
activeTransactionClient,
|
|
4282
|
-
preferredClient,
|
|
4283
|
-
runtimeClient
|
|
4284
|
-
] : [preferredClient, runtimeClient];
|
|
4285
|
-
};
|
|
4286
|
-
const getRuntimeCompatibilityAdapter = (preferredClient) => {
|
|
4287
|
-
const client = getCompatibilitySources(preferredClient).find((source) => isCompatibilityClient(source));
|
|
4288
|
-
if (!client) return void 0;
|
|
4289
|
-
return createPrismaCompatibilityAdapter(client);
|
|
4290
|
-
};
|
|
4291
|
-
const resolveRuntimeCompatibilityQuerySchema = (candidates, preferredClient) => {
|
|
4292
|
-
return getCompatibilitySources(preferredClient).flatMap((source) => {
|
|
4293
|
-
if (!isObjectLike(source)) return [];
|
|
4294
|
-
return candidates.map((candidate) => source[candidate]);
|
|
4295
|
-
}).find((candidate) => isQuerySchemaLike(candidate));
|
|
4296
|
-
};
|
|
4297
|
-
const resolveRuntimeCompatibilityQuerySchemaOrThrow = (key, candidates, modelName, preferredClient) => {
|
|
4298
|
-
const resolved = resolveRuntimeCompatibilityQuerySchema(candidates, preferredClient);
|
|
4299
|
-
if (!resolved) throw new MissingDelegateException(`Database delegate [${key}] is not configured.`, {
|
|
4300
|
-
operation: "getDelegate",
|
|
4301
|
-
model: modelName,
|
|
4302
|
-
delegate: key,
|
|
4303
|
-
meta: { candidates }
|
|
4304
|
-
});
|
|
4305
|
-
return resolved;
|
|
4306
|
-
};
|
|
4307
|
-
|
|
4308
4438
|
//#endregion
|
|
4309
4439
|
//#region src/JoinClause.ts
|
|
4310
4440
|
/**
|
|
@@ -6261,6 +6391,173 @@ var QueryBuilder = class QueryBuilder {
|
|
|
6261
6391
|
return new ArkormCollection(filteredModels);
|
|
6262
6392
|
}
|
|
6263
6393
|
/**
|
|
6394
|
+
* Processes the query results in chunks, invoking the callback with each chunk
|
|
6395
|
+
* as a collection. Return `false` from the callback to stop early. Resolves to
|
|
6396
|
+
* `false` when stopped early, otherwise `true`.
|
|
6397
|
+
*
|
|
6398
|
+
* Chunking pages with `offset`/`limit`, so add an `orderBy` for stable results
|
|
6399
|
+
* and prefer {@link chunkById} when modifying the records being iterated.
|
|
6400
|
+
*
|
|
6401
|
+
* @param count Rows per chunk.
|
|
6402
|
+
* @param callback Receives each chunk and its 1-based page number.
|
|
6403
|
+
* @returns
|
|
6404
|
+
*/
|
|
6405
|
+
async chunk(count, callback) {
|
|
6406
|
+
this.assertPositiveChunkSize(count, "chunk");
|
|
6407
|
+
let page = 1;
|
|
6408
|
+
for (;;) {
|
|
6409
|
+
const results = await this.clone().skip((page - 1) * count).take(count).get();
|
|
6410
|
+
const size = results.count();
|
|
6411
|
+
if (size === 0) break;
|
|
6412
|
+
if (await callback(results, page) === false) return false;
|
|
6413
|
+
if (size < count) break;
|
|
6414
|
+
page++;
|
|
6415
|
+
}
|
|
6416
|
+
return true;
|
|
6417
|
+
}
|
|
6418
|
+
/**
|
|
6419
|
+
* Chunks the results by comparing a monotonically increasing key column
|
|
6420
|
+
* (`id > lastId`) rather than by offset — safe when the callback updates the
|
|
6421
|
+
* records being iterated. Return `false` from the callback to stop early.
|
|
6422
|
+
*
|
|
6423
|
+
* @param count Rows per chunk.
|
|
6424
|
+
* @param callback Receives each chunk and its 1-based page number.
|
|
6425
|
+
* @param column The key column to page by (defaults to the primary key).
|
|
6426
|
+
* @param alias The result attribute holding the key value (defaults to `column`).
|
|
6427
|
+
* @returns
|
|
6428
|
+
*/
|
|
6429
|
+
async chunkById(count, callback, column, alias) {
|
|
6430
|
+
this.assertPositiveChunkSize(count, "chunkById");
|
|
6431
|
+
const keyColumn = column ?? this.model.getPrimaryKey();
|
|
6432
|
+
const keyAlias = alias ?? keyColumn;
|
|
6433
|
+
let lastId = null;
|
|
6434
|
+
let page = 1;
|
|
6435
|
+
for (;;) {
|
|
6436
|
+
const builder = this.clone().take(count).orderBy({ [keyColumn]: "asc" });
|
|
6437
|
+
if (lastId !== null) builder.where({ [keyColumn]: { gt: lastId } });
|
|
6438
|
+
const results = await builder.get();
|
|
6439
|
+
const size = results.count();
|
|
6440
|
+
if (size === 0) break;
|
|
6441
|
+
if (await callback(results, page) === false) return false;
|
|
6442
|
+
lastId = this.readModelAttribute(results.last(), keyAlias);
|
|
6443
|
+
if (lastId === null || lastId === void 0) break;
|
|
6444
|
+
if (size < count) break;
|
|
6445
|
+
page++;
|
|
6446
|
+
}
|
|
6447
|
+
return true;
|
|
6448
|
+
}
|
|
6449
|
+
/**
|
|
6450
|
+
* Iterates the query results one record at a time (chunking under the hood).
|
|
6451
|
+
* Return `false` from the callback to stop early.
|
|
6452
|
+
*
|
|
6453
|
+
* @param callback Receives each record and its 0-based index.
|
|
6454
|
+
* @param count Rows fetched per chunk (default 1000).
|
|
6455
|
+
* @returns
|
|
6456
|
+
*/
|
|
6457
|
+
async each(callback, count = 1e3) {
|
|
6458
|
+
let index = 0;
|
|
6459
|
+
return this.chunk(count, async (models) => {
|
|
6460
|
+
for (const model of models.all()) {
|
|
6461
|
+
if (await callback(model, index) === false) return false;
|
|
6462
|
+
index++;
|
|
6463
|
+
}
|
|
6464
|
+
});
|
|
6465
|
+
}
|
|
6466
|
+
/**
|
|
6467
|
+
* Like {@link each}, but pages by key column ({@link chunkById}) — safe when the
|
|
6468
|
+
* callback updates the records being iterated.
|
|
6469
|
+
*
|
|
6470
|
+
* @param callback Receives each record and its 0-based index.
|
|
6471
|
+
* @param count Rows fetched per chunk (default 1000).
|
|
6472
|
+
* @param column The key column to page by (defaults to the primary key).
|
|
6473
|
+
* @param alias The result attribute holding the key value (defaults to `column`).
|
|
6474
|
+
* @returns
|
|
6475
|
+
*/
|
|
6476
|
+
async eachById(callback, count = 1e3, column, alias) {
|
|
6477
|
+
let index = 0;
|
|
6478
|
+
return this.chunkById(count, async (models) => {
|
|
6479
|
+
for (const model of models.all()) {
|
|
6480
|
+
if (await callback(model, index) === false) return false;
|
|
6481
|
+
index++;
|
|
6482
|
+
}
|
|
6483
|
+
}, column, alias);
|
|
6484
|
+
}
|
|
6485
|
+
/**
|
|
6486
|
+
* Streams the query results lazily as an async iterator, fetching one chunk at
|
|
6487
|
+
* a time so only a small window is held in memory. Iterate with `for await`.
|
|
6488
|
+
*
|
|
6489
|
+
* ```ts
|
|
6490
|
+
* for await (const user of User.query().orderBy({ id: 'asc' }).lazy()) {
|
|
6491
|
+
* // …
|
|
6492
|
+
* }
|
|
6493
|
+
* ```
|
|
6494
|
+
*
|
|
6495
|
+
* @param chunkSize Rows fetched per underlying query (default 1000).
|
|
6496
|
+
* @returns
|
|
6497
|
+
*/
|
|
6498
|
+
async *lazy(chunkSize = 1e3) {
|
|
6499
|
+
this.assertPositiveChunkSize(chunkSize, "lazy");
|
|
6500
|
+
let page = 1;
|
|
6501
|
+
for (;;) {
|
|
6502
|
+
const items = (await this.clone().skip((page - 1) * chunkSize).take(chunkSize).get()).all();
|
|
6503
|
+
if (items.length === 0) break;
|
|
6504
|
+
yield* items;
|
|
6505
|
+
if (items.length < chunkSize) break;
|
|
6506
|
+
page++;
|
|
6507
|
+
}
|
|
6508
|
+
}
|
|
6509
|
+
/**
|
|
6510
|
+
* Streams the results lazily, paging by an ascending key column — safe when the
|
|
6511
|
+
* consumer updates records mid-iteration. Iterate with `for await`.
|
|
6512
|
+
*
|
|
6513
|
+
* @param chunkSize Rows fetched per underlying query (default 1000).
|
|
6514
|
+
* @param column The key column to page by (defaults to the primary key).
|
|
6515
|
+
* @param alias The result attribute holding the key value (defaults to `column`).
|
|
6516
|
+
* @returns
|
|
6517
|
+
*/
|
|
6518
|
+
lazyById(chunkSize = 1e3, column, alias) {
|
|
6519
|
+
return this.lazyByKey(chunkSize, "asc", column, alias);
|
|
6520
|
+
}
|
|
6521
|
+
/**
|
|
6522
|
+
* Streams the results lazily, paging by a descending key column. Iterate with
|
|
6523
|
+
* `for await`.
|
|
6524
|
+
*
|
|
6525
|
+
* @param chunkSize Rows fetched per underlying query (default 1000).
|
|
6526
|
+
* @param column The key column to page by (defaults to the primary key).
|
|
6527
|
+
* @param alias The result attribute holding the key value (defaults to `column`).
|
|
6528
|
+
* @returns
|
|
6529
|
+
*/
|
|
6530
|
+
lazyByIdDesc(chunkSize = 1e3, column, alias) {
|
|
6531
|
+
return this.lazyByKey(chunkSize, "desc", column, alias);
|
|
6532
|
+
}
|
|
6533
|
+
async *lazyByKey(chunkSize, direction, column, alias) {
|
|
6534
|
+
this.assertPositiveChunkSize(chunkSize, "lazyById");
|
|
6535
|
+
const keyColumn = column ?? this.model.getPrimaryKey();
|
|
6536
|
+
const keyAlias = alias ?? keyColumn;
|
|
6537
|
+
const operator = direction === "asc" ? "gt" : "lt";
|
|
6538
|
+
let lastId = null;
|
|
6539
|
+
for (;;) {
|
|
6540
|
+
const builder = this.clone().take(chunkSize).orderBy({ [keyColumn]: direction });
|
|
6541
|
+
if (lastId !== null) builder.where({ [keyColumn]: { [operator]: lastId } });
|
|
6542
|
+
const items = (await builder.get()).all();
|
|
6543
|
+
if (items.length === 0) break;
|
|
6544
|
+
yield* items;
|
|
6545
|
+
lastId = this.readModelAttribute(items[items.length - 1], keyAlias);
|
|
6546
|
+
if (lastId === null || lastId === void 0) break;
|
|
6547
|
+
if (items.length < chunkSize) break;
|
|
6548
|
+
}
|
|
6549
|
+
}
|
|
6550
|
+
assertPositiveChunkSize(count, operation) {
|
|
6551
|
+
if (!Number.isInteger(count) || count < 1) throw new QueryConstraintException("Chunk size must be a positive integer.", {
|
|
6552
|
+
operation,
|
|
6553
|
+
model: this.model.name
|
|
6554
|
+
});
|
|
6555
|
+
}
|
|
6556
|
+
readModelAttribute(model, attribute) {
|
|
6557
|
+
if (!model) return null;
|
|
6558
|
+
return model.getAttribute(attribute);
|
|
6559
|
+
}
|
|
6560
|
+
/**
|
|
6264
6561
|
* Executes the query and returns the first result as a model
|
|
6265
6562
|
* instance, or null if no results are found.
|
|
6266
6563
|
*
|
|
@@ -10081,4 +10378,4 @@ var PivotModel = class extends Model {
|
|
|
10081
10378
|
};
|
|
10082
10379
|
|
|
10083
10380
|
//#endregion
|
|
10084
|
-
export { AggregateExpression, Arkorm, ArkormCollection, ArkormException, Arkormx, Attribute, CaseExpression, CliApp, DB, EnumBuilder, Expression, ForeignKeyBuilder, InitCommand, InlineFactory, JoinClause, JsonExpression, KyselyDatabaseAdapter, LengthAwarePaginator, MIGRATION_BRAND, MakeFactoryCommand, MakeMigrationCommand, MakeModelCommand, MakeSeederCommand, MigrateCommand, MigrateFreshCommand, MigrateRollbackCommand, Migration, MigrationHistoryCommand, MissingDelegateException, Model, ModelFactory, ModelNotFoundException, ModelsSyncCommand, PRISMA_ENUM_MEMBER_REGEX, PRISMA_ENUM_REGEX, PRISMA_MODEL_REGEX, Paginator, PivotModel, PrimaryKeyGenerationPlanner, PrismaDatabaseAdapter, QueryBuilder, QueryConstraintException, QueryExecutionException, RelationResolutionException, RuntimeModuleLoader, SEEDER_BRAND, SchemaBuilder, ScopeNotDefinedException, SeedCommand, Seeder, TableBuilder, URLDriver, UniqueConstraintResolutionException, UnsupportedAdapterFeatureException, 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, emitRuntimeDebugEvent, ensureArkormConfigLoading, escapeRegex, expressionBuilder, findAppliedMigration, findEnumBlock, findModelBlock, fn, formatDefaultValue, formatEnumDefaultValue, formatRelationAction, fromExpressionNode, generateMigrationFile, getActiveTransactionAdapter, getActiveTransactionClient, getDefaultStubsPath, getLastMigrationRun, getLatestAppliedMigrations, getMigrationPlan, 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, resolveRuntimeCompatibilityQuerySchema, resolveRuntimeCompatibilityQuerySchemaOrThrow, runArkormTransaction, runMigrationWithPrisma, runPrismaCommand, stripPrismaSchemaModelsAndEnums, sum, supportsDatabaseCreation, supportsDatabaseMigrationExecution, supportsDatabaseMigrationState, supportsDatabaseReset, syncPersistedColumnMappingsFromState, toMigrationFileSlug, toModelName, val, validatePersistedMetadataFeaturesForMigrations, where, writeAppliedMigrationsState, writeAppliedMigrationsStateToStore, writePersistedColumnMappingsState };
|
|
10381
|
+
export { AggregateExpression, Arkorm, ArkormCollection, ArkormException, Arkormx, Attribute, CaseExpression, CliApp, DB, DbCommand, EnumBuilder, Expression, ForeignKeyBuilder, InitCommand, InlineFactory, JoinClause, JsonExpression, KyselyDatabaseAdapter, LengthAwarePaginator, MIGRATION_BRAND, MakeFactoryCommand, MakeMigrationCommand, MakeModelCommand, MakeSeederCommand, MigrateCommand, MigrateFreshCommand, MigrateRollbackCommand, Migration, MigrationHistoryCommand, MissingDelegateException, Model, ModelFactory, ModelNotFoundException, ModelsSyncCommand, PRISMA_ENUM_MEMBER_REGEX, PRISMA_ENUM_REGEX, PRISMA_MODEL_REGEX, Paginator, PivotModel, PrimaryKeyGenerationPlanner, PrismaDatabaseAdapter, QueryBuilder, QueryConstraintException, QueryExecutionException, RelationResolutionException, RuntimeModuleLoader, SEEDER_BRAND, SchemaBuilder, ScopeNotDefinedException, SeedCommand, Seeder, TableBuilder, URLDriver, UniqueConstraintResolutionException, UnsupportedAdapterFeatureException, 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, 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, resolveRuntimeCompatibilityQuerySchema, resolveRuntimeCompatibilityQuerySchemaOrThrow, runArkormTransaction, runMigrationWithPrisma, runPrismaCommand, stripPrismaSchemaModelsAndEnums, sum, supportsDatabaseCreation, supportsDatabaseMigrationExecution, supportsDatabaseMigrationState, supportsDatabaseReset, syncPersistedColumnMappingsFromState, toMigrationFileSlug, toModelName, val, validatePersistedMetadataFeaturesForMigrations, where, writeAppliedMigrationsState, writeAppliedMigrationsStateToStore, writePersistedColumnMappingsState };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_relationship = require('../relationship-
|
|
2
|
+
const require_relationship = require('../relationship-CQbj9Ahg.cjs');
|
|
3
3
|
|
|
4
4
|
exports.BelongsToManyRelation = require_relationship.BelongsToManyRelation;
|
|
5
5
|
exports.BelongsToRelation = require_relationship.BelongsToRelation;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { as as MorphOneRelation, cs as HasOneRelation, ds as BelongsToRelation, fs as SingleResultRelation, hs as RelationTableLoader, is as MorphToManyRelation, ls as HasManyThroughRelation, ms as Relation, ns as SetBasedEagerLoader, os as MorphManyRelation, ps as BelongsToManyRelation, rs as MorphToRelation, ss as HasOneThroughRelation, us as HasManyRelation } from "../index-WJEmy3Yu.cjs";
|
|
2
2
|
export { BelongsToManyRelation, BelongsToRelation, HasManyRelation, HasManyThroughRelation, HasOneRelation, HasOneThroughRelation, MorphManyRelation, MorphOneRelation, MorphToManyRelation, MorphToRelation, Relation, RelationTableLoader, SetBasedEagerLoader, SingleResultRelation };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { as as MorphOneRelation, cs as HasOneRelation, ds as BelongsToRelation, fs as SingleResultRelation, hs as RelationTableLoader, is as MorphToManyRelation, ls as HasManyThroughRelation, ms as Relation, ns as SetBasedEagerLoader, os as MorphManyRelation, ps as BelongsToManyRelation, rs as MorphToRelation, ss as HasOneThroughRelation, us as HasManyRelation } from "../index-KPekH7gI.mjs";
|
|
2
2
|
export { BelongsToManyRelation, BelongsToRelation, HasManyRelation, HasManyThroughRelation, HasOneRelation, HasOneThroughRelation, MorphManyRelation, MorphOneRelation, MorphToManyRelation, MorphToRelation, Relation, RelationTableLoader, SetBasedEagerLoader, SingleResultRelation };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as HasOneThroughRelation, c as HasManyRelation, d as BelongsToManyRelation, f as Relation, i as MorphManyRelation, l as BelongsToRelation, n as MorphToManyRelation, nr as RelationTableLoader, o as HasOneRelation, r as MorphOneRelation, s as HasManyThroughRelation, t as MorphToRelation, tr as SetBasedEagerLoader, u as SingleResultRelation } from "../relationship-4S2yHPIH.mjs";
|
|
2
2
|
|
|
3
3
|
export { BelongsToManyRelation, BelongsToRelation, HasManyRelation, HasManyThroughRelation, HasOneRelation, HasOneThroughRelation, MorphManyRelation, MorphOneRelation, MorphToManyRelation, MorphToRelation, Relation, RelationTableLoader, SetBasedEagerLoader, SingleResultRelation };
|