pqb 0.4.0 → 0.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +61 -48
- package/dist/index.esm.js +136 -117
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +136 -117
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/columnSchema/columnType.test.ts +1 -1
- package/src/db.test.ts +2 -2
- package/src/errors.test.ts +4 -4
- package/src/queryMethods/aggregate.test.ts +11 -11
- package/src/queryMethods/aggregate.ts +5 -3
- package/src/queryMethods/callbacks.test.ts +6 -6
- package/src/queryMethods/callbacks.ts +8 -8
- package/src/queryMethods/columnInfo.ts +13 -19
- package/src/queryMethods/{insert.test.ts → create.test.ts} +108 -98
- package/src/queryMethods/{insert.ts → create.ts} +139 -118
- package/src/queryMethods/delete.test.ts +2 -2
- package/src/queryMethods/get.test.ts +2 -2
- package/src/queryMethods/index.ts +1 -1
- package/src/queryMethods/json.test.ts +1 -1
- package/src/queryMethods/log.test.ts +29 -8
- package/src/queryMethods/merge.test.ts +3 -3
- package/src/queryMethods/queryMethods.test.ts +4 -4
- package/src/queryMethods/queryMethods.ts +3 -3
- package/src/queryMethods/select.test.ts +7 -7
- package/src/queryMethods/then.ts +2 -2
- package/src/queryMethods/update.test.ts +8 -8
- package/src/queryMethods/update.ts +7 -7
- package/src/queryMethods/upsert.ts +3 -3
- package/src/queryMethods/window.test.ts +2 -2
- package/src/relations.ts +18 -7
- package/src/sql/insert.ts +31 -19
- package/src/sql/types.ts +3 -2
- package/src/test-utils.ts +4 -1
package/dist/index.d.ts
CHANGED
|
@@ -142,10 +142,13 @@ declare type RelationQueryBase = Query & {
|
|
|
142
142
|
[relationQueryKey]: string;
|
|
143
143
|
[isRequiredRelationKey]: boolean;
|
|
144
144
|
};
|
|
145
|
-
declare type
|
|
145
|
+
declare type PrepareRelationQuery<T extends Query, RelationName extends PropertyKey, Required extends boolean> = Omit<T, 'tableAlias'> & {
|
|
146
146
|
tableAlias: RelationName extends string ? RelationName : never;
|
|
147
147
|
[isRequiredRelationKey]: Required;
|
|
148
148
|
[relationQueryKey]: string;
|
|
149
|
+
};
|
|
150
|
+
declare type RelationQuery<Name extends PropertyKey = string, Params extends Record<string, unknown> = never, Populate extends string = never, T extends Query = Query, Required extends boolean = boolean, ChainedCreate extends boolean = false, Q extends RelationQueryBase = ChainedCreate extends true ? PrepareRelationQuery<T, Name, Required> : PrepareRelationQuery<T, Name, Required> & {
|
|
151
|
+
[K in CreateMethodsNames]: never;
|
|
149
152
|
}> = ((params: Params) => Q & {
|
|
150
153
|
[defaultsKey]: Record<Populate, true>;
|
|
151
154
|
}) & Q;
|
|
@@ -226,10 +229,10 @@ declare class QueryCallbacks {
|
|
|
226
229
|
_beforeQuery<T extends Query>(this: T, cb: BeforeCallback<T>): T;
|
|
227
230
|
afterQuery<T extends Query>(this: T, cb: AfterCallback<T>): T;
|
|
228
231
|
_afterQuery<T extends Query>(this: T, cb: AfterCallback<T>): T;
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
232
|
+
beforeCreate<T extends Query>(this: T, cb: BeforeCallback<T>): T;
|
|
233
|
+
_beforeCreate<T extends Query>(this: T, cb: BeforeCallback<T>): T;
|
|
234
|
+
afterCreate<T extends Query>(this: T, cb: AfterCallback<T>): T;
|
|
235
|
+
_afterCreate<T extends Query>(this: T, cb: AfterCallback<T>): T;
|
|
233
236
|
beforeUpdate<T extends Query>(this: T, cb: BeforeCallback<T>): T;
|
|
234
237
|
_beforeUpdate<T extends Query>(this: T, cb: BeforeCallback<T>): T;
|
|
235
238
|
afterUpdate<T extends Query>(this: T, cb: AfterCallback<T>): T;
|
|
@@ -299,6 +302,7 @@ declare type InsertQueryData = CommonQueryData & {
|
|
|
299
302
|
type: 'insert';
|
|
300
303
|
columns: string[];
|
|
301
304
|
values: unknown[][] | RawExpression;
|
|
305
|
+
fromQuery?: Query;
|
|
302
306
|
using?: JoinItem[];
|
|
303
307
|
join?: JoinItem[];
|
|
304
308
|
joinedParsers?: Record<string, ColumnsParsers>;
|
|
@@ -310,8 +314,8 @@ declare type InsertQueryData = CommonQueryData & {
|
|
|
310
314
|
expr?: OnConflictItem;
|
|
311
315
|
update?: OnConflictMergeUpdate;
|
|
312
316
|
};
|
|
313
|
-
|
|
314
|
-
|
|
317
|
+
beforeCreate?: BeforeCallback[];
|
|
318
|
+
afterCreate?: AfterCallback[];
|
|
315
319
|
};
|
|
316
320
|
declare type UpdateQueryDataObject = Record<string, RawExpression | {
|
|
317
321
|
op: string;
|
|
@@ -1019,18 +1023,18 @@ declare class Json {
|
|
|
1019
1023
|
}): JsonPathQueryResult<T, As, Type>;
|
|
1020
1024
|
}
|
|
1021
1025
|
|
|
1022
|
-
declare type
|
|
1026
|
+
declare type CreateData<T extends Query, DefaultKeys extends PropertyKey = keyof T[defaultsKey], Data = SetOptional<T['inputType'], DefaultKeys>> = [keyof T['relations']] extends [never] ? Data : OmitBelongsToForeignKeys<T['relations'], Data> & CreateRelationData<T>;
|
|
1023
1027
|
declare type OmitBelongsToForeignKeys<R extends RelationsBase, Data> = Omit<Data, {
|
|
1024
1028
|
[K in keyof R]: R[K] extends BelongsToRelation ? R[K]['options']['foreignKey'] : never;
|
|
1025
1029
|
}[keyof R]>;
|
|
1026
|
-
declare type
|
|
1027
|
-
[K in keyof T['relations']]: T['relations'][K] extends BelongsToRelation ?
|
|
1030
|
+
declare type CreateRelationData<T extends Query> = {
|
|
1031
|
+
[K in keyof T['relations']]: T['relations'][K] extends BelongsToRelation ? CreateBelongsToData<T, K, T['relations'][K]> : T['relations'][K] extends HasOneRelation ? CreateHasOneData<T, K, T['relations'][K]> : T['relations'][K] extends HasManyRelation | HasAndBelongsToManyRelation ? CreateHasManyData<T, K, T['relations'][K]> : EmptyObject;
|
|
1028
1032
|
}[keyof T['relations']];
|
|
1029
|
-
declare type
|
|
1033
|
+
declare type CreateBelongsToData<T extends Query, Key extends keyof T['relations'], Rel extends BelongsToRelation> = SetOptional<{
|
|
1030
1034
|
[K in Rel['options']['foreignKey']]: Rel['options']['foreignKey'] extends keyof T['inputType'] ? T['inputType'][Rel['options']['foreignKey']] : never;
|
|
1031
1035
|
}, keyof T[defaultsKey]> | {
|
|
1032
1036
|
[K in Key]: {
|
|
1033
|
-
create:
|
|
1037
|
+
create: CreateData<Rel['nestedCreateQuery']>;
|
|
1034
1038
|
connect?: never;
|
|
1035
1039
|
connectOrCreate?: never;
|
|
1036
1040
|
} | {
|
|
@@ -1042,13 +1046,13 @@ declare type InsertBelongsToData<T extends Query, Key extends keyof T['relations
|
|
|
1042
1046
|
connect?: never;
|
|
1043
1047
|
connectOrCreate: {
|
|
1044
1048
|
where: WhereArg<Rel['model']>;
|
|
1045
|
-
create:
|
|
1049
|
+
create: CreateData<Rel['nestedCreateQuery']>;
|
|
1046
1050
|
};
|
|
1047
1051
|
};
|
|
1048
1052
|
};
|
|
1049
|
-
declare type
|
|
1053
|
+
declare type CreateHasOneData<T extends Query, Key extends keyof T['relations'], Rel extends HasOneRelation> = 'through' extends Rel['options'] ? {} : {
|
|
1050
1054
|
[K in Key]?: {
|
|
1051
|
-
create:
|
|
1055
|
+
create: CreateData<Rel['nestedCreateQuery']>;
|
|
1052
1056
|
connect?: never;
|
|
1053
1057
|
connectOrCreate?: never;
|
|
1054
1058
|
} | {
|
|
@@ -1060,44 +1064,49 @@ declare type InsertHasOneData<T extends Query, Key extends keyof T['relations'],
|
|
|
1060
1064
|
connect?: never;
|
|
1061
1065
|
connectOrCreate: {
|
|
1062
1066
|
where?: WhereArg<Rel['model']>;
|
|
1063
|
-
create?:
|
|
1067
|
+
create?: CreateData<Rel['nestedCreateQuery']>;
|
|
1064
1068
|
};
|
|
1065
1069
|
};
|
|
1066
1070
|
};
|
|
1067
|
-
declare type
|
|
1071
|
+
declare type CreateHasManyData<T extends Query, Key extends keyof T['relations'], Rel extends HasManyRelation | HasAndBelongsToManyRelation> = 'through' extends Rel['options'] ? {} : {
|
|
1068
1072
|
[K in Key]?: {
|
|
1069
|
-
create?:
|
|
1073
|
+
create?: CreateData<Rel['nestedCreateQuery']>[];
|
|
1070
1074
|
connect?: WhereArg<Rel['model']>[];
|
|
1071
1075
|
connectOrCreate?: {
|
|
1072
1076
|
where: WhereArg<Rel['model']>;
|
|
1073
|
-
create:
|
|
1077
|
+
create: CreateData<Rel['nestedCreateQuery']>;
|
|
1074
1078
|
}[];
|
|
1075
1079
|
};
|
|
1076
1080
|
};
|
|
1077
|
-
declare type
|
|
1081
|
+
declare type CreateResult<T extends Query> = T extends {
|
|
1082
|
+
isCount: true;
|
|
1083
|
+
} ? T : QueryReturnsAll<T['returnType']> extends true ? SetQueryReturnsOne<T> : T;
|
|
1084
|
+
declare type CreateManyResult<T extends Query> = T extends {
|
|
1085
|
+
isCount: true;
|
|
1086
|
+
} ? T : T['returnType'] extends 'one' | 'oneOrThrow' ? SetQueryReturnsAll<T> : T;
|
|
1087
|
+
declare type CreateRawData = {
|
|
1078
1088
|
columns: string[];
|
|
1079
1089
|
values: RawExpression;
|
|
1080
1090
|
};
|
|
1081
|
-
declare type InsertOneResult<T extends Query> = T['hasSelect'] extends true ? QueryReturnsAll<T['returnType']> extends true ? SetQueryReturnsOne<T> : T['returnType'] extends 'one' ? SetQueryReturnsOne<T> : T : SetQueryReturnsRowCount<T>;
|
|
1082
|
-
declare type InsertManyResult<T extends Query> = T['hasSelect'] extends true ? T['returnType'] extends 'one' | 'oneOrThrow' ? SetQueryReturnsAll<T> : T : SetQueryReturnsRowCount<T>;
|
|
1083
1091
|
declare type OnConflictArg<T extends Query> = keyof T['shape'] | (keyof T['shape'])[] | RawExpression;
|
|
1084
|
-
declare
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1092
|
+
declare type CreateMethodsNames = 'create' | '_create' | 'createMany' | '_createMany' | 'createRaw' | '_createRaw' | 'createFrom' | '_createFrom';
|
|
1093
|
+
declare class Create {
|
|
1094
|
+
create<T extends Query>(this: T, data: CreateData<T>): CreateResult<T>;
|
|
1095
|
+
_create<T extends Query>(this: T, data: CreateData<T>): CreateResult<T>;
|
|
1096
|
+
createMany<T extends Query>(this: T, data: CreateData<T>[]): CreateManyResult<T>;
|
|
1097
|
+
_createMany<T extends Query>(this: T, data: CreateData<T>[]): CreateManyResult<T>;
|
|
1098
|
+
createRaw<T extends Query>(this: T, data: CreateRawData): CreateManyResult<T>;
|
|
1099
|
+
_createRaw<T extends Query>(this: T, data: CreateRawData): CreateManyResult<T>;
|
|
1100
|
+
createFrom<T extends Query, Q extends Query & {
|
|
1101
|
+
returnType: 'one' | 'oneOrThrow';
|
|
1102
|
+
}>(this: T, query: Q, data: Omit<CreateData<T>, keyof Q['result']>): SetQueryReturnsOne<T>;
|
|
1103
|
+
_createFrom<T extends Query, Q extends Query & {
|
|
1104
|
+
returnType: 'one' | 'oneOrThrow';
|
|
1105
|
+
}>(this: T, query: Q, data: Omit<CreateData<T>, keyof Q['result']>): CreateResult<T>;
|
|
1106
|
+
defaults<T extends Query, Data extends Partial<CreateData<T>>>(this: T, data: Data): T & {
|
|
1098
1107
|
[defaultsKey]: Record<keyof Data, true>;
|
|
1099
1108
|
};
|
|
1100
|
-
_defaults<T extends Query, Data extends Partial<
|
|
1109
|
+
_defaults<T extends Query, Data extends Partial<CreateData<T>>>(this: T, data: Data): T & {
|
|
1101
1110
|
[defaultsKey]: Record<keyof Data, true>;
|
|
1102
1111
|
};
|
|
1103
1112
|
onConflict<T extends Query, Arg extends OnConflictArg<T>>(this: T, arg?: Arg): OnConflictQueryBuilder<T, Arg>;
|
|
@@ -1127,11 +1136,11 @@ declare type UpdateBelongsToData<T extends Query, Rel extends BelongsToRelation>
|
|
|
1127
1136
|
} | {
|
|
1128
1137
|
update: UpdateData<Rel['model']>;
|
|
1129
1138
|
} | {
|
|
1130
|
-
create:
|
|
1139
|
+
create: CreateData<Rel['nestedCreateQuery']>;
|
|
1131
1140
|
} | (QueryReturnsAll<T['returnType']> extends true ? never : {
|
|
1132
1141
|
upsert: {
|
|
1133
1142
|
update: UpdateData<Rel['model']>;
|
|
1134
|
-
create:
|
|
1143
|
+
create: CreateData<Rel['nestedCreateQuery']>;
|
|
1135
1144
|
};
|
|
1136
1145
|
});
|
|
1137
1146
|
declare type UpdateHasOneData<T extends Query, Rel extends HasOneRelation> = {
|
|
@@ -1145,10 +1154,10 @@ declare type UpdateHasOneData<T extends Query, Rel extends HasOneRelation> = {
|
|
|
1145
1154
|
} | {
|
|
1146
1155
|
upsert: {
|
|
1147
1156
|
update: UpdateData<Rel['model']>;
|
|
1148
|
-
create:
|
|
1157
|
+
create: CreateData<Rel['nestedCreateQuery']>;
|
|
1149
1158
|
};
|
|
1150
1159
|
} | {
|
|
1151
|
-
create:
|
|
1160
|
+
create: CreateData<Rel['nestedCreateQuery']>;
|
|
1152
1161
|
});
|
|
1153
1162
|
declare type UpdateHasManyData<T extends Query, Rel extends HasManyRelation> = {
|
|
1154
1163
|
disconnect?: MaybeArray<WhereArg<Rel['model']>>;
|
|
@@ -1159,7 +1168,7 @@ declare type UpdateHasManyData<T extends Query, Rel extends HasManyRelation> = {
|
|
|
1159
1168
|
};
|
|
1160
1169
|
} & (QueryReturnsAll<T['returnType']> extends true ? EmptyObject : {
|
|
1161
1170
|
set?: MaybeArray<WhereArg<Rel['model']>>;
|
|
1162
|
-
create?:
|
|
1171
|
+
create?: CreateData<Rel['nestedCreateQuery']>[];
|
|
1163
1172
|
});
|
|
1164
1173
|
declare type UpdateHasAndBelongsToManyData<Rel extends HasAndBelongsToManyRelation> = {
|
|
1165
1174
|
disconnect?: MaybeArray<WhereArg<Rel['model']>>;
|
|
@@ -1169,7 +1178,7 @@ declare type UpdateHasAndBelongsToManyData<Rel extends HasAndBelongsToManyRelati
|
|
|
1169
1178
|
where: MaybeArray<WhereArg<Rel['model']>>;
|
|
1170
1179
|
data: UpdateData<Rel['model']>;
|
|
1171
1180
|
};
|
|
1172
|
-
create?:
|
|
1181
|
+
create?: CreateData<Rel['nestedCreateQuery']>[];
|
|
1173
1182
|
};
|
|
1174
1183
|
declare type UpdateArgs<T extends Query, ForceAll extends boolean> = (T['hasWhere'] extends true ? true : ForceAll) extends true ? [update: UpdateData<T>] : [update: UpdateData<T>, forceAll: true];
|
|
1175
1184
|
declare type UpdateRawArgs<T extends Query, ForceAll extends boolean> = (T['hasWhere'] extends true ? true : ForceAll) extends true ? [update: RawExpression] : [update: RawExpression, forceAll: true];
|
|
@@ -1267,7 +1276,7 @@ declare class Window {
|
|
|
1267
1276
|
|
|
1268
1277
|
declare type UpsertData<T extends Query> = {
|
|
1269
1278
|
update: UpdateData<T>;
|
|
1270
|
-
create:
|
|
1279
|
+
create: CreateData<T>;
|
|
1271
1280
|
};
|
|
1272
1281
|
declare type UpsertResult<T extends Query> = T['hasSelect'] extends true ? SetQueryReturnsOne<T> : SetQueryReturnsVoid<T>;
|
|
1273
1282
|
declare type UpsertThis = WhereResult<Query> & {
|
|
@@ -1306,7 +1315,7 @@ declare type OrderArg<T extends Query> = keyof T['selectable'] | {
|
|
|
1306
1315
|
nulls: 'FIRST' | 'LAST';
|
|
1307
1316
|
};
|
|
1308
1317
|
} | RawExpression;
|
|
1309
|
-
interface QueryMethods extends Aggregate, Select, From, Join, With, Union, Json,
|
|
1318
|
+
interface QueryMethods extends Aggregate, Select, From, Join, With, Union, Json, Create, Update, Delete, Transaction, For, ColumnInfoMethods, Where, Clear, Having, Window, Then, QueryLog, QueryCallbacks, QueryUpsert, QueryGet, MergeQueryMethods {
|
|
1310
1319
|
}
|
|
1311
1320
|
declare class QueryMethods {
|
|
1312
1321
|
windows: EmptyObject;
|
|
@@ -1411,8 +1420,12 @@ declare type WindowFunctionOptions<T extends Query = Query, As extends string |
|
|
|
1411
1420
|
declare class Aggregate {
|
|
1412
1421
|
selectAgg<T extends Query, Func extends string, As extends string | undefined, Value extends ColumnType>(this: T, functionName: Func, arg: AggregateArg<T>, options?: AggregateOptions<T, As>): SelectAgg<T, Func, As, Value>;
|
|
1413
1422
|
_selectAgg<T extends Query, Func extends string, As extends string | undefined, Value extends ColumnType>(this: T, functionName: Func, arg: AggregateArg<T>, options?: AggregateOptions<T, As>, columnType?: ColumnType): SelectAgg<T, Func, As, Value>;
|
|
1414
|
-
count<T extends Query>(this: T, arg?: AT1<T>['count'] | '*', options?: AggregateOptions<T>): SetQueryReturnsValue<T, NumberColumn
|
|
1415
|
-
|
|
1423
|
+
count<T extends Query>(this: T, arg?: AT1<T>['count'] | '*', options?: AggregateOptions<T>): SetQueryReturnsValue<T, NumberColumn> & {
|
|
1424
|
+
isCount: true;
|
|
1425
|
+
};
|
|
1426
|
+
_count<T extends Query>(this: T, arg?: AT1<T>['count'] | '*', options?: AggregateOptions<T>): SetQueryReturnsValue<T, NumberColumn> & {
|
|
1427
|
+
isCount: true;
|
|
1428
|
+
};
|
|
1416
1429
|
selectCount<T extends Query, As extends string | undefined = undefined>(this: T, arg?: AT1<T>['count'] | '*', options?: AggregateOptions<T, As>): SelectAgg<T, 'count', As, NumberColumn>;
|
|
1417
1430
|
_selectCount<T extends Query, As extends string | undefined = undefined>(this: T, arg?: AT1<T>['count'] | '*', options?: AggregateOptions<T, As>): SelectAgg<T, 'count', As, NumberColumn>;
|
|
1418
1431
|
avg<T extends Query>(this: T, arg: Aggregate1ArgumentTypes<T>['avg'], options?: AggregateOptions<T>): SetQueryReturnsValue<T, NullableColumn<NumberColumn>>;
|
|
@@ -4305,4 +4318,4 @@ declare const setQueryObjectValue: <T extends {
|
|
|
4305
4318
|
query: QueryData;
|
|
4306
4319
|
}>(q: T, object: string, key: string, value: unknown) => T;
|
|
4307
4320
|
|
|
4308
|
-
export { Adapter, AdapterOptions, AddQueryJoinedTable, AddQuerySelect, AddQueryWith, AfterCallback, Aggregate, Aggregate1ArgumentTypes, AggregateArg, AggregateItem, AggregateItemArg, AggregateItemOptions, AggregateOptions, AliasOrTable, AnyColumnType, AnyColumnTypeCreator, ArrayCardinality, ArrayColumn, ArrayData, ArrayOfColumnsObjects, AssertArray, BaseNumberData, BaseRelation, BaseStringData, BeforeCallback, BelongsToNestedInsert, BelongsToNestedUpdate, BelongsToRelation, BigIntColumn, BigSerialColumn, BitColumn, BitVaryingColumn, BooleanColumn, BooleanExpression, BoxColumn, ByteaColumn, CharColumn, CidrColumn, CircleColumn, Clear, ClearStatement, CoalesceString, ColumnData, ColumnInfo, ColumnInfoMethods, ColumnInfoQueryData, ColumnInput, ColumnNameOfModel, ColumnOperators, ColumnOutput, ColumnParser, ColumnShapeInput, ColumnShapeOutput, ColumnType, ColumnTypes, ColumnTypesBase, ColumnsObject, ColumnsParsers, ColumnsShape, CommonQueryData, DateBaseColumn, DateColumn, DateColumnData, DateTimeBaseClass, DateTimeColumnData, DateTimeWithTimeZoneBaseClass, Db, DbOptions, DbTableOptions, DecimalBaseColumn, DecimalColumn, DecimalColumnData, DeepPartial, DefaultSelectColumns, Delete, DeleteQueryData, DoublePrecisionColumn, DropMode, EMPTY_OBJECT, EmptyObject, EnumColumn, EnumLike, Except, Expression, ExpressionOfType, ExpressionOutput, FilterTuple, For, ForeignKey, ForeignKeyModel, ForeignKeyModelWithColumns, ForeignKeyOptions, From, GetArg, HasAndBelongsToManyRelation, HasManyNestedInsert, HasManyNestedUpdate, HasManyRelation, HasOneNestedInsert, HasOneNestedUpdate, HasOneRelation, Having, HavingArg, HavingItem, IndexColumnOptions, IndexOptions, InetColumn,
|
|
4321
|
+
export { Adapter, AdapterOptions, AddQueryJoinedTable, AddQuerySelect, AddQueryWith, AfterCallback, Aggregate, Aggregate1ArgumentTypes, AggregateArg, AggregateItem, AggregateItemArg, AggregateItemOptions, AggregateOptions, AliasOrTable, AnyColumnType, AnyColumnTypeCreator, ArrayCardinality, ArrayColumn, ArrayData, ArrayOfColumnsObjects, AssertArray, BaseNumberData, BaseRelation, BaseStringData, BeforeCallback, BelongsToNestedInsert, BelongsToNestedUpdate, BelongsToRelation, BigIntColumn, BigSerialColumn, BitColumn, BitVaryingColumn, BooleanColumn, BooleanExpression, BoxColumn, ByteaColumn, CharColumn, CidrColumn, CircleColumn, Clear, ClearStatement, CoalesceString, ColumnData, ColumnInfo, ColumnInfoMethods, ColumnInfoQueryData, ColumnInput, ColumnNameOfModel, ColumnOperators, ColumnOutput, ColumnParser, ColumnShapeInput, ColumnShapeOutput, ColumnType, ColumnTypes, ColumnTypesBase, ColumnsObject, ColumnsParsers, ColumnsShape, CommonQueryData, Create, CreateData, CreateMethodsNames, DateBaseColumn, DateColumn, DateColumnData, DateTimeBaseClass, DateTimeColumnData, DateTimeWithTimeZoneBaseClass, Db, DbOptions, DbTableOptions, DecimalBaseColumn, DecimalColumn, DecimalColumnData, DeepPartial, DefaultSelectColumns, Delete, DeleteQueryData, DoublePrecisionColumn, DropMode, EMPTY_OBJECT, EmptyObject, EnumColumn, EnumLike, Except, Expression, ExpressionOfType, ExpressionOutput, FilterTuple, For, ForeignKey, ForeignKeyModel, ForeignKeyModelWithColumns, ForeignKeyOptions, From, GetArg, HasAndBelongsToManyRelation, HasManyNestedInsert, HasManyNestedUpdate, HasManyRelation, HasOneNestedInsert, HasOneNestedUpdate, HasOneRelation, Having, HavingArg, HavingItem, IndexColumnOptions, IndexOptions, InetColumn, InsertQueryData, IntegerBaseColumn, IntegerColumn, IntervalColumn, IsEqual, JSONAny, JSONArray, JSONBigInt, JSONBoolean, JSONColumn, JSONDate, JSONDiscriminatedObject, JSONDiscriminatedUnion, JSONEnum, JSONInstanceOf, JSONIntersection, JSONLazy, JSONLiteral, JSONMap, JSONNaN, JSONNativeEnum, JSONNever, JSONNotNullable, JSONNotNullish, JSONNull, JSONNullable, JSONNullish, JSONNumber, JSONObject, JSONObjectShape, JSONOptional, JSONRecord, JSONRecordKeyType, JSONRequired, JSONSet, JSONString, JSONTextColumn, JSONTuple, JSONTupleItems, JSONType, JSONTypeAny, JSONTypeData, JSONTypes, JSONUndefined, JSONUnion, JSONUnknown, JSONVoid, Join, JoinArgs, JoinCallback, JoinCallbackArg, JoinItem, JoinedTablesBase, Json, JsonItem, LimitedTextBaseColumn, LineColumn, LsegColumn, MacAddr8Column, MacAddrColumn, MaybeArray, Merge, MergeQuery, MergeQueryMethods, MoneyColumn, MoreThanOneRowError, NestedInsertItem, NestedInsertManyItems, NestedInsertOneItem, NestedUpdateItem, NestedUpdateManyItems, NestedUpdateOneItem, NotFoundError, NullableColumn, NumberAsStringBaseColumn, NumberBaseColumn, NumberColumn, NumberColumnData, NumberExpression, OnConflictItem, OnConflictMergeUpdate, OnConflictQueryBuilder, OnQueryBuilder, Operator, Operators, OrderArg, OrderItem, OutputTypeOfTuple, OutputTypeOfTupleWithRest, OwnTypeProps, PathColumn, PluckResultColumnType, PointColumn, PolygonColumn, PormError, PormInternalError, Primitive, Query, QueryArraysResult, QueryBase, QueryCallbacks, QueryData, QueryError, QueryErrorName, QueryGet, QueryInput, QueryLog, QueryLogObject, QueryLogOptions, QueryLogger, QueryMethods, QueryResult, QueryResultRow, QueryReturnType, QueryReturnsAll, QuerySelectAll, QueryThen, QueryUpsert, QueryWithTable, RawExpression, RealColumn, Relation, RelationQuery, RelationQueryBase, RelationsBase, Select, SelectAgg, SelectArg, SelectFunctionItem, SelectItem, SelectQueryData, Selectable, SelectableBase, SerialColumn, SetOptional, SetQueryJoinedTables, SetQueryReturns, SetQueryReturnsAll, SetQueryReturnsColumnInfo, SetQueryReturnsOne, SetQueryReturnsOneOptional, SetQueryReturnsPluck, SetQueryReturnsRowCount, SetQueryReturnsRows, SetQueryReturnsValue, SetQueryReturnsValueOptional, SetQueryReturnsVoid, SetQueryTableAlias, SetQueryWindows, SetQueryWith, SimpleSpread, SingleColumnIndexOptions, SinglePrimaryKey, SmallIntColumn, SmallSerialColumn, SomeIsTrue, SortDir, Spread, Sql, StringColumn, StringExpression, StringKey, TableData, TextBaseColumn, TextColumn, TextColumnData, Then, ThenResult, TimeColumn, TimeInterval, TimeWithTimeZoneColumn, TimestampColumn, TimestampWithTimeZoneColumn, ToSqlCtx, ToSqlOptions, Transaction, TransactionAdapter, TruncateQueryData, TsQueryColumn, TsVectorColumn, TypeParsers, UUIDColumn, UnhandledTypeError, Union, UnionArg, UnionItem, UnknownKeysParam, Update, UpdateData, UpdateQueryData, UpdateQueryDataItem, UpdateQueryDataObject, UpdatedAtDataInjector, UpsertData, UpsertResult, UpsertThis, ValidationContext, VarCharColumn, Where, WhereArg, WhereInArg, WhereInColumn, WhereInItem, WhereInValues, WhereItem, WhereJsonPathEqualsItem, WhereOnItem, WhereOnJoinItem, WhereQueryBuilder, WhereResult, WindowArg, WindowArgDeclaration, WindowDeclaration, WindowFunctionOptions, WindowItem, With, WithDataBase, WithDataItem, WithItem, WithOptions, XMLColumn, addOr, addOrNot, addParserForRawExpression, addParserForSelectItem, addParserToQuery, addQueryOn, addQueryOrOn, addQuestionMarks, addWhere, addWhereIn, addWhereNot, aggregate1FunctionNames, applyMixins, array, arrayToEnum, baseObjectOutputType, checkIfASimpleQuery, columnTypes, utils as columnUtils, constructType, createDb, createOperator, defaultsKey, discriminatedUnion, emptyObject, enumType, flatten, getClonedQueryData, getColumnTypes, getQueryAs, getQueryParsers, getRaw, getRawSql, getTableData, getValidEnumValues, getValueKey, handleResult, identity, instanceOf, intersection, isRaw, isRequiredRelationKey, joinTruthy, jsonTypes, lazy, literal, logColors, logParamToLogObject, makeRegexToFindInSql, map, nativeEnum, newTableData, noop, notNullable, notNullish, nullable, nullish, object, optional, parseRecord, parseResult, processSelectArg, pushOrNewArray, pushOrNewArrayToObject, pushQueryArray, pushQueryOn, pushQueryOrOn, pushQueryValue, queryMethodByReturnType, queryTypeWithLimitOne, quote, raw, record, relationQueryKey, required, resetTableData, scalarTypes, set, setQueryObjectValue, toArray, toSql, toSqlCacheKey, tuple, union };
|