pqb 0.3.0 → 0.3.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 CHANGED
@@ -18,6 +18,7 @@ declare type ExpressionOutput<T extends Query, Expr extends Expression<T>> = Exp
18
18
  declare const raw: <C extends ColumnType<unknown, Operators, unknown>>(...args: [column: C, sql: string, ...values: unknown[]] | [sql: string, ...values: unknown[]]) => RawExpression<C>;
19
19
  declare const isRaw: (obj: object) => obj is RawExpression<ColumnType<unknown, Operators, unknown>>;
20
20
  declare const getRaw: (raw: RawExpression, values: unknown[]) => string;
21
+ declare const getRawSql: (raw: RawExpression) => string;
21
22
  declare const EMPTY_OBJECT: {};
22
23
  declare const getQueryParsers: (q: Query) => ColumnsParsers | undefined;
23
24
 
@@ -360,8 +361,8 @@ declare class Aggregate {
360
361
  _selectStringAgg<T extends Query, As extends string | undefined = undefined>(this: T, arg: StringExpression<T>, delimiter: string, options?: AggregateOptions<T, As>): SelectAgg<T, 'string_agg', As, NullableColumn<StringColumn>>;
361
362
  }
362
363
 
363
- declare type BeforeCallback<T extends Query> = (query: T) => void | Promise<void>;
364
- declare type AfterCallback<T extends Query> = (query: T, data: unknown) => void | Promise<void>;
364
+ declare type BeforeCallback<T extends Query = Query> = (query: T) => void | Promise<void>;
365
+ declare type AfterCallback<T extends Query = Query> = (query: T, data: unknown) => void | Promise<void>;
365
366
  declare class QueryCallbacks {
366
367
  beforeQuery<T extends Query>(this: T, cb: BeforeCallback<T>): T;
367
368
  _beforeQuery<T extends Query>(this: T, cb: BeforeCallback<T>): T;
@@ -375,6 +376,10 @@ declare class QueryCallbacks {
375
376
  _beforeUpdate<T extends Query>(this: T, cb: BeforeCallback<T>): T;
376
377
  afterUpdate<T extends Query>(this: T, cb: AfterCallback<T>): T;
377
378
  _afterUpdate<T extends Query>(this: T, cb: AfterCallback<T>): T;
379
+ beforeDelete<T extends Query>(this: T, cb: BeforeCallback<T>): T;
380
+ _beforeDelete<T extends Query>(this: T, cb: BeforeCallback<T>): T;
381
+ afterDelete<T extends Query>(this: T, cb: AfterCallback<T>): T;
382
+ _afterDelete<T extends Query>(this: T, cb: AfterCallback<T>): T;
378
383
  }
379
384
 
380
385
  declare type ClearStatement = 'with' | 'select' | 'where' | 'union' | 'using' | 'join' | 'group' | 'order' | 'having' | 'limit' | 'offset' | 'counters';
@@ -740,7 +745,9 @@ declare type UpdateData<T extends Query> = {
740
745
  [K in keyof T['type']]?: T['type'][K] | RawExpression;
741
746
  } & (T['relations'] extends Record<string, Relation> ? {
742
747
  [K in keyof T['relations']]?: T['relations'][K] extends BelongsToRelation ? UpdateBelongsToData<T, T['relations'][K]> : T['relations'][K] extends HasOneRelation ? UpdateHasOneData<T, T['relations'][K]> : T['relations'][K] extends HasManyRelation ? UpdateHasManyData<T, T['relations'][K]> : T['relations'][K] extends HasAndBelongsToManyRelation ? UpdateHasAndBelongsToManyData<T['relations'][K]> : never;
743
- } : EmptyObject);
748
+ } : EmptyObject) & {
749
+ __raw?: never;
750
+ };
744
751
  declare type UpdateBelongsToData<T extends Query, Rel extends BelongsToRelation> = {
745
752
  disconnect: boolean;
746
753
  } | {
@@ -794,12 +801,15 @@ declare type UpdateHasAndBelongsToManyData<Rel extends HasAndBelongsToManyRelati
794
801
  };
795
802
  create?: InsertData<Rel['nestedCreateQuery']>[];
796
803
  };
797
- declare type UpdateArgs<T extends Query, ForceAll extends boolean> = (T['hasWhere'] extends true ? true : ForceAll) extends true ? [update: RawExpression | UpdateData<T>, forceAll?: ForceAll] : [update: RawExpression | UpdateData<T>, forceAll: true];
804
+ 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];
805
+ declare type UpdateRawArgs<T extends Query, ForceAll extends boolean> = (T['hasWhere'] extends true ? true : ForceAll) extends true ? [update: RawExpression] : [update: RawExpression, forceAll: true];
798
806
  declare type UpdateResult<T extends Query> = T['hasSelect'] extends false ? SetQueryReturnsRowCount<T> : T;
799
807
  declare type ChangeCountArg<T extends Query> = keyof T['shape'] | Partial<Record<keyof T['shape'], number>>;
800
808
  declare class Update {
801
809
  update<T extends Query, ForceAll extends boolean = false>(this: T, ...args: UpdateArgs<T, ForceAll>): UpdateResult<T>;
802
810
  _update<T extends Query, ForceAll extends boolean = false>(this: T, ...args: UpdateArgs<T, ForceAll>): UpdateResult<T>;
811
+ updateRaw<T extends Query, ForceAll extends boolean = false>(this: T, ...args: UpdateRawArgs<T, ForceAll>): UpdateResult<T>;
812
+ _updateRaw<T extends Query, ForceAll extends boolean = false>(this: T, ...args: UpdateRawArgs<T, ForceAll>): UpdateResult<T>;
803
813
  updateOrThrow<T extends Query, ForceAll extends boolean = false>(this: T, ...args: UpdateArgs<T, ForceAll>): UpdateResult<T>;
804
814
  _updateOrThrow<T extends Query, ForceAll extends boolean = false>(this: T, ...args: UpdateArgs<T, ForceAll>): UpdateResult<T>;
805
815
  increment<T extends Query>(this: T, data: ChangeCountArg<T>): UpdateResult<T>;
@@ -821,6 +831,17 @@ declare class QueryUpsert {
821
831
  _upsert<T extends UpsertThis>(this: T, data: UpsertData<T>): UpsertResult<T>;
822
832
  }
823
833
 
834
+ declare function timestamps<T extends ColumnType>(this: {
835
+ timestamp(): T;
836
+ }): {
837
+ createdAt: T & {
838
+ hasDefault: true;
839
+ };
840
+ updatedAt: T & {
841
+ hasDefault: true;
842
+ };
843
+ };
844
+
824
845
  declare type DbTableOptions = {
825
846
  schema?: string;
826
847
  } & QueryLogOptions;
@@ -961,16 +982,7 @@ declare const createDb: <CT extends ColumnTypesBase = {
961
982
  }) => Type)) => JSONColumn<Type>;
962
983
  jsonText: () => JSONTextColumn;
963
984
  array: <Item extends ColumnType<unknown, Operators, unknown>>(item: Item) => ArrayColumn<Item>;
964
- timestamps<T_14 extends ColumnType<unknown, Operators, unknown>>(this: {
965
- timestamp(): T_14;
966
- }): {
967
- createdAt: T_14 & {
968
- hasDefault: true;
969
- };
970
- updatedAt: T_14 & {
971
- hasDefault: true;
972
- };
973
- };
985
+ timestamps: typeof timestamps;
974
986
  primaryKey(columns: string[], options?: {
975
987
  name?: string | undefined;
976
988
  } | undefined): {};
@@ -1151,10 +1163,11 @@ declare type CommonQueryData = {
1151
1163
  parsers?: ColumnsParsers;
1152
1164
  notFoundDefault?: unknown;
1153
1165
  defaults?: Record<string, unknown>;
1154
- beforeQuery?: BeforeCallback<Query>[];
1155
- afterQuery?: AfterCallback<Query>[];
1166
+ beforeQuery?: BeforeCallback[];
1167
+ afterQuery?: AfterCallback[];
1156
1168
  log?: QueryLogObject;
1157
1169
  logger: QueryLogger;
1170
+ [toSqlCacheKey]?: Sql;
1158
1171
  };
1159
1172
  declare type SelectQueryData = CommonQueryData & {
1160
1173
  type: undefined;
@@ -1195,22 +1208,27 @@ declare type InsertQueryData = CommonQueryData & {
1195
1208
  expr?: OnConflictItem;
1196
1209
  update?: OnConflictMergeUpdate;
1197
1210
  };
1198
- beforeInsert?: BeforeCallback<Query>[];
1199
- afterInsert?: AfterCallback<Query>[];
1211
+ beforeInsert?: BeforeCallback[];
1212
+ afterInsert?: AfterCallback[];
1200
1213
  };
1214
+ declare type UpdateQueryDataObject = Record<string, RawExpression | {
1215
+ op: string;
1216
+ arg: unknown;
1217
+ } | unknown>;
1218
+ declare type UpdatedAtDataInjector = (data: UpdateQueryDataItem[]) => UpdateQueryDataItem | void;
1219
+ declare type UpdateQueryDataItem = UpdateQueryDataObject | RawExpression | UpdatedAtDataInjector;
1201
1220
  declare type UpdateQueryData = CommonQueryData & {
1202
1221
  type: 'update';
1203
- data: (Record<string, RawExpression | {
1204
- op: string;
1205
- arg: unknown;
1206
- } | unknown> | RawExpression)[];
1207
- beforeUpdate?: BeforeCallback<Query>[];
1208
- afterUpdate?: AfterCallback<Query>[];
1222
+ updateData: UpdateQueryDataItem[];
1223
+ beforeUpdate?: BeforeCallback[];
1224
+ afterUpdate?: AfterCallback[];
1209
1225
  };
1210
1226
  declare type DeleteQueryData = CommonQueryData & {
1211
1227
  type: 'delete';
1212
1228
  join?: JoinItem[];
1213
1229
  joinedParsers?: Record<string, ColumnsParsers>;
1230
+ beforeDelete?: BeforeCallback[];
1231
+ afterDelete?: AfterCallback[];
1214
1232
  };
1215
1233
  declare type TruncateQueryData = CommonQueryData & {
1216
1234
  type: 'truncate';
@@ -1369,7 +1387,13 @@ declare type ToSqlCtx = {
1369
1387
  sql: string[];
1370
1388
  values: unknown[];
1371
1389
  };
1372
- declare const toSql: (model: Query, values?: unknown[]) => Sql;
1390
+ declare type toSqlCacheKey = typeof toSqlCacheKey;
1391
+ declare const toSqlCacheKey: unique symbol;
1392
+ declare type ToSqlOptions = {
1393
+ clearCache?: boolean;
1394
+ values?: unknown[];
1395
+ };
1396
+ declare const toSql: (model: Query, options?: ToSqlOptions) => Sql;
1373
1397
 
1374
1398
  declare type SomeIsTrue<T extends unknown[]> = T extends [
1375
1399
  infer Head,
@@ -1430,6 +1454,9 @@ declare const toArray: <T>(item: T) => T extends unknown[] ? T : [T];
1430
1454
  declare const noop: () => void;
1431
1455
  declare type EmptyObject = typeof emptyObject;
1432
1456
  declare const emptyObject: {};
1457
+ declare const makeRegexToFindInSql: (value: string) => RegExp;
1458
+ declare const pushOrNewArrayToObject: <Obj extends {}, Key extends keyof Obj>(obj: Obj, key: Key, value: Exclude<Obj[Key], undefined> extends unknown[] ? Exclude<Obj[Key], undefined>[number] : never) => void;
1459
+ declare const pushOrNewArray: <Arr extends unknown[]>(arr: Arr | undefined, value: Arr[number]) => Arr;
1433
1460
 
1434
1461
  declare class Window {
1435
1462
  selectRowNumber<T extends Query, As extends string | undefined = undefined>(this: T, options: WindowFunctionOptions<T, As>): SelectAgg<T, 'row_number', As, IntegerColumn>;
@@ -1474,7 +1501,7 @@ declare class QueryMethods {
1474
1501
  exec<T extends Query>(this: T): SetQueryReturnsVoid<T>;
1475
1502
  _exec<T extends Query>(this: T): SetQueryReturnsVoid<T>;
1476
1503
  clone<T extends QueryBase>(this: T): T;
1477
- toSql(this: Query, values?: unknown[]): Sql;
1504
+ toSql(this: Query, options?: ToSqlOptions): Sql;
1478
1505
  distinct<T extends Query>(this: T, ...columns: Expression<T>[]): T;
1479
1506
  _distinct<T extends Query>(this: T, ...columns: Expression<T>[]): T;
1480
1507
  find<T extends Query>(this: T, ...args: GetTypesOrRaw<T['schema']['primaryTypes']>): SetQueryReturnsOne<WhereResult<T>>;
@@ -2268,6 +2295,7 @@ declare type ColumnData = {
2268
2295
  collate?: string;
2269
2296
  compression?: string;
2270
2297
  foreignKey?: ForeignKey<string, string[]>;
2298
+ modifyQuery?: (q: Query) => void;
2271
2299
  };
2272
2300
  declare type ForeignKeyMatch = 'FULL' | 'PARTIAL' | 'SIMPLE';
2273
2301
  declare type ForeignKeyAction = 'NO ACTION' | 'RESTRICT' | 'CASCADE' | 'SET NULL' | 'SET DEFAULT';
@@ -2359,6 +2387,7 @@ declare abstract class ColumnType<Type = unknown, Ops extends Operators = Operat
2359
2387
  validationDefault<T extends ColumnType>(this: T, value: T['type']): T;
2360
2388
  compression<T extends ColumnType>(this: T, compression: string): T;
2361
2389
  collate<T extends ColumnType>(this: T, collate: string): T;
2390
+ modifyQuery<T extends ColumnType>(this: T, cb: (q: Query) => void): T;
2362
2391
  transform<T extends ColumnType, Transformed>(this: T, fn: (input: T['type'], ctx: ValidationContext) => Transformed): Omit<T, 'type'> & {
2363
2392
  type: Transformed;
2364
2393
  };
@@ -4290,16 +4319,7 @@ declare const columnTypes: {
4290
4319
  json: <Type extends JSONTypeAny>(schemaOrFn: Type | ((j: JSONTypes) => Type)) => JSONColumn<Type>;
4291
4320
  jsonText: () => JSONTextColumn;
4292
4321
  array: <Item extends ColumnType<unknown, Operators, unknown>>(item: Item) => ArrayColumn<Item>;
4293
- timestamps<T_1 extends ColumnType<unknown, Operators, unknown>>(this: {
4294
- timestamp(): T_1;
4295
- }): {
4296
- createdAt: T_1 & {
4297
- hasDefault: true;
4298
- };
4299
- updatedAt: T_1 & {
4300
- hasDefault: true;
4301
- };
4302
- };
4322
+ timestamps: typeof timestamps;
4303
4323
  primaryKey(columns: string[], options?: {
4304
4324
  name?: string;
4305
4325
  }): {};
@@ -4351,4 +4371,4 @@ declare class UnhandledTypeError extends PormInternalError {
4351
4371
  constructor(value: never);
4352
4372
  }
4353
4373
 
4354
- 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, GetTypeOrRaw, GetTypesOrRaw, HasAndBelongsToManyRelation, HasManyNestedInsert, HasManyNestedUpdate, HasManyRelation, HasOneNestedInsert, HasOneNestedUpdate, HasOneRelation, Having, HavingArg, HavingItem, IndexColumnOptions, IndexOptions, InetColumn, Insert, InsertData, 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, 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, PropertyKeyUnionToArray, Query, QueryArraysResult, QueryBase, QueryCallbacks, QueryData, QueryGet, QueryInput, QueryLog, QueryLogObject, QueryLogOptions, QueryLogger, QueryMethods, QueryResult, QueryResultRow, QueryReturnType, QuerySelectAll, 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, SmallIntColumn, SmallSerialColumn, SomeIsTrue, SortDir, Spread, Sql, StringColumn, StringExpression, StringKey, TableData, TableSchema, TextBaseColumn, TextColumn, TextColumnData, Then, ThenResult, TimeColumn, TimeInterval, TimeWithTimeZoneColumn, TimestampColumn, TimestampWithTimeZoneColumn, ToSqlCtx, Transaction, TransactionAdapter, TruncateQueryData, TsQueryColumn, TsVectorColumn, TypeParsers, UUIDColumn, UnhandledTypeError, Union, UnionArg, UnionItem, UnionToArray, UnionToIntersection, UnionToOvlds, UnknownKeysParam, Update, UpdateData, UpdateQueryData, 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, columnTypes, utils as columnUtils, constructType, createDb, createOperator, defaultsKey, discriminatedUnion, emptyObject, enumType, flatten, getClonedQueryData, getColumnTypes, getQueryAs, getQueryParsers, getRaw, getTableData, getValidEnumValues, getValueKey, handleResult, identity, instanceOf, intersection, isRaw, isRequiredRelationKey, joinTruthy, jsonTypes, lazy, literal, logColors, logParamToLogObject, map, nativeEnum, newTableData, noop, notNullable, notNullish, nullable, nullish, object, optional, parseRecord, parseResult, processSelectArg, pushQueryArray, pushQueryOn, pushQueryOrOn, pushQueryValue, queryKeysOfNotSimpleQuery, queryMethodByReturnType, quote, raw, record, relationQueryKey, removeFromQuery, required, resetTableData, scalarTypes, set, setQueryObjectValue, toArray, toSql, tuple, union };
4374
+ 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, GetTypeOrRaw, GetTypesOrRaw, HasAndBelongsToManyRelation, HasManyNestedInsert, HasManyNestedUpdate, HasManyRelation, HasOneNestedInsert, HasOneNestedUpdate, HasOneRelation, Having, HavingArg, HavingItem, IndexColumnOptions, IndexOptions, InetColumn, Insert, InsertData, 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, 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, PropertyKeyUnionToArray, Query, QueryArraysResult, QueryBase, QueryCallbacks, QueryData, QueryGet, QueryInput, QueryLog, QueryLogObject, QueryLogOptions, QueryLogger, QueryMethods, QueryResult, QueryResultRow, QueryReturnType, QuerySelectAll, 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, SmallIntColumn, SmallSerialColumn, SomeIsTrue, SortDir, Spread, Sql, StringColumn, StringExpression, StringKey, TableData, TableSchema, TextBaseColumn, TextColumn, TextColumnData, Then, ThenResult, TimeColumn, TimeInterval, TimeWithTimeZoneColumn, TimestampColumn, TimestampWithTimeZoneColumn, ToSqlCtx, ToSqlOptions, Transaction, TransactionAdapter, TruncateQueryData, TsQueryColumn, TsVectorColumn, TypeParsers, UUIDColumn, UnhandledTypeError, Union, UnionArg, UnionItem, UnionToArray, UnionToIntersection, UnionToOvlds, 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, 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, queryKeysOfNotSimpleQuery, queryMethodByReturnType, quote, raw, record, relationQueryKey, removeFromQuery, required, resetTableData, scalarTypes, set, setQueryObjectValue, toArray, toSql, toSqlCacheKey, tuple, union };