arkormx 2.9.0 → 2.9.1
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-C7r00xN5.d.mts → index-18M5gEFk.d.cts} +146 -124
- package/dist/{index-wYvd4F2M.d.cts → index-CFXreeV7.d.mts} +146 -124
- package/dist/index.cjs +26 -13
- package/dist/index.d.cts +2 -2
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +26 -13
- package/dist/relationship/index.d.cts +1 -1
- package/dist/relationship/index.d.mts +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Collection } from "@h3ravel/collect.js";
|
|
2
1
|
import { Kysely, Transaction } from "kysely";
|
|
3
|
-
import { Command } from "@h3ravel/musket";
|
|
4
2
|
import { PrismaClient } from "@prisma/client";
|
|
3
|
+
import { Collection } from "@h3ravel/collect.js";
|
|
4
|
+
import { Command } from "@h3ravel/musket";
|
|
5
5
|
|
|
6
6
|
//#region src/types/migrations.d.ts
|
|
7
7
|
type SchemaColumnType = 'id' | 'uuid' | 'enum' | 'string' | 'text' | 'integer' | 'bigInteger' | 'float' | 'boolean' | 'json' | 'date' | 'timestamp';
|
|
@@ -355,6 +355,132 @@ declare class Paginator<T> {
|
|
|
355
355
|
};
|
|
356
356
|
}
|
|
357
357
|
//#endregion
|
|
358
|
+
//#region src/JoinClause.d.ts
|
|
359
|
+
/**
|
|
360
|
+
* A fluent builder for the `on`/`where` constraints of a join clause.
|
|
361
|
+
*
|
|
362
|
+
* Instances are handed to the closure form of the query builder join helpers
|
|
363
|
+
* (for example `query.join('posts', join => join.on(...).where(...))`) and
|
|
364
|
+
* mirror Laravel's `JoinClause` surface. Column identifiers are treated as raw
|
|
365
|
+
* database identifiers (qualify them as `table.column` when needed).
|
|
366
|
+
*
|
|
367
|
+
* @author Legacy (3m1n3nc3)
|
|
368
|
+
*/
|
|
369
|
+
declare class JoinClause {
|
|
370
|
+
private readonly constraints;
|
|
371
|
+
/**
|
|
372
|
+
* Adds a column-to-column `on` constraint, joined with `and`.
|
|
373
|
+
*
|
|
374
|
+
* Accepts either a closure (for a nested group) or a column comparison in
|
|
375
|
+
* the `(first, second)` or `(first, operator, second)` form.
|
|
376
|
+
*
|
|
377
|
+
* @param first The left-hand column or a nested closure.
|
|
378
|
+
* @param operator The comparison operator (defaults to `=`).
|
|
379
|
+
* @param second The right-hand column.
|
|
380
|
+
* @returns
|
|
381
|
+
*/
|
|
382
|
+
on(first: string | ((join: JoinClause) => void), operator?: QueryScalarComparisonOperator | string, second?: string): this;
|
|
383
|
+
/**
|
|
384
|
+
* Adds a column-to-column `on` constraint, joined with `or`.
|
|
385
|
+
*
|
|
386
|
+
* @param first The left-hand column or a nested closure.
|
|
387
|
+
* @param operator The comparison operator (defaults to `=`).
|
|
388
|
+
* @param second The right-hand column.
|
|
389
|
+
* @returns
|
|
390
|
+
*/
|
|
391
|
+
orOn(first: string | ((join: JoinClause) => void), operator?: QueryScalarComparisonOperator | string, second?: string): this;
|
|
392
|
+
/**
|
|
393
|
+
* Adds a column-to-value constraint, joined with `and`.
|
|
394
|
+
*
|
|
395
|
+
* @param column The column being compared.
|
|
396
|
+
* @param operator The comparison operator or the value when omitted.
|
|
397
|
+
* @param value The value to compare against.
|
|
398
|
+
* @returns
|
|
399
|
+
*/
|
|
400
|
+
where(column: string, operator?: QueryComparisonOperator | string | DatabaseValue, value?: DatabaseValue): this;
|
|
401
|
+
/**
|
|
402
|
+
* Adds a column-to-value constraint, joined with `or`.
|
|
403
|
+
*
|
|
404
|
+
* @param column The column being compared.
|
|
405
|
+
* @param operator The comparison operator or the value when omitted.
|
|
406
|
+
* @param value The value to compare against.
|
|
407
|
+
* @returns
|
|
408
|
+
*/
|
|
409
|
+
orWhere(column: string, operator?: QueryComparisonOperator | string | DatabaseValue, value?: DatabaseValue): this;
|
|
410
|
+
/**
|
|
411
|
+
* Adds an `is null` constraint joined with `and`.
|
|
412
|
+
*
|
|
413
|
+
* @param column The column to test for null.
|
|
414
|
+
* @returns
|
|
415
|
+
*/
|
|
416
|
+
whereNull(column: string): this;
|
|
417
|
+
/**
|
|
418
|
+
* Adds an `is null` constraint joined with `or`.
|
|
419
|
+
*
|
|
420
|
+
* @param column The column to test for null.
|
|
421
|
+
* @returns
|
|
422
|
+
*/
|
|
423
|
+
orWhereNull(column: string): this;
|
|
424
|
+
/**
|
|
425
|
+
* Adds an `is not null` constraint joined with `and`.
|
|
426
|
+
*
|
|
427
|
+
* @param column The column to test for non-null.
|
|
428
|
+
* @returns
|
|
429
|
+
*/
|
|
430
|
+
whereNotNull(column: string): this;
|
|
431
|
+
/**
|
|
432
|
+
* Adds an `is not null` constraint joined with `or`.
|
|
433
|
+
*
|
|
434
|
+
* @param column The column to test for non-null.
|
|
435
|
+
* @returns
|
|
436
|
+
*/
|
|
437
|
+
orWhereNotNull(column: string): this;
|
|
438
|
+
/**
|
|
439
|
+
* Adds a raw constraint joined with `and`.
|
|
440
|
+
*
|
|
441
|
+
* @param sql The raw SQL fragment (with `?` placeholders for bindings).
|
|
442
|
+
* @param bindings The values bound to the placeholders.
|
|
443
|
+
* @returns
|
|
444
|
+
*/
|
|
445
|
+
onRaw(sql: string, bindings?: DatabaseValue[]): this;
|
|
446
|
+
/**
|
|
447
|
+
* Adds a raw constraint joined with `or`.
|
|
448
|
+
*
|
|
449
|
+
* @param sql The raw SQL fragment (with `?` placeholders for bindings).
|
|
450
|
+
* @param bindings The values bound to the placeholders.
|
|
451
|
+
* @returns
|
|
452
|
+
*/
|
|
453
|
+
orOnRaw(sql: string, bindings?: DatabaseValue[]): this;
|
|
454
|
+
/**
|
|
455
|
+
* Returns the accumulated constraints for this join clause.
|
|
456
|
+
*
|
|
457
|
+
* @returns
|
|
458
|
+
*/
|
|
459
|
+
getConstraints(): QueryJoinConstraint[];
|
|
460
|
+
private addOn;
|
|
461
|
+
private addWhere;
|
|
462
|
+
}
|
|
463
|
+
//#endregion
|
|
464
|
+
//#region src/types/query-builder.d.ts
|
|
465
|
+
type RelatedModelFromResult<TResult> = TResult extends ArkormCollection<infer TRelated> ? TRelated : Exclude<TResult, null | undefined>;
|
|
466
|
+
type RelatedModelForRelationship<TModel, TKey extends ModelRelationshipKey<TModel>> = TModel[TKey] extends ((...args: any[]) => infer TRelation) ? TRelation extends {
|
|
467
|
+
getResults: (...args: any[]) => Promise<infer TResult>;
|
|
468
|
+
} ? RelatedModelFromResult<TResult> : never : never;
|
|
469
|
+
/**
|
|
470
|
+
* The left-hand argument accepted by the join helpers: either a column name or a
|
|
471
|
+
* closure that configures the join constraints through a {@link JoinClause}.
|
|
472
|
+
*/
|
|
473
|
+
type JoinOn = string | ((join: JoinClause) => void);
|
|
474
|
+
/**
|
|
475
|
+
* A subquery source accepted by the subquery/lateral join helpers.
|
|
476
|
+
*/
|
|
477
|
+
type JoinSource = QueryBuilder<any, any> | string;
|
|
478
|
+
/**
|
|
479
|
+
* A callback that builds a parenthesized group of nested where conditions.
|
|
480
|
+
*/
|
|
481
|
+
type WhereCallback<TModel, TDelegate extends ModelQuerySchemaLike> = (query: QueryBuilder<TModel, TDelegate>) => QueryBuilder<any, any> | void;
|
|
482
|
+
type EagerLoadRelations<TModel> = { [TKey in ModelRelationshipKey<TModel>]?: true | EagerLoadConstraint<QueryBuilder<RelatedModelForRelationship<TModel, TKey>, QuerySchemaForModelInstance<RelatedModelForRelationship<TModel, TKey>>>> };
|
|
483
|
+
//#endregion
|
|
358
484
|
//#region src/types/relationship.d.ts
|
|
359
485
|
type RelationResult = unknown[] | unknown | null;
|
|
360
486
|
type RelationResultCache = WeakMap<object, Map<string, Map<unknown, Promise<RelationResult>>>>;
|
|
@@ -3087,127 +3213,7 @@ type ModelLifecycleState = {
|
|
|
3087
3213
|
globalScopesSuppressed: number;
|
|
3088
3214
|
};
|
|
3089
3215
|
//#endregion
|
|
3090
|
-
//#region src/JoinClause.d.ts
|
|
3091
|
-
/**
|
|
3092
|
-
* A fluent builder for the `on`/`where` constraints of a join clause.
|
|
3093
|
-
*
|
|
3094
|
-
* Instances are handed to the closure form of the query builder join helpers
|
|
3095
|
-
* (for example `query.join('posts', join => join.on(...).where(...))`) and
|
|
3096
|
-
* mirror Laravel's `JoinClause` surface. Column identifiers are treated as raw
|
|
3097
|
-
* database identifiers (qualify them as `table.column` when needed).
|
|
3098
|
-
*
|
|
3099
|
-
* @author Legacy (3m1n3nc3)
|
|
3100
|
-
*/
|
|
3101
|
-
declare class JoinClause {
|
|
3102
|
-
private readonly constraints;
|
|
3103
|
-
/**
|
|
3104
|
-
* Adds a column-to-column `on` constraint, joined with `and`.
|
|
3105
|
-
*
|
|
3106
|
-
* Accepts either a closure (for a nested group) or a column comparison in
|
|
3107
|
-
* the `(first, second)` or `(first, operator, second)` form.
|
|
3108
|
-
*
|
|
3109
|
-
* @param first The left-hand column or a nested closure.
|
|
3110
|
-
* @param operator The comparison operator (defaults to `=`).
|
|
3111
|
-
* @param second The right-hand column.
|
|
3112
|
-
* @returns
|
|
3113
|
-
*/
|
|
3114
|
-
on(first: string | ((join: JoinClause) => void), operator?: QueryScalarComparisonOperator | string, second?: string): this;
|
|
3115
|
-
/**
|
|
3116
|
-
* Adds a column-to-column `on` constraint, joined with `or`.
|
|
3117
|
-
*
|
|
3118
|
-
* @param first The left-hand column or a nested closure.
|
|
3119
|
-
* @param operator The comparison operator (defaults to `=`).
|
|
3120
|
-
* @param second The right-hand column.
|
|
3121
|
-
* @returns
|
|
3122
|
-
*/
|
|
3123
|
-
orOn(first: string | ((join: JoinClause) => void), operator?: QueryScalarComparisonOperator | string, second?: string): this;
|
|
3124
|
-
/**
|
|
3125
|
-
* Adds a column-to-value constraint, joined with `and`.
|
|
3126
|
-
*
|
|
3127
|
-
* @param column The column being compared.
|
|
3128
|
-
* @param operator The comparison operator or the value when omitted.
|
|
3129
|
-
* @param value The value to compare against.
|
|
3130
|
-
* @returns
|
|
3131
|
-
*/
|
|
3132
|
-
where(column: string, operator?: QueryComparisonOperator | string | DatabaseValue, value?: DatabaseValue): this;
|
|
3133
|
-
/**
|
|
3134
|
-
* Adds a column-to-value constraint, joined with `or`.
|
|
3135
|
-
*
|
|
3136
|
-
* @param column The column being compared.
|
|
3137
|
-
* @param operator The comparison operator or the value when omitted.
|
|
3138
|
-
* @param value The value to compare against.
|
|
3139
|
-
* @returns
|
|
3140
|
-
*/
|
|
3141
|
-
orWhere(column: string, operator?: QueryComparisonOperator | string | DatabaseValue, value?: DatabaseValue): this;
|
|
3142
|
-
/**
|
|
3143
|
-
* Adds an `is null` constraint joined with `and`.
|
|
3144
|
-
*
|
|
3145
|
-
* @param column The column to test for null.
|
|
3146
|
-
* @returns
|
|
3147
|
-
*/
|
|
3148
|
-
whereNull(column: string): this;
|
|
3149
|
-
/**
|
|
3150
|
-
* Adds an `is null` constraint joined with `or`.
|
|
3151
|
-
*
|
|
3152
|
-
* @param column The column to test for null.
|
|
3153
|
-
* @returns
|
|
3154
|
-
*/
|
|
3155
|
-
orWhereNull(column: string): this;
|
|
3156
|
-
/**
|
|
3157
|
-
* Adds an `is not null` constraint joined with `and`.
|
|
3158
|
-
*
|
|
3159
|
-
* @param column The column to test for non-null.
|
|
3160
|
-
* @returns
|
|
3161
|
-
*/
|
|
3162
|
-
whereNotNull(column: string): this;
|
|
3163
|
-
/**
|
|
3164
|
-
* Adds an `is not null` constraint joined with `or`.
|
|
3165
|
-
*
|
|
3166
|
-
* @param column The column to test for non-null.
|
|
3167
|
-
* @returns
|
|
3168
|
-
*/
|
|
3169
|
-
orWhereNotNull(column: string): this;
|
|
3170
|
-
/**
|
|
3171
|
-
* Adds a raw constraint joined with `and`.
|
|
3172
|
-
*
|
|
3173
|
-
* @param sql The raw SQL fragment (with `?` placeholders for bindings).
|
|
3174
|
-
* @param bindings The values bound to the placeholders.
|
|
3175
|
-
* @returns
|
|
3176
|
-
*/
|
|
3177
|
-
onRaw(sql: string, bindings?: DatabaseValue[]): this;
|
|
3178
|
-
/**
|
|
3179
|
-
* Adds a raw constraint joined with `or`.
|
|
3180
|
-
*
|
|
3181
|
-
* @param sql The raw SQL fragment (with `?` placeholders for bindings).
|
|
3182
|
-
* @param bindings The values bound to the placeholders.
|
|
3183
|
-
* @returns
|
|
3184
|
-
*/
|
|
3185
|
-
orOnRaw(sql: string, bindings?: DatabaseValue[]): this;
|
|
3186
|
-
/**
|
|
3187
|
-
* Returns the accumulated constraints for this join clause.
|
|
3188
|
-
*
|
|
3189
|
-
* @returns
|
|
3190
|
-
*/
|
|
3191
|
-
getConstraints(): QueryJoinConstraint[];
|
|
3192
|
-
private addOn;
|
|
3193
|
-
private addWhere;
|
|
3194
|
-
}
|
|
3195
|
-
//#endregion
|
|
3196
3216
|
//#region src/QueryBuilder.d.ts
|
|
3197
|
-
type RelatedModelFromResult<TResult> = TResult extends ArkormCollection<infer TRelated> ? TRelated : Exclude<TResult, null | undefined>;
|
|
3198
|
-
type RelatedModelForRelationship<TModel, TKey extends ModelRelationshipKey<TModel>> = TModel[TKey] extends ((...args: any[]) => infer TRelation) ? TRelation extends {
|
|
3199
|
-
getResults: (...args: any[]) => Promise<infer TResult>;
|
|
3200
|
-
} ? RelatedModelFromResult<TResult> : never : never;
|
|
3201
|
-
/**
|
|
3202
|
-
* The left-hand argument accepted by the join helpers: either a column name or a
|
|
3203
|
-
* closure that configures the join constraints through a {@link JoinClause}.
|
|
3204
|
-
*/
|
|
3205
|
-
type JoinOn = string | ((join: JoinClause) => void);
|
|
3206
|
-
/**
|
|
3207
|
-
* A subquery source accepted by the subquery/lateral join helpers.
|
|
3208
|
-
*/
|
|
3209
|
-
type JoinSource = QueryBuilder<any, any> | string;
|
|
3210
|
-
type EagerLoadRelations<TModel> = { [TKey in ModelRelationshipKey<TModel>]?: true | EagerLoadConstraint<QueryBuilder<RelatedModelForRelationship<TModel, TKey>, QuerySchemaForModelInstance<RelatedModelForRelationship<TModel, TKey>>>> };
|
|
3211
3217
|
/**
|
|
3212
3218
|
* The QueryBuilder class provides a fluent interface for building and
|
|
3213
3219
|
* executing database queries.
|
|
@@ -3247,17 +3253,33 @@ declare class QueryBuilder<TModel, TDelegate extends ModelQuerySchemaLike = Mode
|
|
|
3247
3253
|
* Adds a where clause to the query. Multiple calls to where will combine
|
|
3248
3254
|
* the clauses with AND logic.
|
|
3249
3255
|
*
|
|
3256
|
+
* Pass a callback to build a parenthesized group of nested conditions, e.g.
|
|
3257
|
+
* `where(query => query.where({ a: 1 }).orWhere({ b: 2 }))` compiles to
|
|
3258
|
+
* `(... or ...)`.
|
|
3259
|
+
*
|
|
3250
3260
|
* @param where
|
|
3251
3261
|
* @returns
|
|
3252
3262
|
*/
|
|
3253
3263
|
where(where: QuerySchemaWhere<TDelegate>): this;
|
|
3264
|
+
where(callback: WhereCallback<TModel, TDelegate>): this;
|
|
3254
3265
|
/**
|
|
3255
|
-
* Adds an OR where clause to the query.
|
|
3266
|
+
* Adds an OR where clause to the query. Pass a callback to build a
|
|
3267
|
+
* parenthesized group of nested conditions.
|
|
3256
3268
|
*
|
|
3257
3269
|
* @param where
|
|
3258
3270
|
* @returns
|
|
3259
3271
|
*/
|
|
3260
3272
|
orWhere(where: QuerySchemaWhere<TDelegate>): this;
|
|
3273
|
+
orWhere(callback: WhereCallback<TModel, TDelegate>): this;
|
|
3274
|
+
/**
|
|
3275
|
+
* Resolve a callback into a parenthesized group condition and append it.
|
|
3276
|
+
*/
|
|
3277
|
+
private appendNestedWhere;
|
|
3278
|
+
/**
|
|
3279
|
+
* Returns the user-authored where condition for nesting, excluding any
|
|
3280
|
+
* soft-delete predicate (the parent query owns that).
|
|
3281
|
+
*/
|
|
3282
|
+
private getNestedWhereCondition;
|
|
3261
3283
|
/**
|
|
3262
3284
|
* Adds a NOT where clause to the query.
|
|
3263
3285
|
*
|
|
@@ -7746,4 +7768,4 @@ declare class URLDriver {
|
|
|
7746
7768
|
url(page: number): string;
|
|
7747
7769
|
}
|
|
7748
7770
|
//#endregion
|
|
7749
|
-
export { buildRelationLine as $, AttributeSchemaDelegate as $a, EagerLoadConstraint as $i, RuntimePathMap as $n, LengthAwarePaginator as $o, QueryFullTextCondition as $r, getPersistedColumnMap as $t, isTransactionCapableClient as A, QuerySchemaUniqueWhere as Aa, UpsertSpec as Ai, ForeignKeyBuilder as An, MorphToManyRelation as Ao, AdapterModelFieldStructure as Ar, AppliedMigrationsState as As, createEmptyAppliedMigrationsState as At, applyDropTableOperation as B, TransactionCapableClient as Ba, CastType as Bi, MakeFactoryCommand as Bn, Relation as Bo, DatabaseRow as Br, SchemaForeignKey as Bs, removeAppliedMigration as Bt, getRuntimeDebugHandler as C, QuerySchemaCreateData as Ca, RelationLoadPlan as Ci, ArkormException as Cn, RelatedModelClass as Co, createPrismaDatabaseAdapter as Cr, MorphToManyRelationMetadata as Cs, supportsDatabaseMigrationExecution as Ct, getUserConfig as D, QuerySchemaRow as Da, SortDirection as Di, SchemaBuilder as Dn, defineFactory as Do, AdapterCapability as Dr, RelationMetadataType as Ds, buildMigrationIdentity as Dt, getRuntimePrismaClient as E, QuerySchemaOrderBy as Ea, SoftDeleteQueryMode as Ei, Migration as En, ModelFactory as Eo, AdapterCapabilities as Er, RelationMetadata as Es, toModelName as Et, PRISMA_ENUM_MEMBER_REGEX as F, RuntimeClientLike as Fa, ArkormDebugEvent as Fi, MigrateFreshCommand as Fn, HasManyThroughRelation as Fo, AggregateOperation as Fr, PrimaryKeyGeneration as Fs, isMigrationApplied as Ft, applyOperationsToPrismaSchema as G, EagerLoadRelations as Ga, DelegateOrderBy as Gi, AttributeOptions as Gn, RelationColumnLookupSpec as Go, InsertManySpec as Gr, SchemaTableAlterOperation as Gs, PersistedColumnMappingsState as Gt, applyMigrationRollbackToPrismaSchema as H, TransactionOptions as Ha, DelegateCreateData as Hi, CliApp as Hn, RelationAggregateConstraint as Ho, DatabaseValue as Hr, SchemaIndex as Hs, supportsDatabaseMigrationState as Ht, PRISMA_ENUM_REGEX as I, Serializable as Ia, ArkormDebugHandler as Ii, MigrateCommand as In, HasManyRelation as Io, AggregateSelection as Ir, PrismaMigrationWorkflowOptions as Is, markMigrationApplied as It, buildIndexLine as J, QueryBuilder as Ja, DelegateSelect as Ji, RegisteredFactory as Jn, RelationDefaultValue as Jo, QueryComparisonCondition as Jr, SchemaUniqueConstraint as Js, PersistedTableMetadata as Jt, buildEnumBlock as K, JoinOn as Ka, DelegateRow as Ki, Arkorm as Kn, RelationConstraint as Ko, InsertSpec as Kr, SchemaTableCreateOperation as Ks, PersistedMetadataFeatures as Kt, PRISMA_MODEL_REGEX as L, SimplePaginationMeta as La, CastDefinition as Li, MakeSeederCommand as Ln, BelongsToRelation as Lo, AggregateSpec as Lr, PrismaSchemaSyncOptions as Ls, markMigrationRun as Lt, resetArkormRuntimeForTests as M, QuerySchemaUpdateData as Ma, AdapterQueryInspection as Mi, ModelsSyncCommand as Mn, MorphManyRelation as Mo, AdapterModelStructure as Mr, GeneratedMigrationFile as Ms, findAppliedMigration as Mt, runArkormTransaction as N, QuerySchemaWhere as Na, ArkormBootContext as Ni, MigrationHistoryCommand as Nn, HasOneThroughRelation as No, AdapterQueryOperation as Nr, MigrationClass as Ns, getLastMigrationRun as Nt, isDelegateLike as O, QuerySchemaRows as Oa, UpdateManySpec as Oi, EnumBuilder as On, SetBasedEagerLoader as Oo, AdapterDatabaseCreationResult as Or, AppliedMigrationEntry as Os, buildMigrationRunId as Ot, PrimaryKeyGenerationPlanner as P, RawSelectInput as Pa, ArkormConfig as Pi, MigrateRollbackCommand as Pn, HasOneRelation as Po, AdapterTransactionContext as Pr, MigrationInstanceLike as Ps, getLatestAppliedMigrations as Pt, buildPrimaryKeyLine as Q, AttributeQuerySchema as Qa, DelegateWhere as Qi, RuntimePathKey as Qn, RelationTableLookupSpec as Qo, QueryExistsCondition as Qr, deletePersistedColumnMappingsState as Qt, applyAlterTableOperation as R, SoftDeleteConfig as Ra, CastHandler as Ri, MakeModelCommand as Rn, SingleResultRelation as Ro, DatabaseAdapter as Rr, SchemaColumn as Rs, readAppliedMigrationsState as Rt, getRuntimeClient as S, PrismaTransactionOptions as Sa, RelationFilterSpec as Si, ArkormErrorContext as Sn, QuerySchemaForModelInstance as So, createPrismaCompatibilityAdapter as Sr, MorphOneRelationMetadata as Ss, supportsDatabaseCreation as St, getRuntimePaginationURLDriverFactory as T, QuerySchemaInclude as Ta, SelectSpec as Ti, MIGRATION_BRAND as Tn, InlineFactory as To, createKyselyAdapter as Tr, PivotModelStatic as Ts, toMigrationFileSlug as Tt, applyMigrationToDatabase as U, ModelStatic as Ua, DelegateFindManyArgs as Ui, resolveCast as Un, RelationAggregateInput as Uo, DeleteManySpec as Ur, SchemaOperation as Us, writeAppliedMigrationsState as Ut, applyMigrationRollbackToDatabase as V, TransactionContext as Va, ClientResolver as Vi, InitCommand as Vn, RelationTableLoader as Vo, DatabaseRows as Vr, SchemaForeignKeyAction as Vs, resolveMigrationStateFilePath as Vt, applyMigrationToPrismaSchema as W, RelationshipModelStatic as Wa, DelegateInclude as Wi, Attribute as Wn, RelationAggregateType as Wo, DeleteSpec as Wr, SchemaPrimaryKey as Ws, writeAppliedMigrationsStateToStore as Wt, buildMigrationSource as X, AttributeCreateInput as Xa, DelegateUpdateArgs as Xi, RuntimeConstructor as Xn, RelationResult as Xo, QueryCondition as Xr, TimestampNames as Xs, applyOperationsToPersistedColumnMappingsState as Xt, buildInverseRelationLine as Y, JoinClause as Ya, DelegateUniqueWhere as Yi, RegisteredModel as Yn, RelationMetadataProvider as Yo, QueryComparisonOperator as Yr, TimestampColumnBehavior as Ys, PersistedTimestampColumn as Yt, buildModelBlock as Z, AttributeOrderBy as Za, DelegateUpdateData as Zi, RuntimePathInput as Zn, RelationResultCache as Zo, QueryDayCondition as Zr, TimestampNaming as Zs, createEmptyPersistedColumnMappingsState as Zt, ensureArkormConfigLoading as _, PrismaLikeSortOrder as _a, QuerySelectColumn as _i, QueryExecutionException as _n, ModelRelationshipKey as _o, SeederCallArgument as _r, HasManyThroughRelationMetadata as _s, resolveMigrationClassName as _t, getRuntimeCompatibilityAdapter as a, PaginationCurrentPageResolver as aa, QueryJoinNestedConstraint as ai, readPersistedColumnMappingsState as an, ModelAttributeValue as ao, loadFactoriesFrom as ar, FactoryDefinition as as, deriveRelationFieldName as at, getDefaultStubsPath as b, PrismaTransactionCapableClient as ba, RawQuerySpec as bi, ModelNotFoundException as bn, ModelWhereInput as bo, PrismaDatabaseAdapter as br, ModelMetadata as bs, runPrismaCommand as bt, PrismaDelegateMap as c, PaginationURLDriver as ca, QueryJoinType as ci, resolveColumnMappingsFilePath as cn, ModelCreateData as co, loadSeedersFrom as cr, FactoryRelationshipResolver as cs, findEnumBlock as ct, inferDelegateName as d, PrismaDelegateLike as da, QueryJsonConditionKind as di, validatePersistedMetadataFeaturesForMigrations as dn, ModelEventHandler as do, registerModels as dr, DatabaseTableOptions as ds, formatEnumDefaultValue as dt, EagerLoadMap as ea, QueryGroupCondition as ei, getPersistedEnumMap as en, AttributeSelect as eo, getRegisteredFactories as er, Paginator as es, buildUniqueConstraintLine as et, awaitConfiguredModelsRegistration as f, PrismaFindManyArgsLike as fa, QueryLogicalOperator as fi, writePersistedColumnMappingsState as fn, ModelEventHandlerConstructor as fo, registerPaths as fr, DatabaseTablePersistedMetadataOptions as fs, formatRelationAction as ft, emitRuntimeDebugEvent as g, PrismaLikeSelect as ga, QueryScalarComparisonOperator as gi, RelationResolutionException as gn, ModelOrderByInput as go, Seeder as gr, HasManyRelationMetadata as gs, resolveEnumName as gt, defineConfig as h, PrismaLikeScalarFilter as ha, QueryRawCondition as hi, ScopeNotDefinedException as hn, ModelLifecycleState as ho, SEEDER_BRAND as hr, ColumnMap as hs, pad as ht, RuntimeModuleLoader as i, NamingCase as ia, QueryJoinConstraint as ii, getPersistedTimestampColumns as in, GlobalScope as io, getRegisteredSeeders as ir, FactoryCallback as is, deriveRelationAlias as it, loadArkormConfig as j, QuerySchemaUpdateArgs as ja, AdapterBindableModel as ji, SeedCommand as jn, MorphOneRelation as jo, AdapterModelIntrospectionOptions as jr, GenerateMigrationOptions as js, deleteAppliedMigrationsStateFromStore as jt, isQuerySchemaLike as k, QuerySchemaSelect as ka, UpdateSpec as ki, TableBuilder as kn, MorphToRelation as ko, AdapterInspectionRequest as kr, AppliedMigrationRun as ks, computeMigrationChecksum as kt, createPrismaAdapter as l, PaginationURLDriverFactory as la, QueryJoinValueConstraint as li, resolvePersistedMetadataFeatures as ln, ModelDeclaredAttributeKey as lo, registerFactories as lr, FactoryState as ls, findModelBlock as lt, configureArkormRuntime as m, PrismaLikeOrderBy as ma, QueryOrderBy as mi, UniqueConstraintResolutionException as mn, ModelEventName as mo, resetRuntimeRegistryForTests as mr, BelongsToRelationMetadata as ms, getMigrationPlan as mt, PivotModel as n, ModelQuerySchemaLike as na, QueryJoinBoolean as ni, getPersistedPrimaryKeyGeneration as nn, AttributeWhereInput as no, getRegisteredModels as nr, FactoryAttributeResolver as ns, deriveCollectionFieldName as nt, resolveRuntimeCompatibilityQuerySchema as o, PaginationMeta as oa, QueryJoinNullConstraint as oi, rebuildPersistedColumnMappingsState as on, ModelAttributes as oo, loadMigrationsFrom as or, FactoryDefinitionAttributes as os, deriveSingularFieldName as ot, bindAdapterToModels as p, PrismaLikeInclude as pa, QueryNotCondition as pi, UnsupportedAdapterFeatureException as pn, ModelEventListener as po, registerSeeders as pr, BelongsToManyRelationMetadata as ps, generateMigrationFile as pt, buildFieldLine as q, JoinSource as qa, DelegateRows as qi, Arkormx as qn, RelationDefaultResolver as qo, QueryColumnComparisonCondition as qr, SchemaTableDropOperation as qs, PersistedPrimaryKeyGeneration as qt, LoadedRuntimeModule as r, ModelTableCase as ra, QueryJoinColumnConstraint as ri, getPersistedTableMetadata as rn, DelegateForModelSchema as ro, getRegisteredPaths as rr, FactoryAttributes as rs, deriveInverseRelationAlias as rt, resolveRuntimeCompatibilityQuerySchemaOrThrow as s, PaginationOptions as sa, QueryJoinRawConstraint as si, resetPersistedColumnMappingsCache as sn, ModelAttributesOf as so, loadModelsFrom as sr, FactoryModelConstructor as ss, escapeRegex as st, URLDriver as t, GetUserConfig as ta, QueryJoin as ti, getPersistedEnumTsType as tn, AttributeUpdateInput as to, getRegisteredMigrations as tr, ArkormCollection as ts, createMigrationTimestamp as tt, createPrismaDelegateMap as u, PrismaClientLike as ua, QueryJsonCondition as ui, syncPersistedColumnMappingsFromState as un, ModelEventDispatcher as uo, registerMigrations as ur, MaybePromise as us, formatDefaultValue as ut, getActiveTransactionAdapter as v, PrismaLikeWhereInput as va, QueryTarget as vi, QueryExecutionExceptionContext as vn, ModelRelationshipResult as vo, SeederConstructor as vr, HasOneRelationMetadata as vs, resolvePrismaType as vt, getRuntimePaginationCurrentPageResolver as w, QuerySchemaFindManyArgs as wa, RelationLoadSpec as wi, DB as wn, Model as wo, KyselyDatabaseAdapter as wr, MorphToRelationMetadata as ws, supportsDatabaseReset as wt, getRuntimeAdapter as x, PrismaTransactionContext as xa, RelationAggregateSpec as xi, MissingDelegateException as xn, QuerySchemaForModel as xo, PrismaDelegateNameMapping as xr, MorphManyRelationMetadata as xs, stripPrismaSchemaModelsAndEnums as xt, getActiveTransactionClient as y, PrismaTransactionCallback as ya, QueryTimeCondition as yi, QueryConstraintException as yn, ModelUpdateData as yo, SeederInput as yr, HasOneThroughRelationMetadata as ys, runMigrationWithPrisma as yt, applyCreateTableOperation as z, TransactionCallback as za, CastMap as zi, MakeMigrationCommand as zn, BelongsToManyRelation as zo, DatabasePrimitive as zr, SchemaColumnType as zs, readAppliedMigrationsStateFromStore as zt };
|
|
7771
|
+
export { buildRelationLine as $, DelegateForModelSchema as $a, EagerLoadConstraint as $i, RuntimePathMap as $n, RelatedModelFromResult as $o, QueryFullTextCondition as $r, TimestampNames as $s, getPersistedColumnMap as $t, isTransactionCapableClient as A, QuerySchemaUniqueWhere as Aa, UpsertSpec as Ai, ForeignKeyBuilder as An, HasOneRelation as Ao, AdapterModelFieldStructure as Ar, RelationMetadataType as As, createEmptyAppliedMigrationsState as At, applyDropTableOperation as B, TransactionCapableClient as Ba, CastType as Bi, MakeFactoryCommand as Bn, RelationAggregateType as Bo, DatabaseRow as Br, PrismaSchemaSyncOptions as Bs, removeAppliedMigration as Bt, getRuntimeDebugHandler as C, QuerySchemaCreateData as Ca, RelationLoadPlan as Ci, ArkormException as Cn, defineFactory as Co, createPrismaDatabaseAdapter as Cr, ModelMetadata as Cs, supportsDatabaseMigrationExecution as Ct, getUserConfig as D, QuerySchemaRow as Da, SortDirection as Di, SchemaBuilder as Dn, MorphOneRelation as Do, AdapterCapability as Dr, MorphToRelationMetadata as Ds, buildMigrationIdentity as Dt, getRuntimePrismaClient as E, QuerySchemaOrderBy as Ea, SoftDeleteQueryMode as Ei, Migration as En, MorphToManyRelation as Eo, AdapterCapabilities as Er, MorphToManyRelationMetadata as Es, toModelName as Et, PRISMA_ENUM_MEMBER_REGEX as F, RuntimeClientLike as Fa, ArkormDebugEvent as Fi, MigrateFreshCommand as Fn, BelongsToManyRelation as Fo, AggregateOperation as Fr, GeneratedMigrationFile as Fs, isMigrationApplied as Ft, applyOperationsToPrismaSchema as G, QueryBuilder as Ga, DelegateOrderBy as Gi, AttributeOptions as Gn, RelationMetadataProvider as Go, InsertManySpec as Gr, SchemaIndex as Gs, PersistedColumnMappingsState as Gt, applyMigrationRollbackToPrismaSchema as H, TransactionOptions as Ha, DelegateCreateData as Hi, CliApp as Hn, RelationConstraint as Ho, DatabaseValue as Hr, SchemaColumnType as Hs, supportsDatabaseMigrationState as Ht, PRISMA_ENUM_REGEX as I, Serializable as Ia, ArkormDebugHandler as Ii, MigrateCommand as In, Relation as Io, AggregateSelection as Ir, MigrationClass as Is, markMigrationApplied as It, buildIndexLine as J, AttributeQuerySchema as Ja, DelegateSelect as Ji, RegisteredFactory as Jn, RelationTableLookupSpec as Jo, QueryComparisonCondition as Jr, SchemaTableAlterOperation as Js, PersistedTableMetadata as Jt, buildEnumBlock as K, AttributeCreateInput as Ka, DelegateRow as Ki, Arkorm as Kn, RelationResult as Ko, InsertSpec as Kr, SchemaOperation as Ks, PersistedMetadataFeatures as Kt, PRISMA_MODEL_REGEX as L, SimplePaginationMeta as La, CastDefinition as Li, MakeSeederCommand as Ln, RelationTableLoader as Lo, AggregateSpec as Lr, MigrationInstanceLike as Ls, markMigrationRun as Lt, resetArkormRuntimeForTests as M, QuerySchemaUpdateData as Ma, AdapterQueryInspection as Mi, ModelsSyncCommand as Mn, HasManyRelation as Mo, AdapterModelStructure as Mr, AppliedMigrationRun as Ms, findAppliedMigration as Mt, runArkormTransaction as N, QuerySchemaWhere as Na, ArkormBootContext as Ni, MigrationHistoryCommand as Nn, BelongsToRelation as No, AdapterQueryOperation as Nr, AppliedMigrationsState as Ns, getLastMigrationRun as Nt, isDelegateLike as O, QuerySchemaRows as Oa, UpdateManySpec as Oi, EnumBuilder as On, MorphManyRelation as Oo, AdapterDatabaseCreationResult as Or, PivotModelStatic as Os, buildMigrationRunId as Ot, PrimaryKeyGenerationPlanner as P, RawSelectInput as Pa, ArkormConfig as Pi, MigrateRollbackCommand as Pn, SingleResultRelation as Po, AdapterTransactionContext as Pr, GenerateMigrationOptions as Ps, getLatestAppliedMigrations as Pt, buildPrimaryKeyLine as Q, AttributeWhereInput as Qa, DelegateWhere as Qi, RuntimePathKey as Qn, RelatedModelForRelationship as Qo, QueryExistsCondition as Qr, TimestampColumnBehavior as Qs, deletePersistedColumnMappingsState as Qt, applyAlterTableOperation as R, SoftDeleteConfig as Ra, CastHandler as Ri, MakeModelCommand as Rn, RelationAggregateConstraint as Ro, DatabaseAdapter as Rr, PrimaryKeyGeneration as Rs, readAppliedMigrationsState as Rt, getRuntimeClient as S, PrismaTransactionOptions as Sa, RelationFilterSpec as Si, ArkormErrorContext as Sn, ModelFactory as So, createPrismaCompatibilityAdapter as Sr, HasOneThroughRelationMetadata as Ss, supportsDatabaseCreation as St, getRuntimePaginationURLDriverFactory as T, QuerySchemaInclude as Ta, SelectSpec as Ti, MIGRATION_BRAND as Tn, MorphToRelation as To, createKyselyAdapter as Tr, MorphOneRelationMetadata as Ts, toMigrationFileSlug as Tt, applyMigrationToDatabase as U, ModelStatic as Ua, DelegateFindManyArgs as Ui, resolveCast as Un, RelationDefaultResolver as Uo, DeleteManySpec as Ur, SchemaForeignKey as Us, writeAppliedMigrationsState as Ut, applyMigrationRollbackToDatabase as V, TransactionContext as Va, ClientResolver as Vi, InitCommand as Vn, RelationColumnLookupSpec as Vo, DatabaseRows as Vr, SchemaColumn as Vs, resolveMigrationStateFilePath as Vt, applyMigrationToPrismaSchema as W, RelationshipModelStatic as Wa, DelegateInclude as Wi, Attribute as Wn, RelationDefaultValue as Wo, DeleteSpec as Wr, SchemaForeignKeyAction as Ws, writeAppliedMigrationsStateToStore as Wt, buildMigrationSource as X, AttributeSelect as Xa, DelegateUpdateArgs as Xi, RuntimeConstructor as Xn, JoinOn as Xo, QueryCondition as Xr, SchemaTableDropOperation as Xs, applyOperationsToPersistedColumnMappingsState as Xt, buildInverseRelationLine as Y, AttributeSchemaDelegate as Ya, DelegateUniqueWhere as Yi, RegisteredModel as Yn, EagerLoadRelations as Yo, QueryComparisonOperator as Yr, SchemaTableCreateOperation as Ys, PersistedTimestampColumn as Yt, buildModelBlock as Z, AttributeUpdateInput as Za, DelegateUpdateData as Zi, RuntimePathInput as Zn, JoinSource as Zo, QueryDayCondition as Zr, SchemaUniqueConstraint as Zs, createEmptyPersistedColumnMappingsState as Zt, ensureArkormConfigLoading as _, PrismaLikeSortOrder as _a, QuerySelectColumn as _i, QueryExecutionException as _n, QuerySchemaForModel as _o, SeederCallArgument as _r, BelongsToRelationMetadata as _s, resolveMigrationClassName as _t, getRuntimeCompatibilityAdapter as a, PaginationCurrentPageResolver as aa, QueryJoinNestedConstraint as ai, readPersistedColumnMappingsState as an, ModelDeclaredAttributeKey as ao, loadFactoriesFrom as ar, FactoryAttributeResolver as as, deriveRelationFieldName as at, getDefaultStubsPath as b, PrismaTransactionCapableClient as ba, RawQuerySpec as bi, ModelNotFoundException as bn, Model as bo, PrismaDatabaseAdapter as br, HasManyThroughRelationMetadata as bs, runPrismaCommand as bt, PrismaDelegateMap as c, PaginationURLDriver as ca, QueryJoinType as ci, resolveColumnMappingsFilePath as cn, ModelEventHandlerConstructor as co, loadSeedersFrom as cr, FactoryDefinition as cs, findEnumBlock as ct, inferDelegateName as d, PrismaDelegateLike as da, QueryJsonConditionKind as di, validatePersistedMetadataFeaturesForMigrations as dn, ModelLifecycleState as do, registerModels as dr, FactoryRelationshipResolver as ds, formatEnumDefaultValue as dt, EagerLoadMap as ea, TimestampNaming as ec, QueryGroupCondition as ei, getPersistedEnumMap as en, GlobalScope as eo, getRegisteredFactories as er, WhereCallback as es, buildUniqueConstraintLine as et, awaitConfiguredModelsRegistration as f, PrismaFindManyArgsLike as fa, QueryLogicalOperator as fi, writePersistedColumnMappingsState as fn, ModelOrderByInput as fo, registerPaths as fr, FactoryState as fs, formatRelationAction as ft, emitRuntimeDebugEvent as g, PrismaLikeSelect as ga, QueryScalarComparisonOperator as gi, RelationResolutionException as gn, ModelWhereInput as go, Seeder as gr, BelongsToManyRelationMetadata as gs, resolveEnumName as gt, defineConfig as h, PrismaLikeScalarFilter as ha, QueryRawCondition as hi, ScopeNotDefinedException as hn, ModelUpdateData as ho, SEEDER_BRAND as hr, DatabaseTablePersistedMetadataOptions as hs, pad as ht, RuntimeModuleLoader as i, NamingCase as ia, QueryJoinConstraint as ii, getPersistedTimestampColumns as in, ModelCreateData as io, getRegisteredSeeders as ir, ArkormCollection as is, deriveRelationAlias as it, loadArkormConfig as j, QuerySchemaUpdateArgs as ja, AdapterBindableModel as ji, SeedCommand as jn, HasManyThroughRelation as jo, AdapterModelIntrospectionOptions as jr, AppliedMigrationEntry as js, deleteAppliedMigrationsStateFromStore as jt, isQuerySchemaLike as k, QuerySchemaSelect as ka, UpdateSpec as ki, TableBuilder as kn, HasOneThroughRelation as ko, AdapterInspectionRequest as kr, RelationMetadata as ks, computeMigrationChecksum as kt, createPrismaAdapter as l, PaginationURLDriverFactory as la, QueryJoinValueConstraint as li, resolvePersistedMetadataFeatures as ln, ModelEventListener as lo, registerFactories as lr, FactoryDefinitionAttributes as ls, findModelBlock as lt, configureArkormRuntime as m, PrismaLikeOrderBy as ma, QueryOrderBy as mi, UniqueConstraintResolutionException as mn, ModelRelationshipResult as mo, resetRuntimeRegistryForTests as mr, DatabaseTableOptions as ms, getMigrationPlan as mt, PivotModel as n, ModelQuerySchemaLike as na, QueryJoinBoolean as ni, getPersistedPrimaryKeyGeneration as nn, ModelAttributes as no, getRegisteredModels as nr, LengthAwarePaginator as ns, deriveCollectionFieldName as nt, resolveRuntimeCompatibilityQuerySchema as o, PaginationMeta as oa, QueryJoinNullConstraint as oi, rebuildPersistedColumnMappingsState as on, ModelEventDispatcher as oo, loadMigrationsFrom as or, FactoryAttributes as os, deriveSingularFieldName as ot, bindAdapterToModels as p, PrismaLikeInclude as pa, QueryNotCondition as pi, UnsupportedAdapterFeatureException as pn, ModelRelationshipKey as po, registerSeeders as pr, MaybePromise as ps, generateMigrationFile as pt, buildFieldLine as q, AttributeOrderBy as qa, DelegateRows as qi, Arkormx as qn, RelationResultCache as qo, QueryColumnComparisonCondition as qr, SchemaPrimaryKey as qs, PersistedPrimaryKeyGeneration as qt, LoadedRuntimeModule as r, ModelTableCase as ra, QueryJoinColumnConstraint as ri, getPersistedTableMetadata as rn, ModelAttributesOf as ro, getRegisteredPaths as rr, Paginator as rs, deriveInverseRelationAlias as rt, resolveRuntimeCompatibilityQuerySchemaOrThrow as s, PaginationOptions as sa, QueryJoinRawConstraint as si, resetPersistedColumnMappingsCache as sn, ModelEventHandler as so, loadModelsFrom as sr, FactoryCallback as ss, escapeRegex as st, URLDriver as t, GetUserConfig as ta, QueryJoin as ti, getPersistedEnumTsType as tn, ModelAttributeValue as to, getRegisteredMigrations as tr, JoinClause as ts, createMigrationTimestamp as tt, createPrismaDelegateMap as u, PrismaClientLike as ua, QueryJsonCondition as ui, syncPersistedColumnMappingsFromState as un, ModelEventName as uo, registerMigrations as ur, FactoryModelConstructor as us, formatDefaultValue as ut, getActiveTransactionAdapter as v, PrismaLikeWhereInput as va, QueryTarget as vi, QueryExecutionExceptionContext as vn, QuerySchemaForModelInstance as vo, SeederConstructor as vr, ColumnMap as vs, resolvePrismaType as vt, getRuntimePaginationCurrentPageResolver as w, QuerySchemaFindManyArgs as wa, RelationLoadSpec as wi, DB as wn, SetBasedEagerLoader as wo, KyselyDatabaseAdapter as wr, MorphManyRelationMetadata as ws, supportsDatabaseReset as wt, getRuntimeAdapter as x, PrismaTransactionContext as xa, RelationAggregateSpec as xi, MissingDelegateException as xn, InlineFactory as xo, PrismaDelegateNameMapping as xr, HasOneRelationMetadata as xs, stripPrismaSchemaModelsAndEnums as xt, getActiveTransactionClient as y, PrismaTransactionCallback as ya, QueryTimeCondition as yi, QueryConstraintException as yn, RelatedModelClass as yo, SeederInput as yr, HasManyRelationMetadata as ys, runMigrationWithPrisma as yt, applyCreateTableOperation as z, TransactionCallback as za, CastMap as zi, MakeMigrationCommand as zn, RelationAggregateInput as zo, DatabasePrimitive as zr, PrismaMigrationWorkflowOptions as zs, readAppliedMigrationsStateFromStore as zt };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Kysely, Transaction } from "kysely";
|
|
2
|
-
import { PrismaClient } from "@prisma/client";
|
|
3
1
|
import { Collection } from "@h3ravel/collect.js";
|
|
2
|
+
import { Kysely, Transaction } from "kysely";
|
|
4
3
|
import { Command } from "@h3ravel/musket";
|
|
4
|
+
import { PrismaClient } from "@prisma/client";
|
|
5
5
|
|
|
6
6
|
//#region src/types/migrations.d.ts
|
|
7
7
|
type SchemaColumnType = 'id' | 'uuid' | 'enum' | 'string' | 'text' | 'integer' | 'bigInteger' | 'float' | 'boolean' | 'json' | 'date' | 'timestamp';
|
|
@@ -355,6 +355,132 @@ declare class Paginator<T> {
|
|
|
355
355
|
};
|
|
356
356
|
}
|
|
357
357
|
//#endregion
|
|
358
|
+
//#region src/JoinClause.d.ts
|
|
359
|
+
/**
|
|
360
|
+
* A fluent builder for the `on`/`where` constraints of a join clause.
|
|
361
|
+
*
|
|
362
|
+
* Instances are handed to the closure form of the query builder join helpers
|
|
363
|
+
* (for example `query.join('posts', join => join.on(...).where(...))`) and
|
|
364
|
+
* mirror Laravel's `JoinClause` surface. Column identifiers are treated as raw
|
|
365
|
+
* database identifiers (qualify them as `table.column` when needed).
|
|
366
|
+
*
|
|
367
|
+
* @author Legacy (3m1n3nc3)
|
|
368
|
+
*/
|
|
369
|
+
declare class JoinClause {
|
|
370
|
+
private readonly constraints;
|
|
371
|
+
/**
|
|
372
|
+
* Adds a column-to-column `on` constraint, joined with `and`.
|
|
373
|
+
*
|
|
374
|
+
* Accepts either a closure (for a nested group) or a column comparison in
|
|
375
|
+
* the `(first, second)` or `(first, operator, second)` form.
|
|
376
|
+
*
|
|
377
|
+
* @param first The left-hand column or a nested closure.
|
|
378
|
+
* @param operator The comparison operator (defaults to `=`).
|
|
379
|
+
* @param second The right-hand column.
|
|
380
|
+
* @returns
|
|
381
|
+
*/
|
|
382
|
+
on(first: string | ((join: JoinClause) => void), operator?: QueryScalarComparisonOperator | string, second?: string): this;
|
|
383
|
+
/**
|
|
384
|
+
* Adds a column-to-column `on` constraint, joined with `or`.
|
|
385
|
+
*
|
|
386
|
+
* @param first The left-hand column or a nested closure.
|
|
387
|
+
* @param operator The comparison operator (defaults to `=`).
|
|
388
|
+
* @param second The right-hand column.
|
|
389
|
+
* @returns
|
|
390
|
+
*/
|
|
391
|
+
orOn(first: string | ((join: JoinClause) => void), operator?: QueryScalarComparisonOperator | string, second?: string): this;
|
|
392
|
+
/**
|
|
393
|
+
* Adds a column-to-value constraint, joined with `and`.
|
|
394
|
+
*
|
|
395
|
+
* @param column The column being compared.
|
|
396
|
+
* @param operator The comparison operator or the value when omitted.
|
|
397
|
+
* @param value The value to compare against.
|
|
398
|
+
* @returns
|
|
399
|
+
*/
|
|
400
|
+
where(column: string, operator?: QueryComparisonOperator | string | DatabaseValue, value?: DatabaseValue): this;
|
|
401
|
+
/**
|
|
402
|
+
* Adds a column-to-value constraint, joined with `or`.
|
|
403
|
+
*
|
|
404
|
+
* @param column The column being compared.
|
|
405
|
+
* @param operator The comparison operator or the value when omitted.
|
|
406
|
+
* @param value The value to compare against.
|
|
407
|
+
* @returns
|
|
408
|
+
*/
|
|
409
|
+
orWhere(column: string, operator?: QueryComparisonOperator | string | DatabaseValue, value?: DatabaseValue): this;
|
|
410
|
+
/**
|
|
411
|
+
* Adds an `is null` constraint joined with `and`.
|
|
412
|
+
*
|
|
413
|
+
* @param column The column to test for null.
|
|
414
|
+
* @returns
|
|
415
|
+
*/
|
|
416
|
+
whereNull(column: string): this;
|
|
417
|
+
/**
|
|
418
|
+
* Adds an `is null` constraint joined with `or`.
|
|
419
|
+
*
|
|
420
|
+
* @param column The column to test for null.
|
|
421
|
+
* @returns
|
|
422
|
+
*/
|
|
423
|
+
orWhereNull(column: string): this;
|
|
424
|
+
/**
|
|
425
|
+
* Adds an `is not null` constraint joined with `and`.
|
|
426
|
+
*
|
|
427
|
+
* @param column The column to test for non-null.
|
|
428
|
+
* @returns
|
|
429
|
+
*/
|
|
430
|
+
whereNotNull(column: string): this;
|
|
431
|
+
/**
|
|
432
|
+
* Adds an `is not null` constraint joined with `or`.
|
|
433
|
+
*
|
|
434
|
+
* @param column The column to test for non-null.
|
|
435
|
+
* @returns
|
|
436
|
+
*/
|
|
437
|
+
orWhereNotNull(column: string): this;
|
|
438
|
+
/**
|
|
439
|
+
* Adds a raw constraint joined with `and`.
|
|
440
|
+
*
|
|
441
|
+
* @param sql The raw SQL fragment (with `?` placeholders for bindings).
|
|
442
|
+
* @param bindings The values bound to the placeholders.
|
|
443
|
+
* @returns
|
|
444
|
+
*/
|
|
445
|
+
onRaw(sql: string, bindings?: DatabaseValue[]): this;
|
|
446
|
+
/**
|
|
447
|
+
* Adds a raw constraint joined with `or`.
|
|
448
|
+
*
|
|
449
|
+
* @param sql The raw SQL fragment (with `?` placeholders for bindings).
|
|
450
|
+
* @param bindings The values bound to the placeholders.
|
|
451
|
+
* @returns
|
|
452
|
+
*/
|
|
453
|
+
orOnRaw(sql: string, bindings?: DatabaseValue[]): this;
|
|
454
|
+
/**
|
|
455
|
+
* Returns the accumulated constraints for this join clause.
|
|
456
|
+
*
|
|
457
|
+
* @returns
|
|
458
|
+
*/
|
|
459
|
+
getConstraints(): QueryJoinConstraint[];
|
|
460
|
+
private addOn;
|
|
461
|
+
private addWhere;
|
|
462
|
+
}
|
|
463
|
+
//#endregion
|
|
464
|
+
//#region src/types/query-builder.d.ts
|
|
465
|
+
type RelatedModelFromResult<TResult> = TResult extends ArkormCollection<infer TRelated> ? TRelated : Exclude<TResult, null | undefined>;
|
|
466
|
+
type RelatedModelForRelationship<TModel, TKey extends ModelRelationshipKey<TModel>> = TModel[TKey] extends ((...args: any[]) => infer TRelation) ? TRelation extends {
|
|
467
|
+
getResults: (...args: any[]) => Promise<infer TResult>;
|
|
468
|
+
} ? RelatedModelFromResult<TResult> : never : never;
|
|
469
|
+
/**
|
|
470
|
+
* The left-hand argument accepted by the join helpers: either a column name or a
|
|
471
|
+
* closure that configures the join constraints through a {@link JoinClause}.
|
|
472
|
+
*/
|
|
473
|
+
type JoinOn = string | ((join: JoinClause) => void);
|
|
474
|
+
/**
|
|
475
|
+
* A subquery source accepted by the subquery/lateral join helpers.
|
|
476
|
+
*/
|
|
477
|
+
type JoinSource = QueryBuilder<any, any> | string;
|
|
478
|
+
/**
|
|
479
|
+
* A callback that builds a parenthesized group of nested where conditions.
|
|
480
|
+
*/
|
|
481
|
+
type WhereCallback<TModel, TDelegate extends ModelQuerySchemaLike> = (query: QueryBuilder<TModel, TDelegate>) => QueryBuilder<any, any> | void;
|
|
482
|
+
type EagerLoadRelations<TModel> = { [TKey in ModelRelationshipKey<TModel>]?: true | EagerLoadConstraint<QueryBuilder<RelatedModelForRelationship<TModel, TKey>, QuerySchemaForModelInstance<RelatedModelForRelationship<TModel, TKey>>>> };
|
|
483
|
+
//#endregion
|
|
358
484
|
//#region src/types/relationship.d.ts
|
|
359
485
|
type RelationResult = unknown[] | unknown | null;
|
|
360
486
|
type RelationResultCache = WeakMap<object, Map<string, Map<unknown, Promise<RelationResult>>>>;
|
|
@@ -3087,127 +3213,7 @@ type ModelLifecycleState = {
|
|
|
3087
3213
|
globalScopesSuppressed: number;
|
|
3088
3214
|
};
|
|
3089
3215
|
//#endregion
|
|
3090
|
-
//#region src/JoinClause.d.ts
|
|
3091
|
-
/**
|
|
3092
|
-
* A fluent builder for the `on`/`where` constraints of a join clause.
|
|
3093
|
-
*
|
|
3094
|
-
* Instances are handed to the closure form of the query builder join helpers
|
|
3095
|
-
* (for example `query.join('posts', join => join.on(...).where(...))`) and
|
|
3096
|
-
* mirror Laravel's `JoinClause` surface. Column identifiers are treated as raw
|
|
3097
|
-
* database identifiers (qualify them as `table.column` when needed).
|
|
3098
|
-
*
|
|
3099
|
-
* @author Legacy (3m1n3nc3)
|
|
3100
|
-
*/
|
|
3101
|
-
declare class JoinClause {
|
|
3102
|
-
private readonly constraints;
|
|
3103
|
-
/**
|
|
3104
|
-
* Adds a column-to-column `on` constraint, joined with `and`.
|
|
3105
|
-
*
|
|
3106
|
-
* Accepts either a closure (for a nested group) or a column comparison in
|
|
3107
|
-
* the `(first, second)` or `(first, operator, second)` form.
|
|
3108
|
-
*
|
|
3109
|
-
* @param first The left-hand column or a nested closure.
|
|
3110
|
-
* @param operator The comparison operator (defaults to `=`).
|
|
3111
|
-
* @param second The right-hand column.
|
|
3112
|
-
* @returns
|
|
3113
|
-
*/
|
|
3114
|
-
on(first: string | ((join: JoinClause) => void), operator?: QueryScalarComparisonOperator | string, second?: string): this;
|
|
3115
|
-
/**
|
|
3116
|
-
* Adds a column-to-column `on` constraint, joined with `or`.
|
|
3117
|
-
*
|
|
3118
|
-
* @param first The left-hand column or a nested closure.
|
|
3119
|
-
* @param operator The comparison operator (defaults to `=`).
|
|
3120
|
-
* @param second The right-hand column.
|
|
3121
|
-
* @returns
|
|
3122
|
-
*/
|
|
3123
|
-
orOn(first: string | ((join: JoinClause) => void), operator?: QueryScalarComparisonOperator | string, second?: string): this;
|
|
3124
|
-
/**
|
|
3125
|
-
* Adds a column-to-value constraint, joined with `and`.
|
|
3126
|
-
*
|
|
3127
|
-
* @param column The column being compared.
|
|
3128
|
-
* @param operator The comparison operator or the value when omitted.
|
|
3129
|
-
* @param value The value to compare against.
|
|
3130
|
-
* @returns
|
|
3131
|
-
*/
|
|
3132
|
-
where(column: string, operator?: QueryComparisonOperator | string | DatabaseValue, value?: DatabaseValue): this;
|
|
3133
|
-
/**
|
|
3134
|
-
* Adds a column-to-value constraint, joined with `or`.
|
|
3135
|
-
*
|
|
3136
|
-
* @param column The column being compared.
|
|
3137
|
-
* @param operator The comparison operator or the value when omitted.
|
|
3138
|
-
* @param value The value to compare against.
|
|
3139
|
-
* @returns
|
|
3140
|
-
*/
|
|
3141
|
-
orWhere(column: string, operator?: QueryComparisonOperator | string | DatabaseValue, value?: DatabaseValue): this;
|
|
3142
|
-
/**
|
|
3143
|
-
* Adds an `is null` constraint joined with `and`.
|
|
3144
|
-
*
|
|
3145
|
-
* @param column The column to test for null.
|
|
3146
|
-
* @returns
|
|
3147
|
-
*/
|
|
3148
|
-
whereNull(column: string): this;
|
|
3149
|
-
/**
|
|
3150
|
-
* Adds an `is null` constraint joined with `or`.
|
|
3151
|
-
*
|
|
3152
|
-
* @param column The column to test for null.
|
|
3153
|
-
* @returns
|
|
3154
|
-
*/
|
|
3155
|
-
orWhereNull(column: string): this;
|
|
3156
|
-
/**
|
|
3157
|
-
* Adds an `is not null` constraint joined with `and`.
|
|
3158
|
-
*
|
|
3159
|
-
* @param column The column to test for non-null.
|
|
3160
|
-
* @returns
|
|
3161
|
-
*/
|
|
3162
|
-
whereNotNull(column: string): this;
|
|
3163
|
-
/**
|
|
3164
|
-
* Adds an `is not null` constraint joined with `or`.
|
|
3165
|
-
*
|
|
3166
|
-
* @param column The column to test for non-null.
|
|
3167
|
-
* @returns
|
|
3168
|
-
*/
|
|
3169
|
-
orWhereNotNull(column: string): this;
|
|
3170
|
-
/**
|
|
3171
|
-
* Adds a raw constraint joined with `and`.
|
|
3172
|
-
*
|
|
3173
|
-
* @param sql The raw SQL fragment (with `?` placeholders for bindings).
|
|
3174
|
-
* @param bindings The values bound to the placeholders.
|
|
3175
|
-
* @returns
|
|
3176
|
-
*/
|
|
3177
|
-
onRaw(sql: string, bindings?: DatabaseValue[]): this;
|
|
3178
|
-
/**
|
|
3179
|
-
* Adds a raw constraint joined with `or`.
|
|
3180
|
-
*
|
|
3181
|
-
* @param sql The raw SQL fragment (with `?` placeholders for bindings).
|
|
3182
|
-
* @param bindings The values bound to the placeholders.
|
|
3183
|
-
* @returns
|
|
3184
|
-
*/
|
|
3185
|
-
orOnRaw(sql: string, bindings?: DatabaseValue[]): this;
|
|
3186
|
-
/**
|
|
3187
|
-
* Returns the accumulated constraints for this join clause.
|
|
3188
|
-
*
|
|
3189
|
-
* @returns
|
|
3190
|
-
*/
|
|
3191
|
-
getConstraints(): QueryJoinConstraint[];
|
|
3192
|
-
private addOn;
|
|
3193
|
-
private addWhere;
|
|
3194
|
-
}
|
|
3195
|
-
//#endregion
|
|
3196
3216
|
//#region src/QueryBuilder.d.ts
|
|
3197
|
-
type RelatedModelFromResult<TResult> = TResult extends ArkormCollection<infer TRelated> ? TRelated : Exclude<TResult, null | undefined>;
|
|
3198
|
-
type RelatedModelForRelationship<TModel, TKey extends ModelRelationshipKey<TModel>> = TModel[TKey] extends ((...args: any[]) => infer TRelation) ? TRelation extends {
|
|
3199
|
-
getResults: (...args: any[]) => Promise<infer TResult>;
|
|
3200
|
-
} ? RelatedModelFromResult<TResult> : never : never;
|
|
3201
|
-
/**
|
|
3202
|
-
* The left-hand argument accepted by the join helpers: either a column name or a
|
|
3203
|
-
* closure that configures the join constraints through a {@link JoinClause}.
|
|
3204
|
-
*/
|
|
3205
|
-
type JoinOn = string | ((join: JoinClause) => void);
|
|
3206
|
-
/**
|
|
3207
|
-
* A subquery source accepted by the subquery/lateral join helpers.
|
|
3208
|
-
*/
|
|
3209
|
-
type JoinSource = QueryBuilder<any, any> | string;
|
|
3210
|
-
type EagerLoadRelations<TModel> = { [TKey in ModelRelationshipKey<TModel>]?: true | EagerLoadConstraint<QueryBuilder<RelatedModelForRelationship<TModel, TKey>, QuerySchemaForModelInstance<RelatedModelForRelationship<TModel, TKey>>>> };
|
|
3211
3217
|
/**
|
|
3212
3218
|
* The QueryBuilder class provides a fluent interface for building and
|
|
3213
3219
|
* executing database queries.
|
|
@@ -3247,17 +3253,33 @@ declare class QueryBuilder<TModel, TDelegate extends ModelQuerySchemaLike = Mode
|
|
|
3247
3253
|
* Adds a where clause to the query. Multiple calls to where will combine
|
|
3248
3254
|
* the clauses with AND logic.
|
|
3249
3255
|
*
|
|
3256
|
+
* Pass a callback to build a parenthesized group of nested conditions, e.g.
|
|
3257
|
+
* `where(query => query.where({ a: 1 }).orWhere({ b: 2 }))` compiles to
|
|
3258
|
+
* `(... or ...)`.
|
|
3259
|
+
*
|
|
3250
3260
|
* @param where
|
|
3251
3261
|
* @returns
|
|
3252
3262
|
*/
|
|
3253
3263
|
where(where: QuerySchemaWhere<TDelegate>): this;
|
|
3264
|
+
where(callback: WhereCallback<TModel, TDelegate>): this;
|
|
3254
3265
|
/**
|
|
3255
|
-
* Adds an OR where clause to the query.
|
|
3266
|
+
* Adds an OR where clause to the query. Pass a callback to build a
|
|
3267
|
+
* parenthesized group of nested conditions.
|
|
3256
3268
|
*
|
|
3257
3269
|
* @param where
|
|
3258
3270
|
* @returns
|
|
3259
3271
|
*/
|
|
3260
3272
|
orWhere(where: QuerySchemaWhere<TDelegate>): this;
|
|
3273
|
+
orWhere(callback: WhereCallback<TModel, TDelegate>): this;
|
|
3274
|
+
/**
|
|
3275
|
+
* Resolve a callback into a parenthesized group condition and append it.
|
|
3276
|
+
*/
|
|
3277
|
+
private appendNestedWhere;
|
|
3278
|
+
/**
|
|
3279
|
+
* Returns the user-authored where condition for nesting, excluding any
|
|
3280
|
+
* soft-delete predicate (the parent query owns that).
|
|
3281
|
+
*/
|
|
3282
|
+
private getNestedWhereCondition;
|
|
3261
3283
|
/**
|
|
3262
3284
|
* Adds a NOT where clause to the query.
|
|
3263
3285
|
*
|
|
@@ -7746,4 +7768,4 @@ declare class URLDriver {
|
|
|
7746
7768
|
url(page: number): string;
|
|
7747
7769
|
}
|
|
7748
7770
|
//#endregion
|
|
7749
|
-
export { buildRelationLine as $, AttributeSchemaDelegate as $a, EagerLoadConstraint as $i, RuntimePathMap as $n, LengthAwarePaginator as $o, QueryFullTextCondition as $r, getPersistedColumnMap as $t, isTransactionCapableClient as A, QuerySchemaUniqueWhere as Aa, UpsertSpec as Ai, ForeignKeyBuilder as An, MorphToManyRelation as Ao, AdapterModelFieldStructure as Ar, AppliedMigrationsState as As, createEmptyAppliedMigrationsState as At, applyDropTableOperation as B, TransactionCapableClient as Ba, CastType as Bi, MakeFactoryCommand as Bn, Relation as Bo, DatabaseRow as Br, SchemaForeignKey as Bs, removeAppliedMigration as Bt, getRuntimeDebugHandler as C, QuerySchemaCreateData as Ca, RelationLoadPlan as Ci, ArkormException as Cn, RelatedModelClass as Co, createPrismaDatabaseAdapter as Cr, MorphToManyRelationMetadata as Cs, supportsDatabaseMigrationExecution as Ct, getUserConfig as D, QuerySchemaRow as Da, SortDirection as Di, SchemaBuilder as Dn, defineFactory as Do, AdapterCapability as Dr, RelationMetadataType as Ds, buildMigrationIdentity as Dt, getRuntimePrismaClient as E, QuerySchemaOrderBy as Ea, SoftDeleteQueryMode as Ei, Migration as En, ModelFactory as Eo, AdapterCapabilities as Er, RelationMetadata as Es, toModelName as Et, PRISMA_ENUM_MEMBER_REGEX as F, RuntimeClientLike as Fa, ArkormDebugEvent as Fi, MigrateFreshCommand as Fn, HasManyThroughRelation as Fo, AggregateOperation as Fr, PrimaryKeyGeneration as Fs, isMigrationApplied as Ft, applyOperationsToPrismaSchema as G, EagerLoadRelations as Ga, DelegateOrderBy as Gi, AttributeOptions as Gn, RelationColumnLookupSpec as Go, InsertManySpec as Gr, SchemaTableAlterOperation as Gs, PersistedColumnMappingsState as Gt, applyMigrationRollbackToPrismaSchema as H, TransactionOptions as Ha, DelegateCreateData as Hi, CliApp as Hn, RelationAggregateConstraint as Ho, DatabaseValue as Hr, SchemaIndex as Hs, supportsDatabaseMigrationState as Ht, PRISMA_ENUM_REGEX as I, Serializable as Ia, ArkormDebugHandler as Ii, MigrateCommand as In, HasManyRelation as Io, AggregateSelection as Ir, PrismaMigrationWorkflowOptions as Is, markMigrationApplied as It, buildIndexLine as J, QueryBuilder as Ja, DelegateSelect as Ji, RegisteredFactory as Jn, RelationDefaultValue as Jo, QueryComparisonCondition as Jr, SchemaUniqueConstraint as Js, PersistedTableMetadata as Jt, buildEnumBlock as K, JoinOn as Ka, DelegateRow as Ki, Arkorm as Kn, RelationConstraint as Ko, InsertSpec as Kr, SchemaTableCreateOperation as Ks, PersistedMetadataFeatures as Kt, PRISMA_MODEL_REGEX as L, SimplePaginationMeta as La, CastDefinition as Li, MakeSeederCommand as Ln, BelongsToRelation as Lo, AggregateSpec as Lr, PrismaSchemaSyncOptions as Ls, markMigrationRun as Lt, resetArkormRuntimeForTests as M, QuerySchemaUpdateData as Ma, AdapterQueryInspection as Mi, ModelsSyncCommand as Mn, MorphManyRelation as Mo, AdapterModelStructure as Mr, GeneratedMigrationFile as Ms, findAppliedMigration as Mt, runArkormTransaction as N, QuerySchemaWhere as Na, ArkormBootContext as Ni, MigrationHistoryCommand as Nn, HasOneThroughRelation as No, AdapterQueryOperation as Nr, MigrationClass as Ns, getLastMigrationRun as Nt, isDelegateLike as O, QuerySchemaRows as Oa, UpdateManySpec as Oi, EnumBuilder as On, SetBasedEagerLoader as Oo, AdapterDatabaseCreationResult as Or, AppliedMigrationEntry as Os, buildMigrationRunId as Ot, PrimaryKeyGenerationPlanner as P, RawSelectInput as Pa, ArkormConfig as Pi, MigrateRollbackCommand as Pn, HasOneRelation as Po, AdapterTransactionContext as Pr, MigrationInstanceLike as Ps, getLatestAppliedMigrations as Pt, buildPrimaryKeyLine as Q, AttributeQuerySchema as Qa, DelegateWhere as Qi, RuntimePathKey as Qn, RelationTableLookupSpec as Qo, QueryExistsCondition as Qr, deletePersistedColumnMappingsState as Qt, applyAlterTableOperation as R, SoftDeleteConfig as Ra, CastHandler as Ri, MakeModelCommand as Rn, SingleResultRelation as Ro, DatabaseAdapter as Rr, SchemaColumn as Rs, readAppliedMigrationsState as Rt, getRuntimeClient as S, PrismaTransactionOptions as Sa, RelationFilterSpec as Si, ArkormErrorContext as Sn, QuerySchemaForModelInstance as So, createPrismaCompatibilityAdapter as Sr, MorphOneRelationMetadata as Ss, supportsDatabaseCreation as St, getRuntimePaginationURLDriverFactory as T, QuerySchemaInclude as Ta, SelectSpec as Ti, MIGRATION_BRAND as Tn, InlineFactory as To, createKyselyAdapter as Tr, PivotModelStatic as Ts, toMigrationFileSlug as Tt, applyMigrationToDatabase as U, ModelStatic as Ua, DelegateFindManyArgs as Ui, resolveCast as Un, RelationAggregateInput as Uo, DeleteManySpec as Ur, SchemaOperation as Us, writeAppliedMigrationsState as Ut, applyMigrationRollbackToDatabase as V, TransactionContext as Va, ClientResolver as Vi, InitCommand as Vn, RelationTableLoader as Vo, DatabaseRows as Vr, SchemaForeignKeyAction as Vs, resolveMigrationStateFilePath as Vt, applyMigrationToPrismaSchema as W, RelationshipModelStatic as Wa, DelegateInclude as Wi, Attribute as Wn, RelationAggregateType as Wo, DeleteSpec as Wr, SchemaPrimaryKey as Ws, writeAppliedMigrationsStateToStore as Wt, buildMigrationSource as X, AttributeCreateInput as Xa, DelegateUpdateArgs as Xi, RuntimeConstructor as Xn, RelationResult as Xo, QueryCondition as Xr, TimestampNames as Xs, applyOperationsToPersistedColumnMappingsState as Xt, buildInverseRelationLine as Y, JoinClause as Ya, DelegateUniqueWhere as Yi, RegisteredModel as Yn, RelationMetadataProvider as Yo, QueryComparisonOperator as Yr, TimestampColumnBehavior as Ys, PersistedTimestampColumn as Yt, buildModelBlock as Z, AttributeOrderBy as Za, DelegateUpdateData as Zi, RuntimePathInput as Zn, RelationResultCache as Zo, QueryDayCondition as Zr, TimestampNaming as Zs, createEmptyPersistedColumnMappingsState as Zt, ensureArkormConfigLoading as _, PrismaLikeSortOrder as _a, QuerySelectColumn as _i, QueryExecutionException as _n, ModelRelationshipKey as _o, SeederCallArgument as _r, HasManyThroughRelationMetadata as _s, resolveMigrationClassName as _t, getRuntimeCompatibilityAdapter as a, PaginationCurrentPageResolver as aa, QueryJoinNestedConstraint as ai, readPersistedColumnMappingsState as an, ModelAttributeValue as ao, loadFactoriesFrom as ar, FactoryDefinition as as, deriveRelationFieldName as at, getDefaultStubsPath as b, PrismaTransactionCapableClient as ba, RawQuerySpec as bi, ModelNotFoundException as bn, ModelWhereInput as bo, PrismaDatabaseAdapter as br, ModelMetadata as bs, runPrismaCommand as bt, PrismaDelegateMap as c, PaginationURLDriver as ca, QueryJoinType as ci, resolveColumnMappingsFilePath as cn, ModelCreateData as co, loadSeedersFrom as cr, FactoryRelationshipResolver as cs, findEnumBlock as ct, inferDelegateName as d, PrismaDelegateLike as da, QueryJsonConditionKind as di, validatePersistedMetadataFeaturesForMigrations as dn, ModelEventHandler as do, registerModels as dr, DatabaseTableOptions as ds, formatEnumDefaultValue as dt, EagerLoadMap as ea, QueryGroupCondition as ei, getPersistedEnumMap as en, AttributeSelect as eo, getRegisteredFactories as er, Paginator as es, buildUniqueConstraintLine as et, awaitConfiguredModelsRegistration as f, PrismaFindManyArgsLike as fa, QueryLogicalOperator as fi, writePersistedColumnMappingsState as fn, ModelEventHandlerConstructor as fo, registerPaths as fr, DatabaseTablePersistedMetadataOptions as fs, formatRelationAction as ft, emitRuntimeDebugEvent as g, PrismaLikeSelect as ga, QueryScalarComparisonOperator as gi, RelationResolutionException as gn, ModelOrderByInput as go, Seeder as gr, HasManyRelationMetadata as gs, resolveEnumName as gt, defineConfig as h, PrismaLikeScalarFilter as ha, QueryRawCondition as hi, ScopeNotDefinedException as hn, ModelLifecycleState as ho, SEEDER_BRAND as hr, ColumnMap as hs, pad as ht, RuntimeModuleLoader as i, NamingCase as ia, QueryJoinConstraint as ii, getPersistedTimestampColumns as in, GlobalScope as io, getRegisteredSeeders as ir, FactoryCallback as is, deriveRelationAlias as it, loadArkormConfig as j, QuerySchemaUpdateArgs as ja, AdapterBindableModel as ji, SeedCommand as jn, MorphOneRelation as jo, AdapterModelIntrospectionOptions as jr, GenerateMigrationOptions as js, deleteAppliedMigrationsStateFromStore as jt, isQuerySchemaLike as k, QuerySchemaSelect as ka, UpdateSpec as ki, TableBuilder as kn, MorphToRelation as ko, AdapterInspectionRequest as kr, AppliedMigrationRun as ks, computeMigrationChecksum as kt, createPrismaAdapter as l, PaginationURLDriverFactory as la, QueryJoinValueConstraint as li, resolvePersistedMetadataFeatures as ln, ModelDeclaredAttributeKey as lo, registerFactories as lr, FactoryState as ls, findModelBlock as lt, configureArkormRuntime as m, PrismaLikeOrderBy as ma, QueryOrderBy as mi, UniqueConstraintResolutionException as mn, ModelEventName as mo, resetRuntimeRegistryForTests as mr, BelongsToRelationMetadata as ms, getMigrationPlan as mt, PivotModel as n, ModelQuerySchemaLike as na, QueryJoinBoolean as ni, getPersistedPrimaryKeyGeneration as nn, AttributeWhereInput as no, getRegisteredModels as nr, FactoryAttributeResolver as ns, deriveCollectionFieldName as nt, resolveRuntimeCompatibilityQuerySchema as o, PaginationMeta as oa, QueryJoinNullConstraint as oi, rebuildPersistedColumnMappingsState as on, ModelAttributes as oo, loadMigrationsFrom as or, FactoryDefinitionAttributes as os, deriveSingularFieldName as ot, bindAdapterToModels as p, PrismaLikeInclude as pa, QueryNotCondition as pi, UnsupportedAdapterFeatureException as pn, ModelEventListener as po, registerSeeders as pr, BelongsToManyRelationMetadata as ps, generateMigrationFile as pt, buildFieldLine as q, JoinSource as qa, DelegateRows as qi, Arkormx as qn, RelationDefaultResolver as qo, QueryColumnComparisonCondition as qr, SchemaTableDropOperation as qs, PersistedPrimaryKeyGeneration as qt, LoadedRuntimeModule as r, ModelTableCase as ra, QueryJoinColumnConstraint as ri, getPersistedTableMetadata as rn, DelegateForModelSchema as ro, getRegisteredPaths as rr, FactoryAttributes as rs, deriveInverseRelationAlias as rt, resolveRuntimeCompatibilityQuerySchemaOrThrow as s, PaginationOptions as sa, QueryJoinRawConstraint as si, resetPersistedColumnMappingsCache as sn, ModelAttributesOf as so, loadModelsFrom as sr, FactoryModelConstructor as ss, escapeRegex as st, URLDriver as t, GetUserConfig as ta, QueryJoin as ti, getPersistedEnumTsType as tn, AttributeUpdateInput as to, getRegisteredMigrations as tr, ArkormCollection as ts, createMigrationTimestamp as tt, createPrismaDelegateMap as u, PrismaClientLike as ua, QueryJsonCondition as ui, syncPersistedColumnMappingsFromState as un, ModelEventDispatcher as uo, registerMigrations as ur, MaybePromise as us, formatDefaultValue as ut, getActiveTransactionAdapter as v, PrismaLikeWhereInput as va, QueryTarget as vi, QueryExecutionExceptionContext as vn, ModelRelationshipResult as vo, SeederConstructor as vr, HasOneRelationMetadata as vs, resolvePrismaType as vt, getRuntimePaginationCurrentPageResolver as w, QuerySchemaFindManyArgs as wa, RelationLoadSpec as wi, DB as wn, Model as wo, KyselyDatabaseAdapter as wr, MorphToRelationMetadata as ws, supportsDatabaseReset as wt, getRuntimeAdapter as x, PrismaTransactionContext as xa, RelationAggregateSpec as xi, MissingDelegateException as xn, QuerySchemaForModel as xo, PrismaDelegateNameMapping as xr, MorphManyRelationMetadata as xs, stripPrismaSchemaModelsAndEnums as xt, getActiveTransactionClient as y, PrismaTransactionCallback as ya, QueryTimeCondition as yi, QueryConstraintException as yn, ModelUpdateData as yo, SeederInput as yr, HasOneThroughRelationMetadata as ys, runMigrationWithPrisma as yt, applyCreateTableOperation as z, TransactionCallback as za, CastMap as zi, MakeMigrationCommand as zn, BelongsToManyRelation as zo, DatabasePrimitive as zr, SchemaColumnType as zs, readAppliedMigrationsStateFromStore as zt };
|
|
7771
|
+
export { buildRelationLine as $, DelegateForModelSchema as $a, EagerLoadConstraint as $i, RuntimePathMap as $n, RelatedModelFromResult as $o, QueryFullTextCondition as $r, TimestampNames as $s, getPersistedColumnMap as $t, isTransactionCapableClient as A, QuerySchemaUniqueWhere as Aa, UpsertSpec as Ai, ForeignKeyBuilder as An, HasOneRelation as Ao, AdapterModelFieldStructure as Ar, RelationMetadataType as As, createEmptyAppliedMigrationsState as At, applyDropTableOperation as B, TransactionCapableClient as Ba, CastType as Bi, MakeFactoryCommand as Bn, RelationAggregateType as Bo, DatabaseRow as Br, PrismaSchemaSyncOptions as Bs, removeAppliedMigration as Bt, getRuntimeDebugHandler as C, QuerySchemaCreateData as Ca, RelationLoadPlan as Ci, ArkormException as Cn, defineFactory as Co, createPrismaDatabaseAdapter as Cr, ModelMetadata as Cs, supportsDatabaseMigrationExecution as Ct, getUserConfig as D, QuerySchemaRow as Da, SortDirection as Di, SchemaBuilder as Dn, MorphOneRelation as Do, AdapterCapability as Dr, MorphToRelationMetadata as Ds, buildMigrationIdentity as Dt, getRuntimePrismaClient as E, QuerySchemaOrderBy as Ea, SoftDeleteQueryMode as Ei, Migration as En, MorphToManyRelation as Eo, AdapterCapabilities as Er, MorphToManyRelationMetadata as Es, toModelName as Et, PRISMA_ENUM_MEMBER_REGEX as F, RuntimeClientLike as Fa, ArkormDebugEvent as Fi, MigrateFreshCommand as Fn, BelongsToManyRelation as Fo, AggregateOperation as Fr, GeneratedMigrationFile as Fs, isMigrationApplied as Ft, applyOperationsToPrismaSchema as G, QueryBuilder as Ga, DelegateOrderBy as Gi, AttributeOptions as Gn, RelationMetadataProvider as Go, InsertManySpec as Gr, SchemaIndex as Gs, PersistedColumnMappingsState as Gt, applyMigrationRollbackToPrismaSchema as H, TransactionOptions as Ha, DelegateCreateData as Hi, CliApp as Hn, RelationConstraint as Ho, DatabaseValue as Hr, SchemaColumnType as Hs, supportsDatabaseMigrationState as Ht, PRISMA_ENUM_REGEX as I, Serializable as Ia, ArkormDebugHandler as Ii, MigrateCommand as In, Relation as Io, AggregateSelection as Ir, MigrationClass as Is, markMigrationApplied as It, buildIndexLine as J, AttributeQuerySchema as Ja, DelegateSelect as Ji, RegisteredFactory as Jn, RelationTableLookupSpec as Jo, QueryComparisonCondition as Jr, SchemaTableAlterOperation as Js, PersistedTableMetadata as Jt, buildEnumBlock as K, AttributeCreateInput as Ka, DelegateRow as Ki, Arkorm as Kn, RelationResult as Ko, InsertSpec as Kr, SchemaOperation as Ks, PersistedMetadataFeatures as Kt, PRISMA_MODEL_REGEX as L, SimplePaginationMeta as La, CastDefinition as Li, MakeSeederCommand as Ln, RelationTableLoader as Lo, AggregateSpec as Lr, MigrationInstanceLike as Ls, markMigrationRun as Lt, resetArkormRuntimeForTests as M, QuerySchemaUpdateData as Ma, AdapterQueryInspection as Mi, ModelsSyncCommand as Mn, HasManyRelation as Mo, AdapterModelStructure as Mr, AppliedMigrationRun as Ms, findAppliedMigration as Mt, runArkormTransaction as N, QuerySchemaWhere as Na, ArkormBootContext as Ni, MigrationHistoryCommand as Nn, BelongsToRelation as No, AdapterQueryOperation as Nr, AppliedMigrationsState as Ns, getLastMigrationRun as Nt, isDelegateLike as O, QuerySchemaRows as Oa, UpdateManySpec as Oi, EnumBuilder as On, MorphManyRelation as Oo, AdapterDatabaseCreationResult as Or, PivotModelStatic as Os, buildMigrationRunId as Ot, PrimaryKeyGenerationPlanner as P, RawSelectInput as Pa, ArkormConfig as Pi, MigrateRollbackCommand as Pn, SingleResultRelation as Po, AdapterTransactionContext as Pr, GenerateMigrationOptions as Ps, getLatestAppliedMigrations as Pt, buildPrimaryKeyLine as Q, AttributeWhereInput as Qa, DelegateWhere as Qi, RuntimePathKey as Qn, RelatedModelForRelationship as Qo, QueryExistsCondition as Qr, TimestampColumnBehavior as Qs, deletePersistedColumnMappingsState as Qt, applyAlterTableOperation as R, SoftDeleteConfig as Ra, CastHandler as Ri, MakeModelCommand as Rn, RelationAggregateConstraint as Ro, DatabaseAdapter as Rr, PrimaryKeyGeneration as Rs, readAppliedMigrationsState as Rt, getRuntimeClient as S, PrismaTransactionOptions as Sa, RelationFilterSpec as Si, ArkormErrorContext as Sn, ModelFactory as So, createPrismaCompatibilityAdapter as Sr, HasOneThroughRelationMetadata as Ss, supportsDatabaseCreation as St, getRuntimePaginationURLDriverFactory as T, QuerySchemaInclude as Ta, SelectSpec as Ti, MIGRATION_BRAND as Tn, MorphToRelation as To, createKyselyAdapter as Tr, MorphOneRelationMetadata as Ts, toMigrationFileSlug as Tt, applyMigrationToDatabase as U, ModelStatic as Ua, DelegateFindManyArgs as Ui, resolveCast as Un, RelationDefaultResolver as Uo, DeleteManySpec as Ur, SchemaForeignKey as Us, writeAppliedMigrationsState as Ut, applyMigrationRollbackToDatabase as V, TransactionContext as Va, ClientResolver as Vi, InitCommand as Vn, RelationColumnLookupSpec as Vo, DatabaseRows as Vr, SchemaColumn as Vs, resolveMigrationStateFilePath as Vt, applyMigrationToPrismaSchema as W, RelationshipModelStatic as Wa, DelegateInclude as Wi, Attribute as Wn, RelationDefaultValue as Wo, DeleteSpec as Wr, SchemaForeignKeyAction as Ws, writeAppliedMigrationsStateToStore as Wt, buildMigrationSource as X, AttributeSelect as Xa, DelegateUpdateArgs as Xi, RuntimeConstructor as Xn, JoinOn as Xo, QueryCondition as Xr, SchemaTableDropOperation as Xs, applyOperationsToPersistedColumnMappingsState as Xt, buildInverseRelationLine as Y, AttributeSchemaDelegate as Ya, DelegateUniqueWhere as Yi, RegisteredModel as Yn, EagerLoadRelations as Yo, QueryComparisonOperator as Yr, SchemaTableCreateOperation as Ys, PersistedTimestampColumn as Yt, buildModelBlock as Z, AttributeUpdateInput as Za, DelegateUpdateData as Zi, RuntimePathInput as Zn, JoinSource as Zo, QueryDayCondition as Zr, SchemaUniqueConstraint as Zs, createEmptyPersistedColumnMappingsState as Zt, ensureArkormConfigLoading as _, PrismaLikeSortOrder as _a, QuerySelectColumn as _i, QueryExecutionException as _n, QuerySchemaForModel as _o, SeederCallArgument as _r, BelongsToRelationMetadata as _s, resolveMigrationClassName as _t, getRuntimeCompatibilityAdapter as a, PaginationCurrentPageResolver as aa, QueryJoinNestedConstraint as ai, readPersistedColumnMappingsState as an, ModelDeclaredAttributeKey as ao, loadFactoriesFrom as ar, FactoryAttributeResolver as as, deriveRelationFieldName as at, getDefaultStubsPath as b, PrismaTransactionCapableClient as ba, RawQuerySpec as bi, ModelNotFoundException as bn, Model as bo, PrismaDatabaseAdapter as br, HasManyThroughRelationMetadata as bs, runPrismaCommand as bt, PrismaDelegateMap as c, PaginationURLDriver as ca, QueryJoinType as ci, resolveColumnMappingsFilePath as cn, ModelEventHandlerConstructor as co, loadSeedersFrom as cr, FactoryDefinition as cs, findEnumBlock as ct, inferDelegateName as d, PrismaDelegateLike as da, QueryJsonConditionKind as di, validatePersistedMetadataFeaturesForMigrations as dn, ModelLifecycleState as do, registerModels as dr, FactoryRelationshipResolver as ds, formatEnumDefaultValue as dt, EagerLoadMap as ea, TimestampNaming as ec, QueryGroupCondition as ei, getPersistedEnumMap as en, GlobalScope as eo, getRegisteredFactories as er, WhereCallback as es, buildUniqueConstraintLine as et, awaitConfiguredModelsRegistration as f, PrismaFindManyArgsLike as fa, QueryLogicalOperator as fi, writePersistedColumnMappingsState as fn, ModelOrderByInput as fo, registerPaths as fr, FactoryState as fs, formatRelationAction as ft, emitRuntimeDebugEvent as g, PrismaLikeSelect as ga, QueryScalarComparisonOperator as gi, RelationResolutionException as gn, ModelWhereInput as go, Seeder as gr, BelongsToManyRelationMetadata as gs, resolveEnumName as gt, defineConfig as h, PrismaLikeScalarFilter as ha, QueryRawCondition as hi, ScopeNotDefinedException as hn, ModelUpdateData as ho, SEEDER_BRAND as hr, DatabaseTablePersistedMetadataOptions as hs, pad as ht, RuntimeModuleLoader as i, NamingCase as ia, QueryJoinConstraint as ii, getPersistedTimestampColumns as in, ModelCreateData as io, getRegisteredSeeders as ir, ArkormCollection as is, deriveRelationAlias as it, loadArkormConfig as j, QuerySchemaUpdateArgs as ja, AdapterBindableModel as ji, SeedCommand as jn, HasManyThroughRelation as jo, AdapterModelIntrospectionOptions as jr, AppliedMigrationEntry as js, deleteAppliedMigrationsStateFromStore as jt, isQuerySchemaLike as k, QuerySchemaSelect as ka, UpdateSpec as ki, TableBuilder as kn, HasOneThroughRelation as ko, AdapterInspectionRequest as kr, RelationMetadata as ks, computeMigrationChecksum as kt, createPrismaAdapter as l, PaginationURLDriverFactory as la, QueryJoinValueConstraint as li, resolvePersistedMetadataFeatures as ln, ModelEventListener as lo, registerFactories as lr, FactoryDefinitionAttributes as ls, findModelBlock as lt, configureArkormRuntime as m, PrismaLikeOrderBy as ma, QueryOrderBy as mi, UniqueConstraintResolutionException as mn, ModelRelationshipResult as mo, resetRuntimeRegistryForTests as mr, DatabaseTableOptions as ms, getMigrationPlan as mt, PivotModel as n, ModelQuerySchemaLike as na, QueryJoinBoolean as ni, getPersistedPrimaryKeyGeneration as nn, ModelAttributes as no, getRegisteredModels as nr, LengthAwarePaginator as ns, deriveCollectionFieldName as nt, resolveRuntimeCompatibilityQuerySchema as o, PaginationMeta as oa, QueryJoinNullConstraint as oi, rebuildPersistedColumnMappingsState as on, ModelEventDispatcher as oo, loadMigrationsFrom as or, FactoryAttributes as os, deriveSingularFieldName as ot, bindAdapterToModels as p, PrismaLikeInclude as pa, QueryNotCondition as pi, UnsupportedAdapterFeatureException as pn, ModelRelationshipKey as po, registerSeeders as pr, MaybePromise as ps, generateMigrationFile as pt, buildFieldLine as q, AttributeOrderBy as qa, DelegateRows as qi, Arkormx as qn, RelationResultCache as qo, QueryColumnComparisonCondition as qr, SchemaPrimaryKey as qs, PersistedPrimaryKeyGeneration as qt, LoadedRuntimeModule as r, ModelTableCase as ra, QueryJoinColumnConstraint as ri, getPersistedTableMetadata as rn, ModelAttributesOf as ro, getRegisteredPaths as rr, Paginator as rs, deriveInverseRelationAlias as rt, resolveRuntimeCompatibilityQuerySchemaOrThrow as s, PaginationOptions as sa, QueryJoinRawConstraint as si, resetPersistedColumnMappingsCache as sn, ModelEventHandler as so, loadModelsFrom as sr, FactoryCallback as ss, escapeRegex as st, URLDriver as t, GetUserConfig as ta, QueryJoin as ti, getPersistedEnumTsType as tn, ModelAttributeValue as to, getRegisteredMigrations as tr, JoinClause as ts, createMigrationTimestamp as tt, createPrismaDelegateMap as u, PrismaClientLike as ua, QueryJsonCondition as ui, syncPersistedColumnMappingsFromState as un, ModelEventName as uo, registerMigrations as ur, FactoryModelConstructor as us, formatDefaultValue as ut, getActiveTransactionAdapter as v, PrismaLikeWhereInput as va, QueryTarget as vi, QueryExecutionExceptionContext as vn, QuerySchemaForModelInstance as vo, SeederConstructor as vr, ColumnMap as vs, resolvePrismaType as vt, getRuntimePaginationCurrentPageResolver as w, QuerySchemaFindManyArgs as wa, RelationLoadSpec as wi, DB as wn, SetBasedEagerLoader as wo, KyselyDatabaseAdapter as wr, MorphManyRelationMetadata as ws, supportsDatabaseReset as wt, getRuntimeAdapter as x, PrismaTransactionContext as xa, RelationAggregateSpec as xi, MissingDelegateException as xn, InlineFactory as xo, PrismaDelegateNameMapping as xr, HasOneRelationMetadata as xs, stripPrismaSchemaModelsAndEnums as xt, getActiveTransactionClient as y, PrismaTransactionCallback as ya, QueryTimeCondition as yi, QueryConstraintException as yn, RelatedModelClass as yo, SeederInput as yr, HasManyRelationMetadata as ys, runMigrationWithPrisma as yt, applyCreateTableOperation as z, TransactionCallback as za, CastMap as zi, MakeMigrationCommand as zn, RelationAggregateInput as zo, DatabasePrimitive as zr, PrismaMigrationWorkflowOptions as zs, readAppliedMigrationsStateFromStore as zt };
|
package/dist/index.cjs
CHANGED
|
@@ -4406,24 +4406,37 @@ var QueryBuilder = class QueryBuilder {
|
|
|
4406
4406
|
if (typeof resolvedPage !== "number" || !Number.isFinite(resolvedPage)) return 1;
|
|
4407
4407
|
return Math.max(1, resolvedPage);
|
|
4408
4408
|
}
|
|
4409
|
+
where(whereOrCallback) {
|
|
4410
|
+
if (typeof whereOrCallback === "function") return this.appendNestedWhere("AND", whereOrCallback);
|
|
4411
|
+
return this.addLogicalWhere("AND", whereOrCallback);
|
|
4412
|
+
}
|
|
4413
|
+
orWhere(whereOrCallback) {
|
|
4414
|
+
if (typeof whereOrCallback === "function") return this.appendNestedWhere("OR", whereOrCallback);
|
|
4415
|
+
return this.addLogicalWhere("OR", whereOrCallback);
|
|
4416
|
+
}
|
|
4409
4417
|
/**
|
|
4410
|
-
*
|
|
4411
|
-
* the clauses with AND logic.
|
|
4412
|
-
*
|
|
4413
|
-
* @param where
|
|
4414
|
-
* @returns
|
|
4418
|
+
* Resolve a callback into a parenthesized group condition and append it.
|
|
4415
4419
|
*/
|
|
4416
|
-
|
|
4417
|
-
|
|
4420
|
+
appendNestedWhere(boolean, callback) {
|
|
4421
|
+
const nested = new QueryBuilder(this.model, this.adapter);
|
|
4422
|
+
callback(nested);
|
|
4423
|
+
const condition = nested.getNestedWhereCondition();
|
|
4424
|
+
if (!condition) return this;
|
|
4425
|
+
const grouped = condition.type === "group" ? condition : {
|
|
4426
|
+
type: "group",
|
|
4427
|
+
operator: "and",
|
|
4428
|
+
conditions: [condition]
|
|
4429
|
+
};
|
|
4430
|
+
this.appendQueryCondition(boolean, grouped);
|
|
4431
|
+
return this;
|
|
4418
4432
|
}
|
|
4419
4433
|
/**
|
|
4420
|
-
*
|
|
4421
|
-
*
|
|
4422
|
-
* @param where
|
|
4423
|
-
* @returns
|
|
4434
|
+
* Returns the user-authored where condition for nesting, excluding any
|
|
4435
|
+
* soft-delete predicate (the parent query owns that).
|
|
4424
4436
|
*/
|
|
4425
|
-
|
|
4426
|
-
return this.
|
|
4437
|
+
getNestedWhereCondition() {
|
|
4438
|
+
if (this.legacyWhere) return this.tryBuildQueryCondition(this.legacyWhere) ?? void 0;
|
|
4439
|
+
return this.queryWhere;
|
|
4427
4440
|
}
|
|
4428
4441
|
/**
|
|
4429
4442
|
* Adds a NOT where clause to the query.
|
package/dist/index.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as buildRelationLine, $a as AttributeSchemaDelegate, $i as EagerLoadConstraint, $n as RuntimePathMap, $o as LengthAwarePaginator, $r as QueryFullTextCondition, $t as getPersistedColumnMap, A as isTransactionCapableClient, Aa as QuerySchemaUniqueWhere, Ai as UpsertSpec, An as ForeignKeyBuilder, Ar as AdapterModelFieldStructure, As as AppliedMigrationsState, At as createEmptyAppliedMigrationsState, B as applyDropTableOperation, Ba as TransactionCapableClient, Bi as CastType, Bn as MakeFactoryCommand, Br as DatabaseRow, Bs as SchemaForeignKey, Bt as removeAppliedMigration, C as getRuntimeDebugHandler, Ca as QuerySchemaCreateData, Ci as RelationLoadPlan, Cn as ArkormException, Co as RelatedModelClass, Cr as createPrismaDatabaseAdapter, Cs as MorphToManyRelationMetadata, Ct as supportsDatabaseMigrationExecution, D as getUserConfig, Da as QuerySchemaRow, Di as SortDirection, Dn as SchemaBuilder, Do as defineFactory, Dr as AdapterCapability, Ds as RelationMetadataType, Dt as buildMigrationIdentity, E as getRuntimePrismaClient, Ea as QuerySchemaOrderBy, Ei as SoftDeleteQueryMode, En as Migration, Eo as ModelFactory, Er as AdapterCapabilities, Es as RelationMetadata, Et as toModelName, F as PRISMA_ENUM_MEMBER_REGEX, Fa as RuntimeClientLike, Fi as ArkormDebugEvent, Fn as MigrateFreshCommand, Fr as AggregateOperation, Fs as PrimaryKeyGeneration, Ft as isMigrationApplied, G as applyOperationsToPrismaSchema, Ga as EagerLoadRelations, Gi as DelegateOrderBy, Gn as AttributeOptions, Go as RelationColumnLookupSpec, Gr as InsertManySpec, Gs as SchemaTableAlterOperation, Gt as PersistedColumnMappingsState, H as applyMigrationRollbackToPrismaSchema, Ha as TransactionOptions, Hi as DelegateCreateData, Hn as CliApp, Ho as RelationAggregateConstraint, Hr as DatabaseValue, Hs as SchemaIndex, Ht as supportsDatabaseMigrationState, I as PRISMA_ENUM_REGEX, Ia as Serializable, Ii as ArkormDebugHandler, In as MigrateCommand, Ir as AggregateSelection, Is as PrismaMigrationWorkflowOptions, It as markMigrationApplied, J as buildIndexLine, Ja as QueryBuilder, Ji as DelegateSelect, Jn as RegisteredFactory, Jo as RelationDefaultValue, Jr as QueryComparisonCondition, Js as SchemaUniqueConstraint, Jt as PersistedTableMetadata, K as buildEnumBlock, Ka as JoinOn, Ki as DelegateRow, Kn as Arkorm, Ko as RelationConstraint, Kr as InsertSpec, Ks as SchemaTableCreateOperation, Kt as PersistedMetadataFeatures, L as PRISMA_MODEL_REGEX, La as SimplePaginationMeta, Li as CastDefinition, Ln as MakeSeederCommand, Lr as AggregateSpec, Ls as PrismaSchemaSyncOptions, Lt as markMigrationRun, M as resetArkormRuntimeForTests, Ma as QuerySchemaUpdateData, Mi as AdapterQueryInspection, Mn as ModelsSyncCommand, Mr as AdapterModelStructure, Ms as GeneratedMigrationFile, Mt as findAppliedMigration, N as runArkormTransaction, Na as QuerySchemaWhere, Ni as ArkormBootContext, Nn as MigrationHistoryCommand, Nr as AdapterQueryOperation, Ns as MigrationClass, Nt as getLastMigrationRun, O as isDelegateLike, Oa as QuerySchemaRows, Oi as UpdateManySpec, On as EnumBuilder, Or as AdapterDatabaseCreationResult, Os as AppliedMigrationEntry, Ot as buildMigrationRunId, P as PrimaryKeyGenerationPlanner, Pa as RawSelectInput, Pi as ArkormConfig, Pn as MigrateRollbackCommand, Pr as AdapterTransactionContext, Ps as MigrationInstanceLike, Pt as getLatestAppliedMigrations, Q as buildPrimaryKeyLine, Qa as AttributeQuerySchema, Qi as DelegateWhere, Qn as RuntimePathKey, Qo as RelationTableLookupSpec, Qr as QueryExistsCondition, Qt as deletePersistedColumnMappingsState, R as applyAlterTableOperation, Ra as SoftDeleteConfig, Ri as CastHandler, Rn as MakeModelCommand, Rr as DatabaseAdapter, Rs as SchemaColumn, Rt as readAppliedMigrationsState, S as getRuntimeClient, Sa as PrismaTransactionOptions, Si as RelationFilterSpec, Sn as ArkormErrorContext, So as QuerySchemaForModelInstance, Sr as createPrismaCompatibilityAdapter, Ss as MorphOneRelationMetadata, St as supportsDatabaseCreation, T as getRuntimePaginationURLDriverFactory, Ta as QuerySchemaInclude, Ti as SelectSpec, Tn as MIGRATION_BRAND, To as InlineFactory, Tr as createKyselyAdapter, Ts as PivotModelStatic, Tt as toMigrationFileSlug, U as applyMigrationToDatabase, Ua as ModelStatic, Ui as DelegateFindManyArgs, Un as resolveCast, Uo as RelationAggregateInput, Ur as DeleteManySpec, Us as SchemaOperation, Ut as writeAppliedMigrationsState, V as applyMigrationRollbackToDatabase, Va as TransactionContext, Vi as ClientResolver, Vn as InitCommand, Vr as DatabaseRows, Vs as SchemaForeignKeyAction, Vt as resolveMigrationStateFilePath, W as applyMigrationToPrismaSchema, Wa as RelationshipModelStatic, Wi as DelegateInclude, Wn as Attribute, Wo as RelationAggregateType, Wr as DeleteSpec, Ws as SchemaPrimaryKey, Wt as writeAppliedMigrationsStateToStore, X as buildMigrationSource, Xa as AttributeCreateInput, Xi as DelegateUpdateArgs, Xn as RuntimeConstructor, Xo as RelationResult, Xr as QueryCondition, Xs as TimestampNames, Xt as applyOperationsToPersistedColumnMappingsState, Y as buildInverseRelationLine, Ya as JoinClause, Yi as DelegateUniqueWhere, Yn as RegisteredModel, Yo as RelationMetadataProvider, Yr as QueryComparisonOperator, Ys as TimestampColumnBehavior, Yt as PersistedTimestampColumn, Z as buildModelBlock, Za as AttributeOrderBy, Zi as DelegateUpdateData, Zn as RuntimePathInput, Zo as RelationResultCache, Zr as QueryDayCondition, Zs as TimestampNaming, Zt as createEmptyPersistedColumnMappingsState, _ as ensureArkormConfigLoading, _a as PrismaLikeSortOrder, _i as QuerySelectColumn, _n as QueryExecutionException, _o as ModelRelationshipKey, _r as SeederCallArgument, _s as HasManyThroughRelationMetadata, _t as resolveMigrationClassName, a as getRuntimeCompatibilityAdapter, aa as PaginationCurrentPageResolver, ai as QueryJoinNestedConstraint, an as readPersistedColumnMappingsState, ao as ModelAttributeValue, ar as loadFactoriesFrom, as as FactoryDefinition, at as deriveRelationFieldName, b as getDefaultStubsPath, ba as PrismaTransactionCapableClient, bi as RawQuerySpec, bn as ModelNotFoundException, bo as ModelWhereInput, br as PrismaDatabaseAdapter, bs as ModelMetadata, bt as runPrismaCommand, c as PrismaDelegateMap, ca as PaginationURLDriver, ci as QueryJoinType, cn as resolveColumnMappingsFilePath, co as ModelCreateData, cr as loadSeedersFrom, cs as FactoryRelationshipResolver, ct as findEnumBlock, d as inferDelegateName, da as PrismaDelegateLike, di as QueryJsonConditionKind, dn as validatePersistedMetadataFeaturesForMigrations, do as ModelEventHandler, dr as registerModels, ds as DatabaseTableOptions, dt as formatEnumDefaultValue, ea as EagerLoadMap, ei as QueryGroupCondition, en as getPersistedEnumMap, eo as AttributeSelect, er as getRegisteredFactories, es as Paginator, et as buildUniqueConstraintLine, f as awaitConfiguredModelsRegistration, fa as PrismaFindManyArgsLike, fi as QueryLogicalOperator, fn as writePersistedColumnMappingsState, fo as ModelEventHandlerConstructor, fr as registerPaths, fs as DatabaseTablePersistedMetadataOptions, ft as formatRelationAction, g as emitRuntimeDebugEvent, ga as PrismaLikeSelect, gi as QueryScalarComparisonOperator, gn as RelationResolutionException, go as ModelOrderByInput, gr as Seeder, gs as HasManyRelationMetadata, gt as resolveEnumName, h as defineConfig, ha as PrismaLikeScalarFilter, hi as QueryRawCondition, hn as ScopeNotDefinedException, ho as ModelLifecycleState, hr as SEEDER_BRAND, hs as ColumnMap, ht as pad, i as RuntimeModuleLoader, ia as NamingCase, ii as QueryJoinConstraint, in as getPersistedTimestampColumns, io as GlobalScope, ir as getRegisteredSeeders, is as FactoryCallback, it as deriveRelationAlias, j as loadArkormConfig, ja as QuerySchemaUpdateArgs, ji as AdapterBindableModel, jn as SeedCommand, jr as AdapterModelIntrospectionOptions, js as GenerateMigrationOptions, jt as deleteAppliedMigrationsStateFromStore, k as isQuerySchemaLike, ka as QuerySchemaSelect, ki as UpdateSpec, kn as TableBuilder, kr as AdapterInspectionRequest, ks as AppliedMigrationRun, kt as computeMigrationChecksum, l as createPrismaAdapter, la as PaginationURLDriverFactory, li as QueryJoinValueConstraint, ln as resolvePersistedMetadataFeatures, lo as ModelDeclaredAttributeKey, lr as registerFactories, ls as FactoryState, lt as findModelBlock, m as configureArkormRuntime, ma as PrismaLikeOrderBy, mi as QueryOrderBy, mn as UniqueConstraintResolutionException, mo as ModelEventName, mr as resetRuntimeRegistryForTests, ms as BelongsToRelationMetadata, mt as getMigrationPlan, n as PivotModel, na as ModelQuerySchemaLike, ni as QueryJoinBoolean, nn as getPersistedPrimaryKeyGeneration, no as AttributeWhereInput, nr as getRegisteredModels, ns as FactoryAttributeResolver, nt as deriveCollectionFieldName, o as resolveRuntimeCompatibilityQuerySchema, oa as PaginationMeta, oi as QueryJoinNullConstraint, on as rebuildPersistedColumnMappingsState, oo as ModelAttributes, or as loadMigrationsFrom, os as FactoryDefinitionAttributes, ot as deriveSingularFieldName, p as bindAdapterToModels, pa as PrismaLikeInclude, pi as QueryNotCondition, pn as UnsupportedAdapterFeatureException, po as ModelEventListener, pr as registerSeeders, ps as BelongsToManyRelationMetadata, pt as generateMigrationFile, q as buildFieldLine, qa as JoinSource, qi as DelegateRows, qn as Arkormx, qo as RelationDefaultResolver, qr as QueryColumnComparisonCondition, qs as SchemaTableDropOperation, qt as PersistedPrimaryKeyGeneration, r as LoadedRuntimeModule, ra as ModelTableCase, ri as QueryJoinColumnConstraint, rn as getPersistedTableMetadata, ro as DelegateForModelSchema, rr as getRegisteredPaths, rs as FactoryAttributes, rt as deriveInverseRelationAlias, s as resolveRuntimeCompatibilityQuerySchemaOrThrow, sa as PaginationOptions, si as QueryJoinRawConstraint, sn as resetPersistedColumnMappingsCache, so as ModelAttributesOf, sr as loadModelsFrom, ss as FactoryModelConstructor, st as escapeRegex, t as URLDriver, ta as GetUserConfig, ti as QueryJoin, tn as getPersistedEnumTsType, to as AttributeUpdateInput, tr as getRegisteredMigrations, ts as ArkormCollection, tt as createMigrationTimestamp, u as createPrismaDelegateMap, ua as PrismaClientLike, ui as QueryJsonCondition, un as syncPersistedColumnMappingsFromState, uo as ModelEventDispatcher, ur as registerMigrations, us as MaybePromise, ut as formatDefaultValue, v as getActiveTransactionAdapter, va as PrismaLikeWhereInput, vi as QueryTarget, vn as QueryExecutionExceptionContext, vo as ModelRelationshipResult, vr as SeederConstructor, vs as HasOneRelationMetadata, vt as resolvePrismaType, w as getRuntimePaginationCurrentPageResolver, wa as QuerySchemaFindManyArgs, wi as RelationLoadSpec, wn as DB, wo as Model, wr as KyselyDatabaseAdapter, ws as MorphToRelationMetadata, wt as supportsDatabaseReset, x as getRuntimeAdapter, xa as PrismaTransactionContext, xi as RelationAggregateSpec, xn as MissingDelegateException, xo as QuerySchemaForModel, xr as PrismaDelegateNameMapping, xs as MorphManyRelationMetadata, xt as stripPrismaSchemaModelsAndEnums, y as getActiveTransactionClient, ya as PrismaTransactionCallback, yi as QueryTimeCondition, yn as QueryConstraintException, yo as ModelUpdateData, yr as SeederInput, ys as HasOneThroughRelationMetadata, yt as runMigrationWithPrisma, z as applyCreateTableOperation, za as TransactionCallback, zi as CastMap, zn as MakeMigrationCommand, zr as DatabasePrimitive, zs as SchemaColumnType, zt as readAppliedMigrationsStateFromStore } from "./index-wYvd4F2M.cjs";
|
|
2
|
-
export { AdapterBindableModel, AdapterCapabilities, AdapterCapability, AdapterDatabaseCreationResult, AdapterInspectionRequest, AdapterModelFieldStructure, AdapterModelIntrospectionOptions, AdapterModelStructure, AdapterQueryInspection, AdapterQueryOperation, AdapterTransactionContext, 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, CastDefinition, CastHandler, CastMap, CastType, CliApp, ClientResolver, 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, FactoryAttributeResolver, FactoryAttributes, FactoryCallback, FactoryDefinition, FactoryDefinitionAttributes, FactoryModelConstructor, FactoryRelationshipResolver, FactoryState, ForeignKeyBuilder, GenerateMigrationOptions, GeneratedMigrationFile, GetUserConfig, GlobalScope, HasManyRelationMetadata, HasManyThroughRelationMetadata, HasOneRelationMetadata, HasOneThroughRelationMetadata, InitCommand, InlineFactory, InsertManySpec, InsertSpec, JoinClause, JoinOn, JoinSource, 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, 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, QueryFullTextCondition, 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, RawQuerySpec, RawSelectInput, RegisteredFactory, RegisteredModel, RelatedModelClass, 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, applyAlterTableOperation, applyCreateTableOperation, applyDropTableOperation, applyMigrationRollbackToDatabase, applyMigrationRollbackToPrismaSchema, applyMigrationToDatabase, applyMigrationToPrismaSchema, applyOperationsToPersistedColumnMappingsState, applyOperationsToPrismaSchema, awaitConfiguredModelsRegistration, bindAdapterToModels, buildEnumBlock, buildFieldLine, buildIndexLine, buildInverseRelationLine, buildMigrationIdentity, buildMigrationRunId, buildMigrationSource, buildModelBlock, buildPrimaryKeyLine, buildRelationLine, buildUniqueConstraintLine, computeMigrationChecksum, configureArkormRuntime, createEmptyAppliedMigrationsState, createEmptyPersistedColumnMappingsState, createKyselyAdapter, createMigrationTimestamp, createPrismaAdapter, createPrismaCompatibilityAdapter, createPrismaDatabaseAdapter, createPrismaDelegateMap, defineConfig, defineFactory, deleteAppliedMigrationsStateFromStore, deletePersistedColumnMappingsState, deriveCollectionFieldName, deriveInverseRelationAlias, deriveRelationAlias, deriveRelationFieldName, deriveSingularFieldName, emitRuntimeDebugEvent, ensureArkormConfigLoading, escapeRegex, findAppliedMigration, findEnumBlock, findModelBlock, formatDefaultValue, formatEnumDefaultValue, formatRelationAction, 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, loadArkormConfig, loadFactoriesFrom, loadMigrationsFrom, loadModelsFrom, loadSeedersFrom, markMigrationApplied, markMigrationRun, pad, readAppliedMigrationsState, readAppliedMigrationsStateFromStore, readPersistedColumnMappingsState, rebuildPersistedColumnMappingsState, registerFactories, registerMigrations, registerModels, registerPaths, registerSeeders, removeAppliedMigration, resetArkormRuntimeForTests, resetPersistedColumnMappingsCache, resetRuntimeRegistryForTests, resolveCast, resolveColumnMappingsFilePath, resolveEnumName, resolveMigrationClassName, resolveMigrationStateFilePath, resolvePersistedMetadataFeatures, resolvePrismaType, resolveRuntimeCompatibilityQuerySchema, resolveRuntimeCompatibilityQuerySchemaOrThrow, runArkormTransaction, runMigrationWithPrisma, runPrismaCommand, stripPrismaSchemaModelsAndEnums, supportsDatabaseCreation, supportsDatabaseMigrationExecution, supportsDatabaseMigrationState, supportsDatabaseReset, syncPersistedColumnMappingsFromState, toMigrationFileSlug, toModelName, validatePersistedMetadataFeaturesForMigrations, writeAppliedMigrationsState, writeAppliedMigrationsStateToStore, writePersistedColumnMappingsState };
|
|
1
|
+
import { $ as buildRelationLine, $a as DelegateForModelSchema, $i as EagerLoadConstraint, $n as RuntimePathMap, $o as RelatedModelFromResult, $r as QueryFullTextCondition, $s as TimestampNames, $t as getPersistedColumnMap, A as isTransactionCapableClient, Aa as QuerySchemaUniqueWhere, Ai as UpsertSpec, An as ForeignKeyBuilder, Ar as AdapterModelFieldStructure, As as RelationMetadataType, At as createEmptyAppliedMigrationsState, B as applyDropTableOperation, Ba as TransactionCapableClient, Bi as CastType, Bn as MakeFactoryCommand, Bo as RelationAggregateType, Br as DatabaseRow, Bs as PrismaSchemaSyncOptions, Bt as removeAppliedMigration, C as getRuntimeDebugHandler, Ca as QuerySchemaCreateData, Ci as RelationLoadPlan, Cn as ArkormException, Co as defineFactory, Cr as createPrismaDatabaseAdapter, Cs as ModelMetadata, Ct as supportsDatabaseMigrationExecution, D as getUserConfig, Da as QuerySchemaRow, Di as SortDirection, Dn as SchemaBuilder, Dr as AdapterCapability, Ds as MorphToRelationMetadata, Dt as buildMigrationIdentity, E as getRuntimePrismaClient, Ea as QuerySchemaOrderBy, Ei as SoftDeleteQueryMode, En as Migration, Er as AdapterCapabilities, Es as MorphToManyRelationMetadata, Et as toModelName, F as PRISMA_ENUM_MEMBER_REGEX, Fa as RuntimeClientLike, Fi as ArkormDebugEvent, Fn as MigrateFreshCommand, Fr as AggregateOperation, Fs as GeneratedMigrationFile, Ft as isMigrationApplied, G as applyOperationsToPrismaSchema, Ga as QueryBuilder, Gi as DelegateOrderBy, Gn as AttributeOptions, Go as RelationMetadataProvider, Gr as InsertManySpec, Gs as SchemaIndex, Gt as PersistedColumnMappingsState, H as applyMigrationRollbackToPrismaSchema, Ha as TransactionOptions, Hi as DelegateCreateData, Hn as CliApp, Ho as RelationConstraint, Hr as DatabaseValue, Hs as SchemaColumnType, Ht as supportsDatabaseMigrationState, I as PRISMA_ENUM_REGEX, Ia as Serializable, Ii as ArkormDebugHandler, In as MigrateCommand, Ir as AggregateSelection, Is as MigrationClass, It as markMigrationApplied, J as buildIndexLine, Ja as AttributeQuerySchema, Ji as DelegateSelect, Jn as RegisteredFactory, Jo as RelationTableLookupSpec, Jr as QueryComparisonCondition, Js as SchemaTableAlterOperation, Jt as PersistedTableMetadata, K as buildEnumBlock, Ka as AttributeCreateInput, Ki as DelegateRow, Kn as Arkorm, Ko as RelationResult, Kr as InsertSpec, Ks as SchemaOperation, Kt as PersistedMetadataFeatures, L as PRISMA_MODEL_REGEX, La as SimplePaginationMeta, Li as CastDefinition, Ln as MakeSeederCommand, Lr as AggregateSpec, Ls as MigrationInstanceLike, Lt as markMigrationRun, M as resetArkormRuntimeForTests, Ma as QuerySchemaUpdateData, Mi as AdapterQueryInspection, Mn as ModelsSyncCommand, Mr as AdapterModelStructure, Ms as AppliedMigrationRun, Mt as findAppliedMigration, N as runArkormTransaction, Na as QuerySchemaWhere, Ni as ArkormBootContext, Nn as MigrationHistoryCommand, Nr as AdapterQueryOperation, Ns as AppliedMigrationsState, Nt as getLastMigrationRun, O as isDelegateLike, Oa as QuerySchemaRows, Oi as UpdateManySpec, On as EnumBuilder, Or as AdapterDatabaseCreationResult, Os as PivotModelStatic, Ot as buildMigrationRunId, P as PrimaryKeyGenerationPlanner, Pa as RawSelectInput, Pi as ArkormConfig, Pn as MigrateRollbackCommand, Pr as AdapterTransactionContext, Ps as GenerateMigrationOptions, Pt as getLatestAppliedMigrations, Q as buildPrimaryKeyLine, Qa as AttributeWhereInput, Qi as DelegateWhere, Qn as RuntimePathKey, Qo as RelatedModelForRelationship, Qr as QueryExistsCondition, Qs as TimestampColumnBehavior, Qt as deletePersistedColumnMappingsState, R as applyAlterTableOperation, Ra as SoftDeleteConfig, Ri as CastHandler, Rn as MakeModelCommand, Ro as RelationAggregateConstraint, Rr as DatabaseAdapter, Rs as PrimaryKeyGeneration, Rt as readAppliedMigrationsState, S as getRuntimeClient, Sa as PrismaTransactionOptions, Si as RelationFilterSpec, Sn as ArkormErrorContext, So as ModelFactory, Sr as createPrismaCompatibilityAdapter, Ss as HasOneThroughRelationMetadata, St as supportsDatabaseCreation, T as getRuntimePaginationURLDriverFactory, Ta as QuerySchemaInclude, Ti as SelectSpec, Tn as MIGRATION_BRAND, Tr as createKyselyAdapter, Ts as MorphOneRelationMetadata, Tt as toMigrationFileSlug, U as applyMigrationToDatabase, Ua as ModelStatic, Ui as DelegateFindManyArgs, Un as resolveCast, Uo as RelationDefaultResolver, Ur as DeleteManySpec, Us as SchemaForeignKey, Ut as writeAppliedMigrationsState, V as applyMigrationRollbackToDatabase, Va as TransactionContext, Vi as ClientResolver, Vn as InitCommand, Vo as RelationColumnLookupSpec, Vr as DatabaseRows, Vs as SchemaColumn, Vt as resolveMigrationStateFilePath, W as applyMigrationToPrismaSchema, Wa as RelationshipModelStatic, Wi as DelegateInclude, Wn as Attribute, Wo as RelationDefaultValue, Wr as DeleteSpec, Ws as SchemaForeignKeyAction, Wt as writeAppliedMigrationsStateToStore, X as buildMigrationSource, Xa as AttributeSelect, Xi as DelegateUpdateArgs, Xn as RuntimeConstructor, Xo as JoinOn, Xr as QueryCondition, Xs as SchemaTableDropOperation, Xt as applyOperationsToPersistedColumnMappingsState, Y as buildInverseRelationLine, Ya as AttributeSchemaDelegate, Yi as DelegateUniqueWhere, Yn as RegisteredModel, Yo as EagerLoadRelations, Yr as QueryComparisonOperator, Ys as SchemaTableCreateOperation, Yt as PersistedTimestampColumn, Z as buildModelBlock, Za as AttributeUpdateInput, Zi as DelegateUpdateData, Zn as RuntimePathInput, Zo as JoinSource, Zr as QueryDayCondition, Zs as SchemaUniqueConstraint, Zt as createEmptyPersistedColumnMappingsState, _ as ensureArkormConfigLoading, _a as PrismaLikeSortOrder, _i as QuerySelectColumn, _n as QueryExecutionException, _o as QuerySchemaForModel, _r as SeederCallArgument, _s as BelongsToRelationMetadata, _t as resolveMigrationClassName, a as getRuntimeCompatibilityAdapter, aa as PaginationCurrentPageResolver, ai as QueryJoinNestedConstraint, an as readPersistedColumnMappingsState, ao as ModelDeclaredAttributeKey, ar as loadFactoriesFrom, as as FactoryAttributeResolver, at as deriveRelationFieldName, b as getDefaultStubsPath, ba as PrismaTransactionCapableClient, bi as RawQuerySpec, bn as ModelNotFoundException, bo as Model, br as PrismaDatabaseAdapter, bs as HasManyThroughRelationMetadata, bt as runPrismaCommand, c as PrismaDelegateMap, ca as PaginationURLDriver, ci as QueryJoinType, cn as resolveColumnMappingsFilePath, co as ModelEventHandlerConstructor, cr as loadSeedersFrom, cs as FactoryDefinition, ct as findEnumBlock, d as inferDelegateName, da as PrismaDelegateLike, di as QueryJsonConditionKind, dn as validatePersistedMetadataFeaturesForMigrations, do as ModelLifecycleState, dr as registerModels, ds as FactoryRelationshipResolver, dt as formatEnumDefaultValue, ea as EagerLoadMap, ec as TimestampNaming, ei as QueryGroupCondition, en as getPersistedEnumMap, eo as GlobalScope, er as getRegisteredFactories, es as WhereCallback, et as buildUniqueConstraintLine, f as awaitConfiguredModelsRegistration, fa as PrismaFindManyArgsLike, fi as QueryLogicalOperator, fn as writePersistedColumnMappingsState, fo as ModelOrderByInput, fr as registerPaths, fs as FactoryState, ft as formatRelationAction, g as emitRuntimeDebugEvent, ga as PrismaLikeSelect, gi as QueryScalarComparisonOperator, gn as RelationResolutionException, go as ModelWhereInput, gr as Seeder, gs as BelongsToManyRelationMetadata, gt as resolveEnumName, h as defineConfig, ha as PrismaLikeScalarFilter, hi as QueryRawCondition, hn as ScopeNotDefinedException, ho as ModelUpdateData, hr as SEEDER_BRAND, hs as DatabaseTablePersistedMetadataOptions, ht as pad, i as RuntimeModuleLoader, ia as NamingCase, ii as QueryJoinConstraint, in as getPersistedTimestampColumns, io as ModelCreateData, ir as getRegisteredSeeders, is as ArkormCollection, it as deriveRelationAlias, j as loadArkormConfig, ja as QuerySchemaUpdateArgs, ji as AdapterBindableModel, jn as SeedCommand, jr as AdapterModelIntrospectionOptions, js as AppliedMigrationEntry, jt as deleteAppliedMigrationsStateFromStore, k as isQuerySchemaLike, ka as QuerySchemaSelect, ki as UpdateSpec, kn as TableBuilder, kr as AdapterInspectionRequest, ks as RelationMetadata, kt as computeMigrationChecksum, l as createPrismaAdapter, la as PaginationURLDriverFactory, li as QueryJoinValueConstraint, ln as resolvePersistedMetadataFeatures, lo as ModelEventListener, lr as registerFactories, ls as FactoryDefinitionAttributes, lt as findModelBlock, m as configureArkormRuntime, ma as PrismaLikeOrderBy, mi as QueryOrderBy, mn as UniqueConstraintResolutionException, mo as ModelRelationshipResult, mr as resetRuntimeRegistryForTests, ms as DatabaseTableOptions, mt as getMigrationPlan, n as PivotModel, na as ModelQuerySchemaLike, ni as QueryJoinBoolean, nn as getPersistedPrimaryKeyGeneration, no as ModelAttributes, nr as getRegisteredModels, ns as LengthAwarePaginator, nt as deriveCollectionFieldName, o as resolveRuntimeCompatibilityQuerySchema, oa as PaginationMeta, oi as QueryJoinNullConstraint, on as rebuildPersistedColumnMappingsState, oo as ModelEventDispatcher, or as loadMigrationsFrom, os as FactoryAttributes, ot as deriveSingularFieldName, p as bindAdapterToModels, pa as PrismaLikeInclude, pi as QueryNotCondition, pn as UnsupportedAdapterFeatureException, po as ModelRelationshipKey, pr as registerSeeders, ps as MaybePromise, pt as generateMigrationFile, q as buildFieldLine, qa as AttributeOrderBy, qi as DelegateRows, qn as Arkormx, qo as RelationResultCache, qr as QueryColumnComparisonCondition, qs as SchemaPrimaryKey, qt as PersistedPrimaryKeyGeneration, r as LoadedRuntimeModule, ra as ModelTableCase, ri as QueryJoinColumnConstraint, rn as getPersistedTableMetadata, ro as ModelAttributesOf, rr as getRegisteredPaths, rs as Paginator, rt as deriveInverseRelationAlias, s as resolveRuntimeCompatibilityQuerySchemaOrThrow, sa as PaginationOptions, si as QueryJoinRawConstraint, sn as resetPersistedColumnMappingsCache, so as ModelEventHandler, sr as loadModelsFrom, ss as FactoryCallback, st as escapeRegex, t as URLDriver, ta as GetUserConfig, ti as QueryJoin, tn as getPersistedEnumTsType, to as ModelAttributeValue, tr as getRegisteredMigrations, ts as JoinClause, tt as createMigrationTimestamp, u as createPrismaDelegateMap, ua as PrismaClientLike, ui as QueryJsonCondition, un as syncPersistedColumnMappingsFromState, uo as ModelEventName, ur as registerMigrations, us as FactoryModelConstructor, ut as formatDefaultValue, v as getActiveTransactionAdapter, va as PrismaLikeWhereInput, vi as QueryTarget, vn as QueryExecutionExceptionContext, vo as QuerySchemaForModelInstance, vr as SeederConstructor, vs as ColumnMap, vt as resolvePrismaType, w as getRuntimePaginationCurrentPageResolver, wa as QuerySchemaFindManyArgs, wi as RelationLoadSpec, wn as DB, wr as KyselyDatabaseAdapter, ws as MorphManyRelationMetadata, wt as supportsDatabaseReset, x as getRuntimeAdapter, xa as PrismaTransactionContext, xi as RelationAggregateSpec, xn as MissingDelegateException, xo as InlineFactory, xr as PrismaDelegateNameMapping, xs as HasOneRelationMetadata, xt as stripPrismaSchemaModelsAndEnums, y as getActiveTransactionClient, ya as PrismaTransactionCallback, yi as QueryTimeCondition, yn as QueryConstraintException, yo as RelatedModelClass, yr as SeederInput, ys as HasManyRelationMetadata, yt as runMigrationWithPrisma, z as applyCreateTableOperation, za as TransactionCallback, zi as CastMap, zn as MakeMigrationCommand, zo as RelationAggregateInput, zr as DatabasePrimitive, zs as PrismaMigrationWorkflowOptions, zt as readAppliedMigrationsStateFromStore } from "./index-18M5gEFk.cjs";
|
|
2
|
+
export { AdapterBindableModel, AdapterCapabilities, AdapterCapability, AdapterDatabaseCreationResult, AdapterInspectionRequest, AdapterModelFieldStructure, AdapterModelIntrospectionOptions, AdapterModelStructure, AdapterQueryInspection, AdapterQueryOperation, AdapterTransactionContext, 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, CastDefinition, CastHandler, CastMap, CastType, CliApp, ClientResolver, 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, FactoryAttributeResolver, FactoryAttributes, FactoryCallback, FactoryDefinition, FactoryDefinitionAttributes, FactoryModelConstructor, FactoryRelationshipResolver, FactoryState, ForeignKeyBuilder, GenerateMigrationOptions, GeneratedMigrationFile, GetUserConfig, GlobalScope, HasManyRelationMetadata, HasManyThroughRelationMetadata, HasOneRelationMetadata, HasOneThroughRelationMetadata, InitCommand, InlineFactory, InsertManySpec, InsertSpec, JoinClause, JoinOn, JoinSource, 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, 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, QueryFullTextCondition, 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, 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, WhereCallback, applyAlterTableOperation, applyCreateTableOperation, applyDropTableOperation, applyMigrationRollbackToDatabase, applyMigrationRollbackToPrismaSchema, applyMigrationToDatabase, applyMigrationToPrismaSchema, applyOperationsToPersistedColumnMappingsState, applyOperationsToPrismaSchema, awaitConfiguredModelsRegistration, bindAdapterToModels, buildEnumBlock, buildFieldLine, buildIndexLine, buildInverseRelationLine, buildMigrationIdentity, buildMigrationRunId, buildMigrationSource, buildModelBlock, buildPrimaryKeyLine, buildRelationLine, buildUniqueConstraintLine, computeMigrationChecksum, configureArkormRuntime, createEmptyAppliedMigrationsState, createEmptyPersistedColumnMappingsState, createKyselyAdapter, createMigrationTimestamp, createPrismaAdapter, createPrismaCompatibilityAdapter, createPrismaDatabaseAdapter, createPrismaDelegateMap, defineConfig, defineFactory, deleteAppliedMigrationsStateFromStore, deletePersistedColumnMappingsState, deriveCollectionFieldName, deriveInverseRelationAlias, deriveRelationAlias, deriveRelationFieldName, deriveSingularFieldName, emitRuntimeDebugEvent, ensureArkormConfigLoading, escapeRegex, findAppliedMigration, findEnumBlock, findModelBlock, formatDefaultValue, formatEnumDefaultValue, formatRelationAction, 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, loadArkormConfig, loadFactoriesFrom, loadMigrationsFrom, loadModelsFrom, loadSeedersFrom, markMigrationApplied, markMigrationRun, pad, readAppliedMigrationsState, readAppliedMigrationsStateFromStore, readPersistedColumnMappingsState, rebuildPersistedColumnMappingsState, registerFactories, registerMigrations, registerModels, registerPaths, registerSeeders, removeAppliedMigration, resetArkormRuntimeForTests, resetPersistedColumnMappingsCache, resetRuntimeRegistryForTests, resolveCast, resolveColumnMappingsFilePath, resolveEnumName, resolveMigrationClassName, resolveMigrationStateFilePath, resolvePersistedMetadataFeatures, resolvePrismaType, resolveRuntimeCompatibilityQuerySchema, resolveRuntimeCompatibilityQuerySchemaOrThrow, runArkormTransaction, runMigrationWithPrisma, runPrismaCommand, stripPrismaSchemaModelsAndEnums, supportsDatabaseCreation, supportsDatabaseMigrationExecution, supportsDatabaseMigrationState, supportsDatabaseReset, syncPersistedColumnMappingsFromState, toMigrationFileSlug, toModelName, validatePersistedMetadataFeaturesForMigrations, writeAppliedMigrationsState, writeAppliedMigrationsStateToStore, writePersistedColumnMappingsState };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as buildRelationLine, $a as AttributeSchemaDelegate, $i as EagerLoadConstraint, $n as RuntimePathMap, $o as LengthAwarePaginator, $r as QueryFullTextCondition, $t as getPersistedColumnMap, A as isTransactionCapableClient, Aa as QuerySchemaUniqueWhere, Ai as UpsertSpec, An as ForeignKeyBuilder, Ar as AdapterModelFieldStructure, As as AppliedMigrationsState, At as createEmptyAppliedMigrationsState, B as applyDropTableOperation, Ba as TransactionCapableClient, Bi as CastType, Bn as MakeFactoryCommand, Br as DatabaseRow, Bs as SchemaForeignKey, Bt as removeAppliedMigration, C as getRuntimeDebugHandler, Ca as QuerySchemaCreateData, Ci as RelationLoadPlan, Cn as ArkormException, Co as RelatedModelClass, Cr as createPrismaDatabaseAdapter, Cs as MorphToManyRelationMetadata, Ct as supportsDatabaseMigrationExecution, D as getUserConfig, Da as QuerySchemaRow, Di as SortDirection, Dn as SchemaBuilder, Do as defineFactory, Dr as AdapterCapability, Ds as RelationMetadataType, Dt as buildMigrationIdentity, E as getRuntimePrismaClient, Ea as QuerySchemaOrderBy, Ei as SoftDeleteQueryMode, En as Migration, Eo as ModelFactory, Er as AdapterCapabilities, Es as RelationMetadata, Et as toModelName, F as PRISMA_ENUM_MEMBER_REGEX, Fa as RuntimeClientLike, Fi as ArkormDebugEvent, Fn as MigrateFreshCommand, Fr as AggregateOperation, Fs as PrimaryKeyGeneration, Ft as isMigrationApplied, G as applyOperationsToPrismaSchema, Ga as EagerLoadRelations, Gi as DelegateOrderBy, Gn as AttributeOptions, Go as RelationColumnLookupSpec, Gr as InsertManySpec, Gs as SchemaTableAlterOperation, Gt as PersistedColumnMappingsState, H as applyMigrationRollbackToPrismaSchema, Ha as TransactionOptions, Hi as DelegateCreateData, Hn as CliApp, Ho as RelationAggregateConstraint, Hr as DatabaseValue, Hs as SchemaIndex, Ht as supportsDatabaseMigrationState, I as PRISMA_ENUM_REGEX, Ia as Serializable, Ii as ArkormDebugHandler, In as MigrateCommand, Ir as AggregateSelection, Is as PrismaMigrationWorkflowOptions, It as markMigrationApplied, J as buildIndexLine, Ja as QueryBuilder, Ji as DelegateSelect, Jn as RegisteredFactory, Jo as RelationDefaultValue, Jr as QueryComparisonCondition, Js as SchemaUniqueConstraint, Jt as PersistedTableMetadata, K as buildEnumBlock, Ka as JoinOn, Ki as DelegateRow, Kn as Arkorm, Ko as RelationConstraint, Kr as InsertSpec, Ks as SchemaTableCreateOperation, Kt as PersistedMetadataFeatures, L as PRISMA_MODEL_REGEX, La as SimplePaginationMeta, Li as CastDefinition, Ln as MakeSeederCommand, Lr as AggregateSpec, Ls as PrismaSchemaSyncOptions, Lt as markMigrationRun, M as resetArkormRuntimeForTests, Ma as QuerySchemaUpdateData, Mi as AdapterQueryInspection, Mn as ModelsSyncCommand, Mr as AdapterModelStructure, Ms as GeneratedMigrationFile, Mt as findAppliedMigration, N as runArkormTransaction, Na as QuerySchemaWhere, Ni as ArkormBootContext, Nn as MigrationHistoryCommand, Nr as AdapterQueryOperation, Ns as MigrationClass, Nt as getLastMigrationRun, O as isDelegateLike, Oa as QuerySchemaRows, Oi as UpdateManySpec, On as EnumBuilder, Or as AdapterDatabaseCreationResult, Os as AppliedMigrationEntry, Ot as buildMigrationRunId, P as PrimaryKeyGenerationPlanner, Pa as RawSelectInput, Pi as ArkormConfig, Pn as MigrateRollbackCommand, Pr as AdapterTransactionContext, Ps as MigrationInstanceLike, Pt as getLatestAppliedMigrations, Q as buildPrimaryKeyLine, Qa as AttributeQuerySchema, Qi as DelegateWhere, Qn as RuntimePathKey, Qo as RelationTableLookupSpec, Qr as QueryExistsCondition, Qt as deletePersistedColumnMappingsState, R as applyAlterTableOperation, Ra as SoftDeleteConfig, Ri as CastHandler, Rn as MakeModelCommand, Rr as DatabaseAdapter, Rs as SchemaColumn, Rt as readAppliedMigrationsState, S as getRuntimeClient, Sa as PrismaTransactionOptions, Si as RelationFilterSpec, Sn as ArkormErrorContext, So as QuerySchemaForModelInstance, Sr as createPrismaCompatibilityAdapter, Ss as MorphOneRelationMetadata, St as supportsDatabaseCreation, T as getRuntimePaginationURLDriverFactory, Ta as QuerySchemaInclude, Ti as SelectSpec, Tn as MIGRATION_BRAND, To as InlineFactory, Tr as createKyselyAdapter, Ts as PivotModelStatic, Tt as toMigrationFileSlug, U as applyMigrationToDatabase, Ua as ModelStatic, Ui as DelegateFindManyArgs, Un as resolveCast, Uo as RelationAggregateInput, Ur as DeleteManySpec, Us as SchemaOperation, Ut as writeAppliedMigrationsState, V as applyMigrationRollbackToDatabase, Va as TransactionContext, Vi as ClientResolver, Vn as InitCommand, Vr as DatabaseRows, Vs as SchemaForeignKeyAction, Vt as resolveMigrationStateFilePath, W as applyMigrationToPrismaSchema, Wa as RelationshipModelStatic, Wi as DelegateInclude, Wn as Attribute, Wo as RelationAggregateType, Wr as DeleteSpec, Ws as SchemaPrimaryKey, Wt as writeAppliedMigrationsStateToStore, X as buildMigrationSource, Xa as AttributeCreateInput, Xi as DelegateUpdateArgs, Xn as RuntimeConstructor, Xo as RelationResult, Xr as QueryCondition, Xs as TimestampNames, Xt as applyOperationsToPersistedColumnMappingsState, Y as buildInverseRelationLine, Ya as JoinClause, Yi as DelegateUniqueWhere, Yn as RegisteredModel, Yo as RelationMetadataProvider, Yr as QueryComparisonOperator, Ys as TimestampColumnBehavior, Yt as PersistedTimestampColumn, Z as buildModelBlock, Za as AttributeOrderBy, Zi as DelegateUpdateData, Zn as RuntimePathInput, Zo as RelationResultCache, Zr as QueryDayCondition, Zs as TimestampNaming, Zt as createEmptyPersistedColumnMappingsState, _ as ensureArkormConfigLoading, _a as PrismaLikeSortOrder, _i as QuerySelectColumn, _n as QueryExecutionException, _o as ModelRelationshipKey, _r as SeederCallArgument, _s as HasManyThroughRelationMetadata, _t as resolveMigrationClassName, a as getRuntimeCompatibilityAdapter, aa as PaginationCurrentPageResolver, ai as QueryJoinNestedConstraint, an as readPersistedColumnMappingsState, ao as ModelAttributeValue, ar as loadFactoriesFrom, as as FactoryDefinition, at as deriveRelationFieldName, b as getDefaultStubsPath, ba as PrismaTransactionCapableClient, bi as RawQuerySpec, bn as ModelNotFoundException, bo as ModelWhereInput, br as PrismaDatabaseAdapter, bs as ModelMetadata, bt as runPrismaCommand, c as PrismaDelegateMap, ca as PaginationURLDriver, ci as QueryJoinType, cn as resolveColumnMappingsFilePath, co as ModelCreateData, cr as loadSeedersFrom, cs as FactoryRelationshipResolver, ct as findEnumBlock, d as inferDelegateName, da as PrismaDelegateLike, di as QueryJsonConditionKind, dn as validatePersistedMetadataFeaturesForMigrations, do as ModelEventHandler, dr as registerModels, ds as DatabaseTableOptions, dt as formatEnumDefaultValue, ea as EagerLoadMap, ei as QueryGroupCondition, en as getPersistedEnumMap, eo as AttributeSelect, er as getRegisteredFactories, es as Paginator, et as buildUniqueConstraintLine, f as awaitConfiguredModelsRegistration, fa as PrismaFindManyArgsLike, fi as QueryLogicalOperator, fn as writePersistedColumnMappingsState, fo as ModelEventHandlerConstructor, fr as registerPaths, fs as DatabaseTablePersistedMetadataOptions, ft as formatRelationAction, g as emitRuntimeDebugEvent, ga as PrismaLikeSelect, gi as QueryScalarComparisonOperator, gn as RelationResolutionException, go as ModelOrderByInput, gr as Seeder, gs as HasManyRelationMetadata, gt as resolveEnumName, h as defineConfig, ha as PrismaLikeScalarFilter, hi as QueryRawCondition, hn as ScopeNotDefinedException, ho as ModelLifecycleState, hr as SEEDER_BRAND, hs as ColumnMap, ht as pad, i as RuntimeModuleLoader, ia as NamingCase, ii as QueryJoinConstraint, in as getPersistedTimestampColumns, io as GlobalScope, ir as getRegisteredSeeders, is as FactoryCallback, it as deriveRelationAlias, j as loadArkormConfig, ja as QuerySchemaUpdateArgs, ji as AdapterBindableModel, jn as SeedCommand, jr as AdapterModelIntrospectionOptions, js as GenerateMigrationOptions, jt as deleteAppliedMigrationsStateFromStore, k as isQuerySchemaLike, ka as QuerySchemaSelect, ki as UpdateSpec, kn as TableBuilder, kr as AdapterInspectionRequest, ks as AppliedMigrationRun, kt as computeMigrationChecksum, l as createPrismaAdapter, la as PaginationURLDriverFactory, li as QueryJoinValueConstraint, ln as resolvePersistedMetadataFeatures, lo as ModelDeclaredAttributeKey, lr as registerFactories, ls as FactoryState, lt as findModelBlock, m as configureArkormRuntime, ma as PrismaLikeOrderBy, mi as QueryOrderBy, mn as UniqueConstraintResolutionException, mo as ModelEventName, mr as resetRuntimeRegistryForTests, ms as BelongsToRelationMetadata, mt as getMigrationPlan, n as PivotModel, na as ModelQuerySchemaLike, ni as QueryJoinBoolean, nn as getPersistedPrimaryKeyGeneration, no as AttributeWhereInput, nr as getRegisteredModels, ns as FactoryAttributeResolver, nt as deriveCollectionFieldName, o as resolveRuntimeCompatibilityQuerySchema, oa as PaginationMeta, oi as QueryJoinNullConstraint, on as rebuildPersistedColumnMappingsState, oo as ModelAttributes, or as loadMigrationsFrom, os as FactoryDefinitionAttributes, ot as deriveSingularFieldName, p as bindAdapterToModels, pa as PrismaLikeInclude, pi as QueryNotCondition, pn as UnsupportedAdapterFeatureException, po as ModelEventListener, pr as registerSeeders, ps as BelongsToManyRelationMetadata, pt as generateMigrationFile, q as buildFieldLine, qa as JoinSource, qi as DelegateRows, qn as Arkormx, qo as RelationDefaultResolver, qr as QueryColumnComparisonCondition, qs as SchemaTableDropOperation, qt as PersistedPrimaryKeyGeneration, r as LoadedRuntimeModule, ra as ModelTableCase, ri as QueryJoinColumnConstraint, rn as getPersistedTableMetadata, ro as DelegateForModelSchema, rr as getRegisteredPaths, rs as FactoryAttributes, rt as deriveInverseRelationAlias, s as resolveRuntimeCompatibilityQuerySchemaOrThrow, sa as PaginationOptions, si as QueryJoinRawConstraint, sn as resetPersistedColumnMappingsCache, so as ModelAttributesOf, sr as loadModelsFrom, ss as FactoryModelConstructor, st as escapeRegex, t as URLDriver, ta as GetUserConfig, ti as QueryJoin, tn as getPersistedEnumTsType, to as AttributeUpdateInput, tr as getRegisteredMigrations, ts as ArkormCollection, tt as createMigrationTimestamp, u as createPrismaDelegateMap, ua as PrismaClientLike, ui as QueryJsonCondition, un as syncPersistedColumnMappingsFromState, uo as ModelEventDispatcher, ur as registerMigrations, us as MaybePromise, ut as formatDefaultValue, v as getActiveTransactionAdapter, va as PrismaLikeWhereInput, vi as QueryTarget, vn as QueryExecutionExceptionContext, vo as ModelRelationshipResult, vr as SeederConstructor, vs as HasOneRelationMetadata, vt as resolvePrismaType, w as getRuntimePaginationCurrentPageResolver, wa as QuerySchemaFindManyArgs, wi as RelationLoadSpec, wn as DB, wo as Model, wr as KyselyDatabaseAdapter, ws as MorphToRelationMetadata, wt as supportsDatabaseReset, x as getRuntimeAdapter, xa as PrismaTransactionContext, xi as RelationAggregateSpec, xn as MissingDelegateException, xo as QuerySchemaForModel, xr as PrismaDelegateNameMapping, xs as MorphManyRelationMetadata, xt as stripPrismaSchemaModelsAndEnums, y as getActiveTransactionClient, ya as PrismaTransactionCallback, yi as QueryTimeCondition, yn as QueryConstraintException, yo as ModelUpdateData, yr as SeederInput, ys as HasOneThroughRelationMetadata, yt as runMigrationWithPrisma, z as applyCreateTableOperation, za as TransactionCallback, zi as CastMap, zn as MakeMigrationCommand, zr as DatabasePrimitive, zs as SchemaColumnType, zt as readAppliedMigrationsStateFromStore } from "./index-C7r00xN5.mjs";
|
|
2
|
-
export { AdapterBindableModel, AdapterCapabilities, AdapterCapability, AdapterDatabaseCreationResult, AdapterInspectionRequest, AdapterModelFieldStructure, AdapterModelIntrospectionOptions, AdapterModelStructure, AdapterQueryInspection, AdapterQueryOperation, AdapterTransactionContext, 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, CastDefinition, CastHandler, CastMap, CastType, CliApp, ClientResolver, 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, FactoryAttributeResolver, FactoryAttributes, FactoryCallback, FactoryDefinition, FactoryDefinitionAttributes, FactoryModelConstructor, FactoryRelationshipResolver, FactoryState, ForeignKeyBuilder, GenerateMigrationOptions, GeneratedMigrationFile, GetUserConfig, GlobalScope, HasManyRelationMetadata, HasManyThroughRelationMetadata, HasOneRelationMetadata, HasOneThroughRelationMetadata, InitCommand, InlineFactory, InsertManySpec, InsertSpec, JoinClause, JoinOn, JoinSource, 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, 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, QueryFullTextCondition, 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, RawQuerySpec, RawSelectInput, RegisteredFactory, RegisteredModel, RelatedModelClass, 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, applyAlterTableOperation, applyCreateTableOperation, applyDropTableOperation, applyMigrationRollbackToDatabase, applyMigrationRollbackToPrismaSchema, applyMigrationToDatabase, applyMigrationToPrismaSchema, applyOperationsToPersistedColumnMappingsState, applyOperationsToPrismaSchema, awaitConfiguredModelsRegistration, bindAdapterToModels, buildEnumBlock, buildFieldLine, buildIndexLine, buildInverseRelationLine, buildMigrationIdentity, buildMigrationRunId, buildMigrationSource, buildModelBlock, buildPrimaryKeyLine, buildRelationLine, buildUniqueConstraintLine, computeMigrationChecksum, configureArkormRuntime, createEmptyAppliedMigrationsState, createEmptyPersistedColumnMappingsState, createKyselyAdapter, createMigrationTimestamp, createPrismaAdapter, createPrismaCompatibilityAdapter, createPrismaDatabaseAdapter, createPrismaDelegateMap, defineConfig, defineFactory, deleteAppliedMigrationsStateFromStore, deletePersistedColumnMappingsState, deriveCollectionFieldName, deriveInverseRelationAlias, deriveRelationAlias, deriveRelationFieldName, deriveSingularFieldName, emitRuntimeDebugEvent, ensureArkormConfigLoading, escapeRegex, findAppliedMigration, findEnumBlock, findModelBlock, formatDefaultValue, formatEnumDefaultValue, formatRelationAction, 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, loadArkormConfig, loadFactoriesFrom, loadMigrationsFrom, loadModelsFrom, loadSeedersFrom, markMigrationApplied, markMigrationRun, pad, readAppliedMigrationsState, readAppliedMigrationsStateFromStore, readPersistedColumnMappingsState, rebuildPersistedColumnMappingsState, registerFactories, registerMigrations, registerModels, registerPaths, registerSeeders, removeAppliedMigration, resetArkormRuntimeForTests, resetPersistedColumnMappingsCache, resetRuntimeRegistryForTests, resolveCast, resolveColumnMappingsFilePath, resolveEnumName, resolveMigrationClassName, resolveMigrationStateFilePath, resolvePersistedMetadataFeatures, resolvePrismaType, resolveRuntimeCompatibilityQuerySchema, resolveRuntimeCompatibilityQuerySchemaOrThrow, runArkormTransaction, runMigrationWithPrisma, runPrismaCommand, stripPrismaSchemaModelsAndEnums, supportsDatabaseCreation, supportsDatabaseMigrationExecution, supportsDatabaseMigrationState, supportsDatabaseReset, syncPersistedColumnMappingsFromState, toMigrationFileSlug, toModelName, validatePersistedMetadataFeaturesForMigrations, writeAppliedMigrationsState, writeAppliedMigrationsStateToStore, writePersistedColumnMappingsState };
|
|
1
|
+
import { $ as buildRelationLine, $a as DelegateForModelSchema, $i as EagerLoadConstraint, $n as RuntimePathMap, $o as RelatedModelFromResult, $r as QueryFullTextCondition, $s as TimestampNames, $t as getPersistedColumnMap, A as isTransactionCapableClient, Aa as QuerySchemaUniqueWhere, Ai as UpsertSpec, An as ForeignKeyBuilder, Ar as AdapterModelFieldStructure, As as RelationMetadataType, At as createEmptyAppliedMigrationsState, B as applyDropTableOperation, Ba as TransactionCapableClient, Bi as CastType, Bn as MakeFactoryCommand, Bo as RelationAggregateType, Br as DatabaseRow, Bs as PrismaSchemaSyncOptions, Bt as removeAppliedMigration, C as getRuntimeDebugHandler, Ca as QuerySchemaCreateData, Ci as RelationLoadPlan, Cn as ArkormException, Co as defineFactory, Cr as createPrismaDatabaseAdapter, Cs as ModelMetadata, Ct as supportsDatabaseMigrationExecution, D as getUserConfig, Da as QuerySchemaRow, Di as SortDirection, Dn as SchemaBuilder, Dr as AdapterCapability, Ds as MorphToRelationMetadata, Dt as buildMigrationIdentity, E as getRuntimePrismaClient, Ea as QuerySchemaOrderBy, Ei as SoftDeleteQueryMode, En as Migration, Er as AdapterCapabilities, Es as MorphToManyRelationMetadata, Et as toModelName, F as PRISMA_ENUM_MEMBER_REGEX, Fa as RuntimeClientLike, Fi as ArkormDebugEvent, Fn as MigrateFreshCommand, Fr as AggregateOperation, Fs as GeneratedMigrationFile, Ft as isMigrationApplied, G as applyOperationsToPrismaSchema, Ga as QueryBuilder, Gi as DelegateOrderBy, Gn as AttributeOptions, Go as RelationMetadataProvider, Gr as InsertManySpec, Gs as SchemaIndex, Gt as PersistedColumnMappingsState, H as applyMigrationRollbackToPrismaSchema, Ha as TransactionOptions, Hi as DelegateCreateData, Hn as CliApp, Ho as RelationConstraint, Hr as DatabaseValue, Hs as SchemaColumnType, Ht as supportsDatabaseMigrationState, I as PRISMA_ENUM_REGEX, Ia as Serializable, Ii as ArkormDebugHandler, In as MigrateCommand, Ir as AggregateSelection, Is as MigrationClass, It as markMigrationApplied, J as buildIndexLine, Ja as AttributeQuerySchema, Ji as DelegateSelect, Jn as RegisteredFactory, Jo as RelationTableLookupSpec, Jr as QueryComparisonCondition, Js as SchemaTableAlterOperation, Jt as PersistedTableMetadata, K as buildEnumBlock, Ka as AttributeCreateInput, Ki as DelegateRow, Kn as Arkorm, Ko as RelationResult, Kr as InsertSpec, Ks as SchemaOperation, Kt as PersistedMetadataFeatures, L as PRISMA_MODEL_REGEX, La as SimplePaginationMeta, Li as CastDefinition, Ln as MakeSeederCommand, Lr as AggregateSpec, Ls as MigrationInstanceLike, Lt as markMigrationRun, M as resetArkormRuntimeForTests, Ma as QuerySchemaUpdateData, Mi as AdapterQueryInspection, Mn as ModelsSyncCommand, Mr as AdapterModelStructure, Ms as AppliedMigrationRun, Mt as findAppliedMigration, N as runArkormTransaction, Na as QuerySchemaWhere, Ni as ArkormBootContext, Nn as MigrationHistoryCommand, Nr as AdapterQueryOperation, Ns as AppliedMigrationsState, Nt as getLastMigrationRun, O as isDelegateLike, Oa as QuerySchemaRows, Oi as UpdateManySpec, On as EnumBuilder, Or as AdapterDatabaseCreationResult, Os as PivotModelStatic, Ot as buildMigrationRunId, P as PrimaryKeyGenerationPlanner, Pa as RawSelectInput, Pi as ArkormConfig, Pn as MigrateRollbackCommand, Pr as AdapterTransactionContext, Ps as GenerateMigrationOptions, Pt as getLatestAppliedMigrations, Q as buildPrimaryKeyLine, Qa as AttributeWhereInput, Qi as DelegateWhere, Qn as RuntimePathKey, Qo as RelatedModelForRelationship, Qr as QueryExistsCondition, Qs as TimestampColumnBehavior, Qt as deletePersistedColumnMappingsState, R as applyAlterTableOperation, Ra as SoftDeleteConfig, Ri as CastHandler, Rn as MakeModelCommand, Ro as RelationAggregateConstraint, Rr as DatabaseAdapter, Rs as PrimaryKeyGeneration, Rt as readAppliedMigrationsState, S as getRuntimeClient, Sa as PrismaTransactionOptions, Si as RelationFilterSpec, Sn as ArkormErrorContext, So as ModelFactory, Sr as createPrismaCompatibilityAdapter, Ss as HasOneThroughRelationMetadata, St as supportsDatabaseCreation, T as getRuntimePaginationURLDriverFactory, Ta as QuerySchemaInclude, Ti as SelectSpec, Tn as MIGRATION_BRAND, Tr as createKyselyAdapter, Ts as MorphOneRelationMetadata, Tt as toMigrationFileSlug, U as applyMigrationToDatabase, Ua as ModelStatic, Ui as DelegateFindManyArgs, Un as resolveCast, Uo as RelationDefaultResolver, Ur as DeleteManySpec, Us as SchemaForeignKey, Ut as writeAppliedMigrationsState, V as applyMigrationRollbackToDatabase, Va as TransactionContext, Vi as ClientResolver, Vn as InitCommand, Vo as RelationColumnLookupSpec, Vr as DatabaseRows, Vs as SchemaColumn, Vt as resolveMigrationStateFilePath, W as applyMigrationToPrismaSchema, Wa as RelationshipModelStatic, Wi as DelegateInclude, Wn as Attribute, Wo as RelationDefaultValue, Wr as DeleteSpec, Ws as SchemaForeignKeyAction, Wt as writeAppliedMigrationsStateToStore, X as buildMigrationSource, Xa as AttributeSelect, Xi as DelegateUpdateArgs, Xn as RuntimeConstructor, Xo as JoinOn, Xr as QueryCondition, Xs as SchemaTableDropOperation, Xt as applyOperationsToPersistedColumnMappingsState, Y as buildInverseRelationLine, Ya as AttributeSchemaDelegate, Yi as DelegateUniqueWhere, Yn as RegisteredModel, Yo as EagerLoadRelations, Yr as QueryComparisonOperator, Ys as SchemaTableCreateOperation, Yt as PersistedTimestampColumn, Z as buildModelBlock, Za as AttributeUpdateInput, Zi as DelegateUpdateData, Zn as RuntimePathInput, Zo as JoinSource, Zr as QueryDayCondition, Zs as SchemaUniqueConstraint, Zt as createEmptyPersistedColumnMappingsState, _ as ensureArkormConfigLoading, _a as PrismaLikeSortOrder, _i as QuerySelectColumn, _n as QueryExecutionException, _o as QuerySchemaForModel, _r as SeederCallArgument, _s as BelongsToRelationMetadata, _t as resolveMigrationClassName, a as getRuntimeCompatibilityAdapter, aa as PaginationCurrentPageResolver, ai as QueryJoinNestedConstraint, an as readPersistedColumnMappingsState, ao as ModelDeclaredAttributeKey, ar as loadFactoriesFrom, as as FactoryAttributeResolver, at as deriveRelationFieldName, b as getDefaultStubsPath, ba as PrismaTransactionCapableClient, bi as RawQuerySpec, bn as ModelNotFoundException, bo as Model, br as PrismaDatabaseAdapter, bs as HasManyThroughRelationMetadata, bt as runPrismaCommand, c as PrismaDelegateMap, ca as PaginationURLDriver, ci as QueryJoinType, cn as resolveColumnMappingsFilePath, co as ModelEventHandlerConstructor, cr as loadSeedersFrom, cs as FactoryDefinition, ct as findEnumBlock, d as inferDelegateName, da as PrismaDelegateLike, di as QueryJsonConditionKind, dn as validatePersistedMetadataFeaturesForMigrations, do as ModelLifecycleState, dr as registerModels, ds as FactoryRelationshipResolver, dt as formatEnumDefaultValue, ea as EagerLoadMap, ec as TimestampNaming, ei as QueryGroupCondition, en as getPersistedEnumMap, eo as GlobalScope, er as getRegisteredFactories, es as WhereCallback, et as buildUniqueConstraintLine, f as awaitConfiguredModelsRegistration, fa as PrismaFindManyArgsLike, fi as QueryLogicalOperator, fn as writePersistedColumnMappingsState, fo as ModelOrderByInput, fr as registerPaths, fs as FactoryState, ft as formatRelationAction, g as emitRuntimeDebugEvent, ga as PrismaLikeSelect, gi as QueryScalarComparisonOperator, gn as RelationResolutionException, go as ModelWhereInput, gr as Seeder, gs as BelongsToManyRelationMetadata, gt as resolveEnumName, h as defineConfig, ha as PrismaLikeScalarFilter, hi as QueryRawCondition, hn as ScopeNotDefinedException, ho as ModelUpdateData, hr as SEEDER_BRAND, hs as DatabaseTablePersistedMetadataOptions, ht as pad, i as RuntimeModuleLoader, ia as NamingCase, ii as QueryJoinConstraint, in as getPersistedTimestampColumns, io as ModelCreateData, ir as getRegisteredSeeders, is as ArkormCollection, it as deriveRelationAlias, j as loadArkormConfig, ja as QuerySchemaUpdateArgs, ji as AdapterBindableModel, jn as SeedCommand, jr as AdapterModelIntrospectionOptions, js as AppliedMigrationEntry, jt as deleteAppliedMigrationsStateFromStore, k as isQuerySchemaLike, ka as QuerySchemaSelect, ki as UpdateSpec, kn as TableBuilder, kr as AdapterInspectionRequest, ks as RelationMetadata, kt as computeMigrationChecksum, l as createPrismaAdapter, la as PaginationURLDriverFactory, li as QueryJoinValueConstraint, ln as resolvePersistedMetadataFeatures, lo as ModelEventListener, lr as registerFactories, ls as FactoryDefinitionAttributes, lt as findModelBlock, m as configureArkormRuntime, ma as PrismaLikeOrderBy, mi as QueryOrderBy, mn as UniqueConstraintResolutionException, mo as ModelRelationshipResult, mr as resetRuntimeRegistryForTests, ms as DatabaseTableOptions, mt as getMigrationPlan, n as PivotModel, na as ModelQuerySchemaLike, ni as QueryJoinBoolean, nn as getPersistedPrimaryKeyGeneration, no as ModelAttributes, nr as getRegisteredModels, ns as LengthAwarePaginator, nt as deriveCollectionFieldName, o as resolveRuntimeCompatibilityQuerySchema, oa as PaginationMeta, oi as QueryJoinNullConstraint, on as rebuildPersistedColumnMappingsState, oo as ModelEventDispatcher, or as loadMigrationsFrom, os as FactoryAttributes, ot as deriveSingularFieldName, p as bindAdapterToModels, pa as PrismaLikeInclude, pi as QueryNotCondition, pn as UnsupportedAdapterFeatureException, po as ModelRelationshipKey, pr as registerSeeders, ps as MaybePromise, pt as generateMigrationFile, q as buildFieldLine, qa as AttributeOrderBy, qi as DelegateRows, qn as Arkormx, qo as RelationResultCache, qr as QueryColumnComparisonCondition, qs as SchemaPrimaryKey, qt as PersistedPrimaryKeyGeneration, r as LoadedRuntimeModule, ra as ModelTableCase, ri as QueryJoinColumnConstraint, rn as getPersistedTableMetadata, ro as ModelAttributesOf, rr as getRegisteredPaths, rs as Paginator, rt as deriveInverseRelationAlias, s as resolveRuntimeCompatibilityQuerySchemaOrThrow, sa as PaginationOptions, si as QueryJoinRawConstraint, sn as resetPersistedColumnMappingsCache, so as ModelEventHandler, sr as loadModelsFrom, ss as FactoryCallback, st as escapeRegex, t as URLDriver, ta as GetUserConfig, ti as QueryJoin, tn as getPersistedEnumTsType, to as ModelAttributeValue, tr as getRegisteredMigrations, ts as JoinClause, tt as createMigrationTimestamp, u as createPrismaDelegateMap, ua as PrismaClientLike, ui as QueryJsonCondition, un as syncPersistedColumnMappingsFromState, uo as ModelEventName, ur as registerMigrations, us as FactoryModelConstructor, ut as formatDefaultValue, v as getActiveTransactionAdapter, va as PrismaLikeWhereInput, vi as QueryTarget, vn as QueryExecutionExceptionContext, vo as QuerySchemaForModelInstance, vr as SeederConstructor, vs as ColumnMap, vt as resolvePrismaType, w as getRuntimePaginationCurrentPageResolver, wa as QuerySchemaFindManyArgs, wi as RelationLoadSpec, wn as DB, wr as KyselyDatabaseAdapter, ws as MorphManyRelationMetadata, wt as supportsDatabaseReset, x as getRuntimeAdapter, xa as PrismaTransactionContext, xi as RelationAggregateSpec, xn as MissingDelegateException, xo as InlineFactory, xr as PrismaDelegateNameMapping, xs as HasOneRelationMetadata, xt as stripPrismaSchemaModelsAndEnums, y as getActiveTransactionClient, ya as PrismaTransactionCallback, yi as QueryTimeCondition, yn as QueryConstraintException, yo as RelatedModelClass, yr as SeederInput, ys as HasManyRelationMetadata, yt as runMigrationWithPrisma, z as applyCreateTableOperation, za as TransactionCallback, zi as CastMap, zn as MakeMigrationCommand, zo as RelationAggregateInput, zr as DatabasePrimitive, zs as PrismaMigrationWorkflowOptions, zt as readAppliedMigrationsStateFromStore } from "./index-CFXreeV7.mjs";
|
|
2
|
+
export { AdapterBindableModel, AdapterCapabilities, AdapterCapability, AdapterDatabaseCreationResult, AdapterInspectionRequest, AdapterModelFieldStructure, AdapterModelIntrospectionOptions, AdapterModelStructure, AdapterQueryInspection, AdapterQueryOperation, AdapterTransactionContext, 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, CastDefinition, CastHandler, CastMap, CastType, CliApp, ClientResolver, 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, FactoryAttributeResolver, FactoryAttributes, FactoryCallback, FactoryDefinition, FactoryDefinitionAttributes, FactoryModelConstructor, FactoryRelationshipResolver, FactoryState, ForeignKeyBuilder, GenerateMigrationOptions, GeneratedMigrationFile, GetUserConfig, GlobalScope, HasManyRelationMetadata, HasManyThroughRelationMetadata, HasOneRelationMetadata, HasOneThroughRelationMetadata, InitCommand, InlineFactory, InsertManySpec, InsertSpec, JoinClause, JoinOn, JoinSource, 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, 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, QueryFullTextCondition, 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, 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, WhereCallback, applyAlterTableOperation, applyCreateTableOperation, applyDropTableOperation, applyMigrationRollbackToDatabase, applyMigrationRollbackToPrismaSchema, applyMigrationToDatabase, applyMigrationToPrismaSchema, applyOperationsToPersistedColumnMappingsState, applyOperationsToPrismaSchema, awaitConfiguredModelsRegistration, bindAdapterToModels, buildEnumBlock, buildFieldLine, buildIndexLine, buildInverseRelationLine, buildMigrationIdentity, buildMigrationRunId, buildMigrationSource, buildModelBlock, buildPrimaryKeyLine, buildRelationLine, buildUniqueConstraintLine, computeMigrationChecksum, configureArkormRuntime, createEmptyAppliedMigrationsState, createEmptyPersistedColumnMappingsState, createKyselyAdapter, createMigrationTimestamp, createPrismaAdapter, createPrismaCompatibilityAdapter, createPrismaDatabaseAdapter, createPrismaDelegateMap, defineConfig, defineFactory, deleteAppliedMigrationsStateFromStore, deletePersistedColumnMappingsState, deriveCollectionFieldName, deriveInverseRelationAlias, deriveRelationAlias, deriveRelationFieldName, deriveSingularFieldName, emitRuntimeDebugEvent, ensureArkormConfigLoading, escapeRegex, findAppliedMigration, findEnumBlock, findModelBlock, formatDefaultValue, formatEnumDefaultValue, formatRelationAction, 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, loadArkormConfig, loadFactoriesFrom, loadMigrationsFrom, loadModelsFrom, loadSeedersFrom, markMigrationApplied, markMigrationRun, pad, readAppliedMigrationsState, readAppliedMigrationsStateFromStore, readPersistedColumnMappingsState, rebuildPersistedColumnMappingsState, registerFactories, registerMigrations, registerModels, registerPaths, registerSeeders, removeAppliedMigration, resetArkormRuntimeForTests, resetPersistedColumnMappingsCache, resetRuntimeRegistryForTests, resolveCast, resolveColumnMappingsFilePath, resolveEnumName, resolveMigrationClassName, resolveMigrationStateFilePath, resolvePersistedMetadataFeatures, resolvePrismaType, resolveRuntimeCompatibilityQuerySchema, resolveRuntimeCompatibilityQuerySchemaOrThrow, runArkormTransaction, runMigrationWithPrisma, runPrismaCommand, stripPrismaSchemaModelsAndEnums, supportsDatabaseCreation, supportsDatabaseMigrationExecution, supportsDatabaseMigrationState, supportsDatabaseReset, syncPersistedColumnMappingsFromState, toMigrationFileSlug, toModelName, validatePersistedMetadataFeaturesForMigrations, writeAppliedMigrationsState, writeAppliedMigrationsStateToStore, writePersistedColumnMappingsState };
|
package/dist/index.mjs
CHANGED
|
@@ -4405,24 +4405,37 @@ var QueryBuilder = class QueryBuilder {
|
|
|
4405
4405
|
if (typeof resolvedPage !== "number" || !Number.isFinite(resolvedPage)) return 1;
|
|
4406
4406
|
return Math.max(1, resolvedPage);
|
|
4407
4407
|
}
|
|
4408
|
+
where(whereOrCallback) {
|
|
4409
|
+
if (typeof whereOrCallback === "function") return this.appendNestedWhere("AND", whereOrCallback);
|
|
4410
|
+
return this.addLogicalWhere("AND", whereOrCallback);
|
|
4411
|
+
}
|
|
4412
|
+
orWhere(whereOrCallback) {
|
|
4413
|
+
if (typeof whereOrCallback === "function") return this.appendNestedWhere("OR", whereOrCallback);
|
|
4414
|
+
return this.addLogicalWhere("OR", whereOrCallback);
|
|
4415
|
+
}
|
|
4408
4416
|
/**
|
|
4409
|
-
*
|
|
4410
|
-
* the clauses with AND logic.
|
|
4411
|
-
*
|
|
4412
|
-
* @param where
|
|
4413
|
-
* @returns
|
|
4417
|
+
* Resolve a callback into a parenthesized group condition and append it.
|
|
4414
4418
|
*/
|
|
4415
|
-
|
|
4416
|
-
|
|
4419
|
+
appendNestedWhere(boolean, callback) {
|
|
4420
|
+
const nested = new QueryBuilder(this.model, this.adapter);
|
|
4421
|
+
callback(nested);
|
|
4422
|
+
const condition = nested.getNestedWhereCondition();
|
|
4423
|
+
if (!condition) return this;
|
|
4424
|
+
const grouped = condition.type === "group" ? condition : {
|
|
4425
|
+
type: "group",
|
|
4426
|
+
operator: "and",
|
|
4427
|
+
conditions: [condition]
|
|
4428
|
+
};
|
|
4429
|
+
this.appendQueryCondition(boolean, grouped);
|
|
4430
|
+
return this;
|
|
4417
4431
|
}
|
|
4418
4432
|
/**
|
|
4419
|
-
*
|
|
4420
|
-
*
|
|
4421
|
-
* @param where
|
|
4422
|
-
* @returns
|
|
4433
|
+
* Returns the user-authored where condition for nesting, excluding any
|
|
4434
|
+
* soft-delete predicate (the parent query owns that).
|
|
4423
4435
|
*/
|
|
4424
|
-
|
|
4425
|
-
return this.
|
|
4436
|
+
getNestedWhereCondition() {
|
|
4437
|
+
if (this.legacyWhere) return this.tryBuildQueryCondition(this.legacyWhere) ?? void 0;
|
|
4438
|
+
return this.queryWhere;
|
|
4426
4439
|
}
|
|
4427
4440
|
/**
|
|
4428
4441
|
* Adds a NOT where clause to the query.
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Ao as
|
|
1
|
+
import { Ao as HasOneRelation, Do as MorphOneRelation, Eo as MorphToManyRelation, Fo as BelongsToManyRelation, Io as Relation, Lo as RelationTableLoader, Mo as HasManyRelation, No as BelongsToRelation, Oo as MorphManyRelation, Po as SingleResultRelation, To as MorphToRelation, jo as HasManyThroughRelation, ko as HasOneThroughRelation, wo as SetBasedEagerLoader } from "../index-18M5gEFk.cjs";
|
|
2
2
|
export { BelongsToManyRelation, BelongsToRelation, HasManyRelation, HasManyThroughRelation, HasOneRelation, HasOneThroughRelation, MorphManyRelation, MorphOneRelation, MorphToManyRelation, MorphToRelation, Relation, RelationTableLoader, SetBasedEagerLoader, SingleResultRelation };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Ao as
|
|
1
|
+
import { Ao as HasOneRelation, Do as MorphOneRelation, Eo as MorphToManyRelation, Fo as BelongsToManyRelation, Io as Relation, Lo as RelationTableLoader, Mo as HasManyRelation, No as BelongsToRelation, Oo as MorphManyRelation, Po as SingleResultRelation, To as MorphToRelation, jo as HasManyThroughRelation, ko as HasOneThroughRelation, wo as SetBasedEagerLoader } from "../index-CFXreeV7.mjs";
|
|
2
2
|
export { BelongsToManyRelation, BelongsToRelation, HasManyRelation, HasManyThroughRelation, HasOneRelation, HasOneThroughRelation, MorphManyRelation, MorphOneRelation, MorphToManyRelation, MorphToRelation, Relation, RelationTableLoader, SetBasedEagerLoader, SingleResultRelation };
|