pqb 0.28.0 → 0.29.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +83 -99
- package/dist/index.js +134 -131
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +134 -131
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -290,10 +290,13 @@ interface WindowDeclaration {
|
|
|
290
290
|
}
|
|
291
291
|
type UnionItem = Query | Expression;
|
|
292
292
|
type UnionKind = 'UNION' | 'UNION ALL' | 'INTERSECT' | 'INTERSECT ALL' | 'EXCEPT' | 'EXCEPT ALL';
|
|
293
|
-
type
|
|
293
|
+
type OnConflictTarget = string | string[] | Expression | {
|
|
294
294
|
constraint: string;
|
|
295
295
|
};
|
|
296
|
-
type
|
|
296
|
+
type OnConflictSet = RecordUnknown | Expression;
|
|
297
|
+
type OnConflictMerge = string | string[] | {
|
|
298
|
+
except: string | string[];
|
|
299
|
+
};
|
|
297
300
|
|
|
298
301
|
interface Operator<Value, Column extends PickOutputTypeAndOperators = PickOutputTypeAndOperators> {
|
|
299
302
|
<T extends PickQueryResult>(this: T, arg: Value): Omit<SetQueryReturnsColumnOrThrow<T, Column>, keyof T['result']['value']['operators']> & Column['operators'];
|
|
@@ -487,12 +490,9 @@ type InsertQueryData = CommonQueryData & {
|
|
|
487
490
|
using?: JoinItem[];
|
|
488
491
|
join?: JoinItem[];
|
|
489
492
|
onConflict?: {
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
type: 'merge';
|
|
494
|
-
expr?: OnConflictItem;
|
|
495
|
-
update?: OnConflictMergeUpdate;
|
|
493
|
+
target?: OnConflictTarget;
|
|
494
|
+
set?: OnConflictSet;
|
|
495
|
+
merge?: OnConflictMerge;
|
|
496
496
|
};
|
|
497
497
|
};
|
|
498
498
|
interface UpdateQueryDataObject {
|
|
@@ -3792,9 +3792,9 @@ declare class Create {
|
|
|
3792
3792
|
* password: '1234',
|
|
3793
3793
|
* });
|
|
3794
3794
|
*
|
|
3795
|
-
* // When using `.
|
|
3795
|
+
* // When using `.onConflictDoNothing()`,
|
|
3796
3796
|
* // the record may be not created and the `createdCount` will be 0.
|
|
3797
|
-
* const createdCount = await db.table.insert(data).
|
|
3797
|
+
* const createdCount = await db.table.insert(data).onConflictDoNothing();
|
|
3798
3798
|
*
|
|
3799
3799
|
* await db.table.create({
|
|
3800
3800
|
* // raw SQL
|
|
@@ -3967,7 +3967,7 @@ declare class Create {
|
|
|
3967
3967
|
*
|
|
3968
3968
|
* Columns provided in `defaults` are marked as optional in the following `create`.
|
|
3969
3969
|
*
|
|
3970
|
-
* Default data is the same as in
|
|
3970
|
+
* Default data is the same as in {@link create} and {@link createMany},
|
|
3971
3971
|
* so you can provide a raw SQL, or a query with a query.
|
|
3972
3972
|
*
|
|
3973
3973
|
* ```ts
|
|
@@ -3995,8 +3995,9 @@ declare class Create {
|
|
|
3995
3995
|
* or a composite primary key unique index on a set of columns,
|
|
3996
3996
|
* and a row being created has the same value as a row that already exists in the table in this column(s).
|
|
3997
3997
|
*
|
|
3998
|
-
* Use
|
|
3999
|
-
* or `
|
|
3998
|
+
* Use {@link onConflictDoNothing} to suppress the error and continue without updating the record,
|
|
3999
|
+
* or the `merge` to update the record with new values automatically,
|
|
4000
|
+
* or the `set` to specify own values for the update.
|
|
4000
4001
|
*
|
|
4001
4002
|
* `onConflict` only accepts column names that are defined in `primaryKey` or `unique` in the table definition.
|
|
4002
4003
|
* To specify a constraint, its name also must be explicitly set in `primaryKey` or `unique` in the table code.
|
|
@@ -4005,11 +4006,11 @@ declare class Create {
|
|
|
4005
4006
|
* for updating the record.
|
|
4006
4007
|
*
|
|
4007
4008
|
* If your table has multiple potential reasons for unique constraint violation, such as username and email columns in a user table,
|
|
4008
|
-
* consider using
|
|
4009
|
+
* consider using `upsert` instead.
|
|
4009
4010
|
*
|
|
4010
4011
|
* ```ts
|
|
4011
4012
|
* // leave `onConflict` without argument to ignore or merge on any conflict
|
|
4012
|
-
* db.table.create(data).
|
|
4013
|
+
* db.table.create(data).onConflictDoNothing();
|
|
4013
4014
|
*
|
|
4014
4015
|
* // single column:
|
|
4015
4016
|
* db.table.create(data).onConfict('email').merge();
|
|
@@ -4042,11 +4043,26 @@ declare class Create {
|
|
|
4042
4043
|
* .ignore();
|
|
4043
4044
|
* ```
|
|
4044
4045
|
*
|
|
4046
|
+
* For `merge` and `set`, you can append `where` to update data only for the matching rows:
|
|
4047
|
+
*
|
|
4048
|
+
* ```ts
|
|
4049
|
+
* const timestamp = Date.now();
|
|
4050
|
+
*
|
|
4051
|
+
* db.table
|
|
4052
|
+
* .create(data)
|
|
4053
|
+
* .onConflict('email')
|
|
4054
|
+
* .set({
|
|
4055
|
+
* name: 'John Doe',
|
|
4056
|
+
* updatedAt: timestamp,
|
|
4057
|
+
* })
|
|
4058
|
+
* .where({ updatedAt: { lt: timestamp } });
|
|
4059
|
+
* ```
|
|
4060
|
+
*
|
|
4045
4061
|
* @param arg - optionally provide an array of columns
|
|
4046
4062
|
*/
|
|
4047
4063
|
onConflict<T extends CreateSelf, Arg extends OnConflictArg<T>>(this: T, arg: Arg): OnConflictQueryBuilder<T, Arg>;
|
|
4048
4064
|
/**
|
|
4049
|
-
* Use `
|
|
4065
|
+
* Use `onConflictDoNothing` to suppress unique constraint violation error when creating a record.
|
|
4050
4066
|
*
|
|
4051
4067
|
* Adds `ON CONFLICT (columns) DO NOTHING` clause to the insert statement, columns are optional.
|
|
4052
4068
|
*
|
|
@@ -4059,142 +4075,110 @@ declare class Create {
|
|
|
4059
4075
|
* name: 'John Doe',
|
|
4060
4076
|
* })
|
|
4061
4077
|
* // on any conflict:
|
|
4062
|
-
* .
|
|
4078
|
+
* .onConflictDoNothing()
|
|
4063
4079
|
* // or, for a specific column:
|
|
4064
|
-
* .
|
|
4080
|
+
* .onConflictDoNothing('email')
|
|
4065
4081
|
* // or, for a specific constraint:
|
|
4066
|
-
* .
|
|
4082
|
+
* .onConflictDoNothing({ constraint: 'unique_index_name' });
|
|
4067
4083
|
* ```
|
|
4068
4084
|
*
|
|
4069
|
-
* When there is a conflict, nothing can be returned from the database, so `
|
|
4085
|
+
* When there is a conflict, nothing can be returned from the database, so `onConflictDoNothing` adds `| undefined` part to the response type.
|
|
4070
4086
|
*
|
|
4071
4087
|
* ```ts
|
|
4072
4088
|
* const maybeRecord: RecordType | undefined = await db.table
|
|
4073
4089
|
* .create(data)
|
|
4074
|
-
* .
|
|
4090
|
+
* .onConflictDoNothing();
|
|
4075
4091
|
*
|
|
4076
4092
|
* const maybeId: number | undefined = await db.table
|
|
4077
4093
|
* .get('id')
|
|
4078
4094
|
* .create(data)
|
|
4079
|
-
* .
|
|
4095
|
+
* .onConflictDoNothing();
|
|
4080
4096
|
* ```
|
|
4081
4097
|
*
|
|
4082
4098
|
* When creating multiple records, only created records will be returned. If no records were created, array will be empty:
|
|
4083
4099
|
*
|
|
4084
4100
|
* ```ts
|
|
4085
4101
|
* // array can be empty
|
|
4086
|
-
* const arr = await db.table.createMany([data, data, data]).
|
|
4102
|
+
* const arr = await db.table.createMany([data, data, data]).onConflictDoNothing();
|
|
4087
4103
|
* ```
|
|
4088
4104
|
*/
|
|
4089
|
-
|
|
4105
|
+
onConflictDoNothing<T extends CreateSelf, Arg extends OnConflictArg<T>>(this: T, arg?: Arg): IgnoreResult<T>;
|
|
4090
4106
|
}
|
|
4091
4107
|
declare class OnConflictQueryBuilder<T extends CreateSelf, Arg extends OnConflictArg<T> | undefined> {
|
|
4092
4108
|
private query;
|
|
4093
4109
|
private onConflict;
|
|
4094
4110
|
constructor(query: T, onConflict: Arg);
|
|
4095
4111
|
/**
|
|
4096
|
-
* Available only after
|
|
4112
|
+
* Available only after `onConflict`.
|
|
4097
4113
|
*
|
|
4098
|
-
*
|
|
4114
|
+
* Updates the record with a given data when conflict occurs.
|
|
4099
4115
|
*
|
|
4100
4116
|
* ```ts
|
|
4101
|
-
* db.table
|
|
4102
|
-
*
|
|
4103
|
-
*
|
|
4104
|
-
* name: 'John Doe',
|
|
4105
|
-
* })
|
|
4106
|
-
* // for a specific column:
|
|
4107
|
-
* .onConflict('email')
|
|
4108
|
-
* // or, for a specific constraint:
|
|
4109
|
-
* .onConflict({ constraint: 'unique_constraint_name' })
|
|
4110
|
-
* .merge();
|
|
4117
|
+
* db.table.create(data).onConflict('column').set({
|
|
4118
|
+
* description: 'setting different data on conflict',
|
|
4119
|
+
* });
|
|
4111
4120
|
* ```
|
|
4112
4121
|
*
|
|
4113
|
-
*
|
|
4122
|
+
* The `set` can take a raw SQL expression:
|
|
4114
4123
|
*
|
|
4115
4124
|
* ```ts
|
|
4116
4125
|
* db.table
|
|
4117
|
-
* .
|
|
4118
|
-
*
|
|
4119
|
-
*
|
|
4120
|
-
* { email: 'alex@example.com', name: 'Alex Doe' },
|
|
4121
|
-
* ])
|
|
4122
|
-
* .onConflict('email')
|
|
4123
|
-
* .merge();
|
|
4124
|
-
* ```
|
|
4125
|
-
*
|
|
4126
|
-
* It is also possible to specify a subset of the columns to merge when a conflict occurs.
|
|
4127
|
-
* For example, you may want to set a `createdAt` column when creating but would prefer not to update it if the row already exists:
|
|
4128
|
-
*
|
|
4129
|
-
* ```ts
|
|
4130
|
-
* const timestamp = Date.now();
|
|
4126
|
+
* .create(data)
|
|
4127
|
+
* .onConflict()
|
|
4128
|
+
* .set(db.table.sql`raw SQL expression`);
|
|
4131
4129
|
*
|
|
4130
|
+
* // update records only on certain conditions
|
|
4132
4131
|
* db.table
|
|
4133
|
-
* .create(
|
|
4134
|
-
* email: 'ignore@example.com',
|
|
4135
|
-
* name: 'John Doe',
|
|
4136
|
-
* createdAt: timestamp,
|
|
4137
|
-
* updatedAt: timestamp,
|
|
4138
|
-
* })
|
|
4132
|
+
* .create(data)
|
|
4139
4133
|
* .onConflict('email')
|
|
4140
|
-
*
|
|
4141
|
-
* .
|
|
4142
|
-
* // or, update multiple columns
|
|
4143
|
-
* .merge(['email', 'name', 'updatedAt']);
|
|
4134
|
+
* .set({ key: 'value' })
|
|
4135
|
+
* .where({ ...certainConditions });
|
|
4144
4136
|
* ```
|
|
4145
4137
|
*
|
|
4146
|
-
*
|
|
4147
|
-
|
|
4148
|
-
|
|
4138
|
+
* @param set - object containing new column values, or raw SQL
|
|
4139
|
+
*/
|
|
4140
|
+
set(set: Partial<T['inputType']> | Expression): T;
|
|
4141
|
+
/**
|
|
4142
|
+
* Available only after `onConflict`.
|
|
4149
4143
|
*
|
|
4150
|
-
*
|
|
4151
|
-
* const timestamp = Date.now();
|
|
4144
|
+
* Use this method to merge all the data you have passed into `create` to update the existing record on conflict.
|
|
4152
4145
|
*
|
|
4153
|
-
*
|
|
4154
|
-
* .create({
|
|
4155
|
-
* email: 'ignore@example.com',
|
|
4156
|
-
* name: 'John Doe',
|
|
4157
|
-
* createdAt: timestamp,
|
|
4158
|
-
* updatedAt: timestamp,
|
|
4159
|
-
* })
|
|
4160
|
-
* .onConflict('email')
|
|
4161
|
-
* .merge({
|
|
4162
|
-
* name: 'John Doe The Second',
|
|
4163
|
-
* });
|
|
4164
|
-
* ```
|
|
4146
|
+
* If the table has columns with **dynamic** default values, such values will be applied as well.
|
|
4165
4147
|
*
|
|
4166
|
-
* You can
|
|
4148
|
+
* You can exclude certain columns from being merged by passing the `exclude` option.
|
|
4167
4149
|
*
|
|
4168
4150
|
* ```ts
|
|
4169
|
-
*
|
|
4151
|
+
* // merge the full data
|
|
4152
|
+
* db.table.create(data).onConflict('email').merge();
|
|
4153
|
+
*
|
|
4154
|
+
* // merge only a single column
|
|
4155
|
+
* db.table.create(data).onConflict('email').merge('name');
|
|
4156
|
+
*
|
|
4157
|
+
* // merge multiple columns
|
|
4158
|
+
* db.table.create(data).onConflict('email').merge(['name', 'quantity']);
|
|
4170
4159
|
*
|
|
4160
|
+
* // merge all columns except some
|
|
4171
4161
|
* db.table
|
|
4172
|
-
* .create(
|
|
4173
|
-
* email: 'ignore@example.com',
|
|
4174
|
-
* name: 'John Doe',
|
|
4175
|
-
* createdAt: timestamp,
|
|
4176
|
-
* updatedAt: timestamp,
|
|
4177
|
-
* })
|
|
4162
|
+
* .create(data)
|
|
4178
4163
|
* .onConflict('email')
|
|
4179
|
-
* .merge({
|
|
4180
|
-
* name: 'John Doe',
|
|
4181
|
-
* updatedAt: timestamp,
|
|
4182
|
-
* })
|
|
4183
|
-
* .where({ updatedAt: { lt: timestamp } });
|
|
4184
|
-
* ```
|
|
4164
|
+
* .merge({ except: ['name', 'quantity'] });
|
|
4185
4165
|
*
|
|
4186
|
-
*
|
|
4166
|
+
* // merge can be applied also for batch creates
|
|
4167
|
+
* db.table.createMany([data1, data2, data2]).onConflict('email').merge();
|
|
4187
4168
|
*
|
|
4188
|
-
*
|
|
4169
|
+
* // update records only on certain conditions
|
|
4189
4170
|
* db.table
|
|
4190
4171
|
* .create(data)
|
|
4191
|
-
* .onConflict()
|
|
4192
|
-
* .merge(
|
|
4172
|
+
* .onConflict('email')
|
|
4173
|
+
* .merge()
|
|
4174
|
+
* .where({ ...certainConditions });
|
|
4193
4175
|
* ```
|
|
4194
4176
|
*
|
|
4195
|
-
* @param
|
|
4177
|
+
* @param merge - no argument will merge all data, or provide a column(s) to merge, or provide `except` to update all except some.
|
|
4196
4178
|
*/
|
|
4197
|
-
merge(
|
|
4179
|
+
merge(merge?: keyof T['shape'] | (keyof T['shape'])[] | {
|
|
4180
|
+
except: keyof T['shape'] | (keyof T['shape'])[];
|
|
4181
|
+
}): T;
|
|
4198
4182
|
}
|
|
4199
4183
|
|
|
4200
4184
|
type DeleteMethodsNames = 'delete';
|
|
@@ -7514,4 +7498,4 @@ type CopyResult<T extends PickQueryMeta> = SetQueryKind<T, 'copy'>;
|
|
|
7514
7498
|
*/
|
|
7515
7499
|
declare function copyTableData<T extends PickQueryMetaShape>(query: T, arg: CopyArg<T>): CopyResult<T>;
|
|
7516
7500
|
|
|
7517
|
-
export { Adapter, AdapterConfig, AdapterOptions, AddQueryDefaults, AddQuerySelect, AddQueryWith, AfterHook, AggregateMethods, AggregateOptions, AliasOrTable, ArrayColumn, ArrayColumnValue, ArrayData, AsMethods, AsQueryArg, BaseOperators, BigIntColumn, BigSerialColumn, BitColumn, BitVaryingColumn, BooleanColumn, BooleanQueryColumn, BoxColumn, ByteaColumn, CharColumn, CidrColumn, CircleColumn, CitextColumn, Clear, ClearStatement, CloneSelfKeys, ColumnData, ColumnExpression, ColumnFromDbParams, ColumnInfoQueryData, ColumnOperators, ColumnRefExpression, ColumnType, ColumnsByType, ColumnsShape, ColumnsShapeToNullableObject, ColumnsShapeToObject, ColumnsShapeToObjectArray, ColumnsShapeToPluck, CommonQueryData, ComputedColumnsBase, CopyOptions, CopyQueryData, Create, CreateColumn, CreateCtx, CreateData, CreateKind, CreateMethodsNames, CreateRelationsData, CreateRelationsDataOmittingFKeys, CreateSelf, CustomTypeColumn, DateBaseColumn, DateColumn, DateColumnInput, DateTimeBaseClass, DateTimeTzBaseClass, Db, DbDomainArg, DbDomainArgRecord, DbExtension, DbOptions, DbResult, DbSharedOptions, DbTableConstructor, DbTableOptionScopes, DbTableOptions, DecimalColumn, DecimalColumnData, DefaultColumnTypes, DefaultSchemaConfig, Delete, DeleteArgs, DeleteMethodsNames, DeleteQueryData, DeleteResult, DomainColumn, DoublePrecisionColumn, DynamicRawSQL, EnumColumn, ExpressionOutput, FnExpression, FnExpressionArgs, FnExpressionArgsPairs, FnExpressionArgsValue, For, From, FromArg, FromArgOptions, FromQuerySelf, FromResult, GetArg, GetColumnInfo, GetQueryResult, GetResult, GetResultOptional, GetStringArg, GroupArg, Having, HavingItem, HookAction, HookSelect, IdentityColumn, InetColumn, InsertQueryData, IntegerBaseColumn, IntegerColumn, IntervalColumn, IsolationLevel, JSONColumn, JSONTextColumn, Join, JoinArgs, JoinCallback, JoinFirstArg, JoinItem, JoinItemArgs, JoinLateralCallback, JoinLateralItem, JoinLateralResult, JoinOverrides, JoinQueryBuilder, JoinQueryMethod, JoinResult, JoinedParsers, JoinedShapes, JsonItem, JsonMethods, JsonModifiers, LimitedTextBaseColumn, LineColumn, LsegColumn, MacAddr8Column, MacAddrColumn, MapTableScopesOption, MergeQuery, MergeQueryMethods, MoneyColumn, MoreThanOneRowError, NoPrimaryKeyOption, NotFoundError, NumberAsStringBaseColumn, NumberBaseColumn, NumberColumnData,
|
|
7501
|
+
export { Adapter, AdapterConfig, AdapterOptions, AddQueryDefaults, AddQuerySelect, AddQueryWith, AfterHook, AggregateMethods, AggregateOptions, AliasOrTable, ArrayColumn, ArrayColumnValue, ArrayData, AsMethods, AsQueryArg, BaseOperators, BigIntColumn, BigSerialColumn, BitColumn, BitVaryingColumn, BooleanColumn, BooleanQueryColumn, BoxColumn, ByteaColumn, CharColumn, CidrColumn, CircleColumn, CitextColumn, Clear, ClearStatement, CloneSelfKeys, ColumnData, ColumnExpression, ColumnFromDbParams, ColumnInfoQueryData, ColumnOperators, ColumnRefExpression, ColumnType, ColumnsByType, ColumnsShape, ColumnsShapeToNullableObject, ColumnsShapeToObject, ColumnsShapeToObjectArray, ColumnsShapeToPluck, CommonQueryData, ComputedColumnsBase, CopyOptions, CopyQueryData, Create, CreateColumn, CreateCtx, CreateData, CreateKind, CreateMethodsNames, CreateRelationsData, CreateRelationsDataOmittingFKeys, CreateSelf, CustomTypeColumn, DateBaseColumn, DateColumn, DateColumnInput, DateTimeBaseClass, DateTimeTzBaseClass, Db, DbDomainArg, DbDomainArgRecord, DbExtension, DbOptions, DbResult, DbSharedOptions, DbTableConstructor, DbTableOptionScopes, DbTableOptions, DecimalColumn, DecimalColumnData, DefaultColumnTypes, DefaultSchemaConfig, Delete, DeleteArgs, DeleteMethodsNames, DeleteQueryData, DeleteResult, DomainColumn, DoublePrecisionColumn, DynamicRawSQL, EnumColumn, ExpressionOutput, FnExpression, FnExpressionArgs, FnExpressionArgsPairs, FnExpressionArgsValue, For, From, FromArg, FromArgOptions, FromQuerySelf, FromResult, GetArg, GetColumnInfo, GetQueryResult, GetResult, GetResultOptional, GetStringArg, GroupArg, Having, HavingItem, HookAction, HookSelect, IdentityColumn, InetColumn, InsertQueryData, IntegerBaseColumn, IntegerColumn, IntervalColumn, IsolationLevel, JSONColumn, JSONTextColumn, Join, JoinArgs, JoinCallback, JoinFirstArg, JoinItem, JoinItemArgs, JoinLateralCallback, JoinLateralItem, JoinLateralResult, JoinOverrides, JoinQueryBuilder, JoinQueryMethod, JoinResult, JoinedParsers, JoinedShapes, JsonItem, JsonMethods, JsonModifiers, LimitedTextBaseColumn, LineColumn, LsegColumn, MacAddr8Column, MacAddrColumn, MapTableScopesOption, MergeQuery, MergeQueryMethods, MoneyColumn, MoreThanOneRowError, NoPrimaryKeyOption, NotFoundError, NumberAsStringBaseColumn, NumberBaseColumn, NumberColumnData, OnConflictMerge, OnConflictQueryBuilder, OnConflictSet, OnConflictTarget, OnMethods, Operator, Operators, OperatorsAny, OperatorsArray, OperatorsBoolean, OperatorsDate, OperatorsJson, OperatorsNumber, OperatorsText, OperatorsTime, OrCreateArg, OrchidOrmError, OrchidOrmInternalError, OrderArg, OrderArgSelf, OrderArgs, OrderItem, OrderTsQueryConfig, Over, PathColumn, PickColumnData, PickQueryBaseQuery, PickQueryDataShapeAndJoinedShapes, PickQueryInternal, PickQueryMetaRelations, PickQueryMetaResultRelations, PickQueryMetaResultRelationsWindows, PickQueryMetaResultRelationsWindowsColumnTypes, PickQueryMetaResultRelationsWithDataReturnType, PickQueryMetaResultRelationsWithDataReturnTypeShape, PickQueryMetaResultReturnTypeWithDataWindows, PickQueryMetaResultReturnTypeWithDataWindowsTable, PickQueryMetaShapeRelationsWithData, PickQueryMetaTable, PickQueryMetaTableShape, PickQueryMetaTableShapeReturnTypeWithData, PickQueryMetaWithData, PickQueryQ, PickQueryQAndBaseQuery, PickQueryQAndInternal, PickQueryRelations, PickQueryRelationsWithData, PickQueryShapeResultSinglePrimaryKey, PickQueryShapeSinglePrimaryKey, PickQuerySinglePrimaryKey, PickQueryWindows, PickQueryWithData, PointColumn, PolygonColumn, Query, QueryAfterHook, QueryArraysResult, QueryBase, QueryBaseThen, QueryBeforeHook, QueryData, QueryDataJoinTo, QueryDefaultReturnData, QueryError, QueryErrorName, QueryGet, QueryGetSelf, QueryHelperResult, QueryHookSelect, QueryHooks, QueryInternal, QueryLog, QueryLogObject, QueryLogOptions, QueryLogger, QueryMetaHasSelect, QueryMetaHasWhere, QueryMethods, QueryResult, QueryReturnsAll, QueryScopeData, QueryScopes, QuerySourceItem, QueryTransform, QueryTransformFn, QueryUpsertOrCreate, QueryWithComputed, QueryWithTable, RawSQL, RawSqlMethods, RealColumn, RecordOfColumnsShapeBase, RelationConfigBase, RelationConfigDataForCreate, RelationJoinQuery, RelationQuery, RelationQueryBase, RelationsBase, SearchArg, SearchMethods, SearchWeight, SearchWeightRecord, Select, SelectArg, SelectAs, SelectItem, SelectQueryData, SelectSubQueryResult, SelectableFromShape, SelectableOfType, SelectableOrExpression, SelectableOrExpressionOfType, SerialColumn, SerialColumnData, SetQueryKind, SetQueryReturnsAll, SetQueryReturnsAllKind, SetQueryReturnsColumnInfo, SetQueryReturnsColumnKind, SetQueryReturnsColumnOptional, SetQueryReturnsColumnOrThrow, SetQueryReturnsOne, SetQueryReturnsOneKind, SetQueryReturnsOneOptional, SetQueryReturnsPluck, SetQueryReturnsPluckColumn, SetQueryReturnsPluckColumnKind, SetQueryReturnsRowCount, SetQueryReturnsRows, SetQueryReturnsValueOptional, SetQueryReturnsValueOrThrow, SetQueryReturnsVoid, SetQueryReturnsVoidKind, SetQueryTableAlias, SetQueryWith, ShapeColumnPrimaryKeys, ShapeUniqueColumns, SimpleJoinItem, SimpleJoinItemNonSubQueryArgs, SmallIntColumn, SmallSerialColumn, SortDir, SqlFn, StringColumn$1 as StringColumn, TableData, TableDataFn, TableDataInput, TableDataItem, TableDataItemsUniqueColumnTuples, TableDataItemsUniqueColumns, TableDataItemsUniqueConstraints, TableDataMethods, TextBaseColumn, TextColumn, TextColumnData, Then, TimeColumn, TimestampColumn, TimestampTZColumn, ToSQLCtx, ToSQLOptions, ToSQLQuery, Transaction, TransactionAdapter, TransactionOptions, TransformMethods, TruncateQueryData, TsQueryColumn, TsVectorColumn, TypeParsers, UUIDColumn, UnhandledTypeError, Union, UnionArg, UnionItem, UnionKind, UniqueConstraints, UniqueQueryTypeOrExpression, UniqueTableDataItem, UnknownColumn, Update, UpdateArg, UpdateCtx, UpdateCtxCollect, UpdateData, UpdateQueryData, UpdateQueryDataItem, UpdateQueryDataObject, UpdateSelf, UpdatedAtDataInjector, UpsertArg, UpsertResult, UpsertThis, VarCharColumn, VirtualColumn, Where, WhereArg, WhereArgs, WhereInArg, WhereInColumn, WhereInItem, WhereInValues, WhereItem, WhereJsonPathEqualsItem, WhereNotArgs, WhereOnItem, WhereOnJoinItem, WhereQueryBuilder, WhereResult, WhereSearchItem, WhereSearchResult, WindowArg, WindowArgDeclaration, WindowDeclaration, WindowItem, With, WithDataBase, WithDataItem, WithDataItems, WithItem, WithOptions, WrapQueryArg, XMLColumn, _initQueryBuilder, _queryAfterSaveCommit, _queryAll, _queryAs, _queryChangeCounter, _queryCreate, _queryCreateFrom, _queryCreateMany, _queryCreateManyFrom, _queryCreateManyRaw, _queryCreateRaw, _queryDefaults, _queryDelete, _queryExec, _queryFindBy, _queryFindByOptional, _queryGet, _queryGetOptional, _queryHookAfterCreate, _queryHookAfterCreateCommit, _queryHookAfterDelete, _queryHookAfterDeleteCommit, _queryHookAfterQuery, _queryHookAfterSave, _queryHookAfterUpdate, _queryHookAfterUpdateCommit, _queryHookBeforeCreate, _queryHookBeforeDelete, _queryHookBeforeQuery, _queryHookBeforeSave, _queryHookBeforeUpdate, _queryInsert, _queryInsertFrom, _queryInsertMany, _queryInsertManyFrom, _queryInsertManyRaw, _queryInsertRaw, _queryJoinOn, _queryJoinOnJsonPathEquals, _queryJoinOrOn, _queryOr, _queryOrNot, _queryRows, _querySelect, _queryTake, _queryTakeOptional, _queryUpdate, _queryUpdateOrThrow, _queryUpdateRaw, _queryWhere, _queryWhereExists, _queryWhereIn, _queryWhereNot, _queryWhereNotSql, _queryWhereSql, addComputedColumns, addParserForRawExpression, addParserForSelectItem, addQueryOn, anyShape, checkIfASimpleQuery, cloneQuery, cloneQueryBaseUnscoped, columnCheckToCode, columnCode, columnForeignKeysToCode, columnIndexesToCode, columnsShapeToCode, constraintInnerToCode, constraintToCode, copyTableData, countSelect, createDb, defaultSchemaConfig, extendQuery, foreignKeyArgumentToCode, getClonedQueryData, getColumnInfo, getColumnTypes, getPrimaryKeys, getQueryAs, getShapeFromSelect, handleResult, identityToCode, indexInnerToCode, indexToCode, instantiateColumn, isDefaultTimeStamp, isQueryReturnsAll, isSelectingCount, joinSubQuery, logColors, logParamToLogObject, makeColumnTypes, makeColumnsByType, makeExpression, makeFnExpression, makeRegexToFindInSql, makeSQL, parseRecord, parseResult, parseTableData, parseTableDataInput, primaryKeyInnerToCode, processSelectArg, pushLimitSQL, pushQueryArray, pushQueryOn, pushQueryOrOn, pushQueryValue, pushTableDataCode, queryFrom, queryFromSql, queryJson, queryMethodByReturnType, queryTypeWithLimitOne, queryWrap, quote, quoteString, raw, referencesArgsToCode, resolveSubQueryCallback, saveSearchAlias, setParserForSelectedString, setQueryObjectValue, setQueryOperators, simplifyColumnDefault, sqlFn, sqlQueryArgsToExpression, tableDataMethods, templateLiteralToSQL, testTransaction, throwIfNoWhere, toSQL, toSQLCacheKey };
|