pqb 0.4.0 → 0.4.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.d.ts +56 -47
- package/dist/index.esm.js +139 -115
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +139 -115
- 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} +106 -98
- package/src/queryMethods/{insert.ts → create.ts} +129 -113
- 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/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
|
@@ -226,10 +226,10 @@ declare class QueryCallbacks {
|
|
|
226
226
|
_beforeQuery<T extends Query>(this: T, cb: BeforeCallback<T>): T;
|
|
227
227
|
afterQuery<T extends Query>(this: T, cb: AfterCallback<T>): T;
|
|
228
228
|
_afterQuery<T extends Query>(this: T, cb: AfterCallback<T>): T;
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
229
|
+
beforeCreate<T extends Query>(this: T, cb: BeforeCallback<T>): T;
|
|
230
|
+
_beforeCreate<T extends Query>(this: T, cb: BeforeCallback<T>): T;
|
|
231
|
+
afterCreate<T extends Query>(this: T, cb: AfterCallback<T>): T;
|
|
232
|
+
_afterCreate<T extends Query>(this: T, cb: AfterCallback<T>): T;
|
|
233
233
|
beforeUpdate<T extends Query>(this: T, cb: BeforeCallback<T>): T;
|
|
234
234
|
_beforeUpdate<T extends Query>(this: T, cb: BeforeCallback<T>): T;
|
|
235
235
|
afterUpdate<T extends Query>(this: T, cb: AfterCallback<T>): T;
|
|
@@ -299,6 +299,7 @@ declare type InsertQueryData = CommonQueryData & {
|
|
|
299
299
|
type: 'insert';
|
|
300
300
|
columns: string[];
|
|
301
301
|
values: unknown[][] | RawExpression;
|
|
302
|
+
fromQuery?: Query;
|
|
302
303
|
using?: JoinItem[];
|
|
303
304
|
join?: JoinItem[];
|
|
304
305
|
joinedParsers?: Record<string, ColumnsParsers>;
|
|
@@ -310,8 +311,8 @@ declare type InsertQueryData = CommonQueryData & {
|
|
|
310
311
|
expr?: OnConflictItem;
|
|
311
312
|
update?: OnConflictMergeUpdate;
|
|
312
313
|
};
|
|
313
|
-
|
|
314
|
-
|
|
314
|
+
beforeCreate?: BeforeCallback[];
|
|
315
|
+
afterCreate?: AfterCallback[];
|
|
315
316
|
};
|
|
316
317
|
declare type UpdateQueryDataObject = Record<string, RawExpression | {
|
|
317
318
|
op: string;
|
|
@@ -1019,18 +1020,18 @@ declare class Json {
|
|
|
1019
1020
|
}): JsonPathQueryResult<T, As, Type>;
|
|
1020
1021
|
}
|
|
1021
1022
|
|
|
1022
|
-
declare type
|
|
1023
|
+
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
1024
|
declare type OmitBelongsToForeignKeys<R extends RelationsBase, Data> = Omit<Data, {
|
|
1024
1025
|
[K in keyof R]: R[K] extends BelongsToRelation ? R[K]['options']['foreignKey'] : never;
|
|
1025
1026
|
}[keyof R]>;
|
|
1026
|
-
declare type
|
|
1027
|
-
[K in keyof T['relations']]: T['relations'][K] extends BelongsToRelation ?
|
|
1027
|
+
declare type CreateRelationData<T extends Query> = {
|
|
1028
|
+
[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
1029
|
}[keyof T['relations']];
|
|
1029
|
-
declare type
|
|
1030
|
+
declare type CreateBelongsToData<T extends Query, Key extends keyof T['relations'], Rel extends BelongsToRelation> = SetOptional<{
|
|
1030
1031
|
[K in Rel['options']['foreignKey']]: Rel['options']['foreignKey'] extends keyof T['inputType'] ? T['inputType'][Rel['options']['foreignKey']] : never;
|
|
1031
1032
|
}, keyof T[defaultsKey]> | {
|
|
1032
1033
|
[K in Key]: {
|
|
1033
|
-
create:
|
|
1034
|
+
create: CreateData<Rel['nestedCreateQuery']>;
|
|
1034
1035
|
connect?: never;
|
|
1035
1036
|
connectOrCreate?: never;
|
|
1036
1037
|
} | {
|
|
@@ -1042,13 +1043,13 @@ declare type InsertBelongsToData<T extends Query, Key extends keyof T['relations
|
|
|
1042
1043
|
connect?: never;
|
|
1043
1044
|
connectOrCreate: {
|
|
1044
1045
|
where: WhereArg<Rel['model']>;
|
|
1045
|
-
create:
|
|
1046
|
+
create: CreateData<Rel['nestedCreateQuery']>;
|
|
1046
1047
|
};
|
|
1047
1048
|
};
|
|
1048
1049
|
};
|
|
1049
|
-
declare type
|
|
1050
|
+
declare type CreateHasOneData<T extends Query, Key extends keyof T['relations'], Rel extends HasOneRelation> = 'through' extends Rel['options'] ? {} : {
|
|
1050
1051
|
[K in Key]?: {
|
|
1051
|
-
create:
|
|
1052
|
+
create: CreateData<Rel['nestedCreateQuery']>;
|
|
1052
1053
|
connect?: never;
|
|
1053
1054
|
connectOrCreate?: never;
|
|
1054
1055
|
} | {
|
|
@@ -1060,44 +1061,48 @@ declare type InsertHasOneData<T extends Query, Key extends keyof T['relations'],
|
|
|
1060
1061
|
connect?: never;
|
|
1061
1062
|
connectOrCreate: {
|
|
1062
1063
|
where?: WhereArg<Rel['model']>;
|
|
1063
|
-
create?:
|
|
1064
|
+
create?: CreateData<Rel['nestedCreateQuery']>;
|
|
1064
1065
|
};
|
|
1065
1066
|
};
|
|
1066
1067
|
};
|
|
1067
|
-
declare type
|
|
1068
|
+
declare type CreateHasManyData<T extends Query, Key extends keyof T['relations'], Rel extends HasManyRelation | HasAndBelongsToManyRelation> = 'through' extends Rel['options'] ? {} : {
|
|
1068
1069
|
[K in Key]?: {
|
|
1069
|
-
create?:
|
|
1070
|
+
create?: CreateData<Rel['nestedCreateQuery']>[];
|
|
1070
1071
|
connect?: WhereArg<Rel['model']>[];
|
|
1071
1072
|
connectOrCreate?: {
|
|
1072
1073
|
where: WhereArg<Rel['model']>;
|
|
1073
|
-
create:
|
|
1074
|
+
create: CreateData<Rel['nestedCreateQuery']>;
|
|
1074
1075
|
}[];
|
|
1075
1076
|
};
|
|
1076
1077
|
};
|
|
1077
|
-
declare type
|
|
1078
|
+
declare type CreateResult<T extends Query> = T extends {
|
|
1079
|
+
isCount: true;
|
|
1080
|
+
} ? T : QueryReturnsAll<T['returnType']> extends true ? SetQueryReturnsOne<T> : T;
|
|
1081
|
+
declare type CreateManyResult<T extends Query> = T extends {
|
|
1082
|
+
isCount: true;
|
|
1083
|
+
} ? T : T['returnType'] extends 'one' | 'oneOrThrow' ? SetQueryReturnsAll<T> : T;
|
|
1084
|
+
declare type CreateRawData = {
|
|
1078
1085
|
columns: string[];
|
|
1079
1086
|
values: RawExpression;
|
|
1080
1087
|
};
|
|
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
1088
|
declare type OnConflictArg<T extends Query> = keyof T['shape'] | (keyof T['shape'])[] | RawExpression;
|
|
1084
|
-
declare class
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
defaults<T extends Query, Data extends Partial<
|
|
1089
|
+
declare class Create {
|
|
1090
|
+
create<T extends Query>(this: T, data: CreateData<T>): CreateResult<T>;
|
|
1091
|
+
_create<T extends Query>(this: T, data: CreateData<T>): CreateResult<T>;
|
|
1092
|
+
createMany<T extends Query>(this: T, data: CreateData<T>[]): CreateManyResult<T>;
|
|
1093
|
+
_createMany<T extends Query>(this: T, data: CreateData<T>[]): CreateManyResult<T>;
|
|
1094
|
+
createRaw<T extends Query>(this: T, data: CreateRawData): CreateManyResult<T>;
|
|
1095
|
+
_createRaw<T extends Query>(this: T, data: CreateRawData): CreateManyResult<T>;
|
|
1096
|
+
createFrom<T extends Query, Q extends Query & {
|
|
1097
|
+
returnType: 'one' | 'oneOrThrow';
|
|
1098
|
+
}>(this: T, query: Q, data: Omit<CreateData<T>, keyof Q['result']>): SetQueryReturnsOne<T>;
|
|
1099
|
+
_createFrom<T extends Query, Q extends Query & {
|
|
1100
|
+
returnType: 'one' | 'oneOrThrow';
|
|
1101
|
+
}>(this: T, query: Q, data: Omit<CreateData<T>, keyof Q['result']>): SetQueryReturnsOne<T>;
|
|
1102
|
+
defaults<T extends Query, Data extends Partial<CreateData<T>>>(this: T, data: Data): T & {
|
|
1098
1103
|
[defaultsKey]: Record<keyof Data, true>;
|
|
1099
1104
|
};
|
|
1100
|
-
_defaults<T extends Query, Data extends Partial<
|
|
1105
|
+
_defaults<T extends Query, Data extends Partial<CreateData<T>>>(this: T, data: Data): T & {
|
|
1101
1106
|
[defaultsKey]: Record<keyof Data, true>;
|
|
1102
1107
|
};
|
|
1103
1108
|
onConflict<T extends Query, Arg extends OnConflictArg<T>>(this: T, arg?: Arg): OnConflictQueryBuilder<T, Arg>;
|
|
@@ -1127,11 +1132,11 @@ declare type UpdateBelongsToData<T extends Query, Rel extends BelongsToRelation>
|
|
|
1127
1132
|
} | {
|
|
1128
1133
|
update: UpdateData<Rel['model']>;
|
|
1129
1134
|
} | {
|
|
1130
|
-
create:
|
|
1135
|
+
create: CreateData<Rel['nestedCreateQuery']>;
|
|
1131
1136
|
} | (QueryReturnsAll<T['returnType']> extends true ? never : {
|
|
1132
1137
|
upsert: {
|
|
1133
1138
|
update: UpdateData<Rel['model']>;
|
|
1134
|
-
create:
|
|
1139
|
+
create: CreateData<Rel['nestedCreateQuery']>;
|
|
1135
1140
|
};
|
|
1136
1141
|
});
|
|
1137
1142
|
declare type UpdateHasOneData<T extends Query, Rel extends HasOneRelation> = {
|
|
@@ -1145,10 +1150,10 @@ declare type UpdateHasOneData<T extends Query, Rel extends HasOneRelation> = {
|
|
|
1145
1150
|
} | {
|
|
1146
1151
|
upsert: {
|
|
1147
1152
|
update: UpdateData<Rel['model']>;
|
|
1148
|
-
create:
|
|
1153
|
+
create: CreateData<Rel['nestedCreateQuery']>;
|
|
1149
1154
|
};
|
|
1150
1155
|
} | {
|
|
1151
|
-
create:
|
|
1156
|
+
create: CreateData<Rel['nestedCreateQuery']>;
|
|
1152
1157
|
});
|
|
1153
1158
|
declare type UpdateHasManyData<T extends Query, Rel extends HasManyRelation> = {
|
|
1154
1159
|
disconnect?: MaybeArray<WhereArg<Rel['model']>>;
|
|
@@ -1159,7 +1164,7 @@ declare type UpdateHasManyData<T extends Query, Rel extends HasManyRelation> = {
|
|
|
1159
1164
|
};
|
|
1160
1165
|
} & (QueryReturnsAll<T['returnType']> extends true ? EmptyObject : {
|
|
1161
1166
|
set?: MaybeArray<WhereArg<Rel['model']>>;
|
|
1162
|
-
create?:
|
|
1167
|
+
create?: CreateData<Rel['nestedCreateQuery']>[];
|
|
1163
1168
|
});
|
|
1164
1169
|
declare type UpdateHasAndBelongsToManyData<Rel extends HasAndBelongsToManyRelation> = {
|
|
1165
1170
|
disconnect?: MaybeArray<WhereArg<Rel['model']>>;
|
|
@@ -1169,7 +1174,7 @@ declare type UpdateHasAndBelongsToManyData<Rel extends HasAndBelongsToManyRelati
|
|
|
1169
1174
|
where: MaybeArray<WhereArg<Rel['model']>>;
|
|
1170
1175
|
data: UpdateData<Rel['model']>;
|
|
1171
1176
|
};
|
|
1172
|
-
create?:
|
|
1177
|
+
create?: CreateData<Rel['nestedCreateQuery']>[];
|
|
1173
1178
|
};
|
|
1174
1179
|
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
1180
|
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 +1272,7 @@ declare class Window {
|
|
|
1267
1272
|
|
|
1268
1273
|
declare type UpsertData<T extends Query> = {
|
|
1269
1274
|
update: UpdateData<T>;
|
|
1270
|
-
create:
|
|
1275
|
+
create: CreateData<T>;
|
|
1271
1276
|
};
|
|
1272
1277
|
declare type UpsertResult<T extends Query> = T['hasSelect'] extends true ? SetQueryReturnsOne<T> : SetQueryReturnsVoid<T>;
|
|
1273
1278
|
declare type UpsertThis = WhereResult<Query> & {
|
|
@@ -1306,7 +1311,7 @@ declare type OrderArg<T extends Query> = keyof T['selectable'] | {
|
|
|
1306
1311
|
nulls: 'FIRST' | 'LAST';
|
|
1307
1312
|
};
|
|
1308
1313
|
} | RawExpression;
|
|
1309
|
-
interface QueryMethods extends Aggregate, Select, From, Join, With, Union, Json,
|
|
1314
|
+
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
1315
|
}
|
|
1311
1316
|
declare class QueryMethods {
|
|
1312
1317
|
windows: EmptyObject;
|
|
@@ -1411,8 +1416,12 @@ declare type WindowFunctionOptions<T extends Query = Query, As extends string |
|
|
|
1411
1416
|
declare class Aggregate {
|
|
1412
1417
|
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
1418
|
_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
|
-
|
|
1419
|
+
count<T extends Query>(this: T, arg?: AT1<T>['count'] | '*', options?: AggregateOptions<T>): SetQueryReturnsValue<T, NumberColumn> & {
|
|
1420
|
+
isCount: true;
|
|
1421
|
+
};
|
|
1422
|
+
_count<T extends Query>(this: T, arg?: AT1<T>['count'] | '*', options?: AggregateOptions<T>): SetQueryReturnsValue<T, NumberColumn> & {
|
|
1423
|
+
isCount: true;
|
|
1424
|
+
};
|
|
1416
1425
|
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
1426
|
_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
1427
|
avg<T extends Query>(this: T, arg: Aggregate1ArgumentTypes<T>['avg'], options?: AggregateOptions<T>): SetQueryReturnsValue<T, NullableColumn<NumberColumn>>;
|
|
@@ -4305,4 +4314,4 @@ declare const setQueryObjectValue: <T extends {
|
|
|
4305
4314
|
query: QueryData;
|
|
4306
4315
|
}>(q: T, object: string, key: string, value: unknown) => T;
|
|
4307
4316
|
|
|
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,
|
|
4317
|
+
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, 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 };
|