pqb 0.0.5 → 0.0.7

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
@@ -430,6 +430,7 @@ declare type BaseRelation = {
430
430
  type: string;
431
431
  key: string;
432
432
  model: QueryWithTable;
433
+ query: QueryWithTable;
433
434
  joinQuery: Query;
434
435
  nestedCreateQuery: Query;
435
436
  nestedInsert?: BelongsToNestedInsert | HasOneNestedInsert | HasManyNestedInsert;
@@ -883,7 +884,7 @@ declare const noop: () => void;
883
884
  declare type EmptyObject = typeof emptyObject;
884
885
  declare const emptyObject: {};
885
886
 
886
- declare type ThenResult<Res> = <T extends Query>(this: T, resolve?: (value: Res) => any, reject?: (error: any) => any) => Promise<Res | never>;
887
+ declare type ThenResult<Res> = (resolve?: (value: Res) => any, reject?: (error: any) => any) => Promise<Res | never>;
887
888
  declare const queryMethodByReturnType: Record<QueryReturnType, 'query' | 'arrays'>;
888
889
  declare class Then {
889
890
  then(this: Query, resolve?: (result: any) => any, reject?: (error: any) => any): Promise<any>;
@@ -1129,7 +1130,99 @@ declare type DbOptions<CT extends ColumnTypesBase = ColumnTypes> = ({
1129
1130
  } | Omit<AdapterOptions, 'log'>) & QueryLogOptions & {
1130
1131
  columnTypes?: CT;
1131
1132
  };
1132
- declare const createDb: <CT extends ColumnTypesBase>({ log, logger, columnTypes: ct, ...options }: DbOptions<CT>) => DbResult<CT>;
1133
+ declare const createDb: <CT extends ColumnTypesBase = {
1134
+ smallint: () => SmallIntColumn;
1135
+ integer: () => IntegerColumn;
1136
+ bigint: () => BigIntColumn;
1137
+ numeric: <Precision extends number | undefined = undefined, Scale extends number | undefined = undefined>(precision?: Precision | undefined, scale?: Scale | undefined) => DecimalColumn<Precision, Scale>;
1138
+ decimal: <Precision_1 extends number | undefined = undefined, Scale_1 extends number | undefined = undefined>(precision?: Precision_1 | undefined, scale?: Scale_1 | undefined) => DecimalColumn<Precision_1, Scale_1>;
1139
+ real: () => RealColumn;
1140
+ doublePrecision: () => DoublePrecisionColumn;
1141
+ smallSerial: () => SmallSerialColumn;
1142
+ serial: () => SerialColumn;
1143
+ bigSerial: () => BigSerialColumn;
1144
+ money: () => MoneyColumn;
1145
+ varchar: <Limit extends number | undefined = undefined>(limit?: Limit | undefined) => VarCharColumn<Limit>;
1146
+ char: <Limit_1 extends number | undefined = undefined>(limit?: Limit_1 | undefined) => CharColumn<Limit_1>;
1147
+ text: () => TextColumn;
1148
+ string: () => TextColumn;
1149
+ bytea: () => ByteaColumn;
1150
+ date: () => DateColumn;
1151
+ timestamp: <Precision_2 extends number | undefined = undefined>(precision?: Precision_2 | undefined) => TimestampColumn<Precision_2>;
1152
+ timestampWithTimeZone: <Precision_3 extends number | undefined = undefined>(precision?: Precision_3 | undefined) => TimestampWithTimeZoneColumn<Precision_3>;
1153
+ time: <Precision_4 extends number | undefined = undefined>(precision?: Precision_4 | undefined) => TimeColumn<Precision_4>;
1154
+ timeWithTimeZone: <Precision_5 extends number | undefined = undefined>(precision?: Precision_5 | undefined) => TimeWithTimeZoneColumn<Precision_5>;
1155
+ interval: <Fields extends string | undefined = undefined, Precision_6 extends number | undefined = undefined>(fields?: Fields | undefined, precision?: Precision_6 | undefined) => IntervalColumn<Fields, Precision_6>;
1156
+ boolean: () => BooleanColumn;
1157
+ enum: <U extends string, T extends [U, ...U[]]>(dataType: string, type: T) => EnumColumn<U, T>;
1158
+ point: () => PointColumn;
1159
+ line: () => LineColumn;
1160
+ lseg: () => LsegColumn;
1161
+ box: () => BoxColumn;
1162
+ path: () => PathColumn;
1163
+ polygon: () => PolygonColumn;
1164
+ circle: () => CircleColumn;
1165
+ cidr: () => CidrColumn;
1166
+ inet: () => InetColumn;
1167
+ macaddr: () => MacAddrColumn;
1168
+ macaddr8: () => MacAddr8Column;
1169
+ bit: <Length extends number>(length: Length) => BitColumn<Length>;
1170
+ bitVarying: <Length_1 extends number | undefined = undefined>(length?: Length_1 | undefined) => BitVaryingColumn<Length_1 | undefined>;
1171
+ tsvector: () => TsVectorColumn;
1172
+ tsquery: () => TsQueryColumn;
1173
+ uuid: () => UUIDColumn;
1174
+ xml: () => XMLColumn;
1175
+ json: <Type extends JSONTypeAny>(schemaOrFn: Type | ((j: {
1176
+ set: <Value extends JSONTypeAny>(valueType: Value) => JSONSet<Value>;
1177
+ tuple: <T_1 extends [] | JSONTupleItems, Rest extends JSONTypeAny | null = null>(items: T_1, rest?: Rest) => JSONTuple<T_1, Rest>;
1178
+ union: <T_2 extends [JSONTypeAny, JSONTypeAny, ...JSONTypeAny[]]>(types: T_2) => JSONUnion<T_2>;
1179
+ any: () => JSONAny;
1180
+ bigint: () => JSONBigInt;
1181
+ boolean: () => JSONBoolean;
1182
+ date: () => JSONDate;
1183
+ nan: () => JSONNaN;
1184
+ never: () => JSONNever;
1185
+ null: () => JSONNull;
1186
+ number: () => JSONNumber;
1187
+ string: () => JSONString;
1188
+ undefined: () => JSONUndefined;
1189
+ unknown: () => JSONUnknown;
1190
+ void: () => JSONVoid;
1191
+ array: <Type_1 extends JSONTypeAny>(element: Type_1) => JSONArray<Type_1, "many">;
1192
+ discriminatedUnion: <Discriminator extends string, DiscriminatorValue extends Primitive, Types extends [JSONDiscriminatedObject<Discriminator, DiscriminatorValue>, JSONDiscriminatedObject<Discriminator, DiscriminatorValue>, ...JSONDiscriminatedObject<Discriminator, DiscriminatorValue>[]]>(discriminator: Discriminator, options: Types) => JSONDiscriminatedUnion<Discriminator, DiscriminatorValue, Types[number]>;
1193
+ enum: <U_1 extends string, T_3 extends [U_1, ...U_1[]]>(options: T_3) => JSONEnum<U_1, T_3>;
1194
+ instanceOf: <T_4 extends new (...args: any[]) => any>(cls: T_4) => JSONInstanceOf<T_4>;
1195
+ intersection: <Left extends JSONTypeAny, Right extends JSONTypeAny>(left: Left, right: Right) => JSONIntersection<Left, Right>;
1196
+ lazy: <T_5 extends JSONTypeAny>(fn: () => T_5) => JSONLazy<T_5>;
1197
+ literal: <T_6 extends Primitive>(value: T_6) => JSONLiteral<T_6>;
1198
+ map: <Key extends JSONTypeAny, Value_1 extends JSONTypeAny>(keyType: Key, valueType: Value_1) => JSONMap<Key, Value_1>;
1199
+ nativeEnum: <T_7 extends EnumLike>(givenEnum: T_7) => JSONNativeEnum<T_7>;
1200
+ nullable: <T_8 extends JSONTypeAny>(type: T_8) => JSONNullable<T_8>;
1201
+ nullish: <T_9 extends JSONTypeAny>(type: T_9) => JSONNullish<T_9>;
1202
+ object: <T_10 extends JSONObjectShape, UnknownKeys extends UnknownKeysParam = "strip", Catchall extends JSONTypeAny = JSONTypeAny>(shape: T_10) => JSONObject<T_10, UnknownKeys, Catchall, JSONTypeAny extends Catchall ? addQuestionMarks<{ [k_1 in keyof T_10]: T_10[k_1]["type"]; }> extends infer T_11 ? { [k in keyof T_11]: addQuestionMarks<{ [k_1 in keyof T_10]: T_10[k_1]["type"]; }>[k]; } : never : (addQuestionMarks<{ [k_1 in keyof T_10]: T_10[k_1]["type"]; }> extends infer T_11 ? { [k in keyof T_11]: addQuestionMarks<{ [k_1 in keyof T_10]: T_10[k_1]["type"]; }>[k]; } : never) & {
1203
+ [k: string]: Catchall["type"];
1204
+ } extends infer T_12 ? { [k_2 in keyof T_12]: ((addQuestionMarks<{ [k_1 in keyof T_10]: T_10[k_1]["type"]; }> extends infer T_11 ? { [k in keyof T_11]: addQuestionMarks<{ [k_1 in keyof T_10]: T_10[k_1]["type"]; }>[k]; } : never) & {
1205
+ [k: string]: Catchall["type"];
1206
+ })[k_2]; } : never>;
1207
+ optional: <T_13 extends JSONTypeAny>(type: T_13) => JSONOptional<T_13>;
1208
+ record: typeof record;
1209
+ }) => Type)) => JSONColumn<Type>;
1210
+ jsonText: () => JSONTextColumn;
1211
+ array: <Item extends ColumnType<unknown, Operators, unknown>>(item: Item) => ArrayColumn<Item>;
1212
+ timestamps: () => {
1213
+ createdAt: TimestampColumn<undefined>;
1214
+ updatedAt: TimestampColumn<undefined>;
1215
+ };
1216
+ primaryKey(columns: string[], options?: {
1217
+ name?: string | undefined;
1218
+ } | undefined): {};
1219
+ index(columns: MaybeArray<string | IndexColumnOptions>, options?: IndexOptions): {};
1220
+ unique(columns: MaybeArray<string | IndexColumnOptions>, options?: IndexOptions): {};
1221
+ foreignKey: {
1222
+ <Model extends ForeignKeyModelWithColumns, Columns extends [Exclude<keyof InstanceType<Model>["columns"]["shape"], number | symbol>, ...Exclude<keyof InstanceType<Model>["columns"]["shape"], number | symbol>[]]>(columns: string[], fn: () => Model, foreignColumns: Columns, options?: ForeignKeyOptions | undefined): {};
1223
+ <Table extends string, Columns_1 extends [string, ...string[]]>(columns: string[], table: Table, foreignColumns: Columns_1, options?: ForeignKeyOptions | undefined): {};
1224
+ };
1225
+ }>({ log, logger, columnTypes: ct, ...options }: DbOptions<CT>) => DbResult<CT>;
1133
1226
 
1134
1227
  declare type WithArgsOptions = Omit<WithOptions, 'columns'> & {
1135
1228
  columns?: boolean | string[];
@@ -1735,10 +1828,12 @@ declare type JSONOptional<T extends JSONTypeAny> = Omit<T, 'type' | 'data'> & {
1735
1828
  optional: true;
1736
1829
  };
1737
1830
  };
1831
+ declare const optional: <T extends JSONTypeAny>(type: T) => JSONOptional<T>;
1738
1832
  declare type JSONRequired<T extends JSONTypeAny> = Omit<T, 'type' | 'data'> & {
1739
1833
  type: Exclude<T['type'], undefined>;
1740
1834
  data: Omit<T['data'], 'optional'>;
1741
1835
  };
1836
+ declare const required: <T extends JSONTypeAny>(type: T) => JSONRequired<T>;
1742
1837
 
1743
1838
  declare type JSONNullable<T extends JSONTypeAny> = Omit<T, 'type' | 'data'> & {
1744
1839
  type: T['type'] | null;
@@ -1746,10 +1841,12 @@ declare type JSONNullable<T extends JSONTypeAny> = Omit<T, 'type' | 'data'> & {
1746
1841
  nullable: true;
1747
1842
  };
1748
1843
  };
1844
+ declare const nullable: <T extends JSONTypeAny>(type: T) => JSONNullable<T>;
1749
1845
  declare type JSONNotNullable<T extends JSONTypeAny> = Omit<T, 'type' | 'data'> & {
1750
1846
  type: Exclude<T['type'], null>;
1751
1847
  data: Omit<T['data'], 'nullable'>;
1752
1848
  };
1849
+ declare const notNullable: <T extends JSONTypeAny>(type: T) => JSONNotNullable<T>;
1753
1850
 
1754
1851
  declare type JSONNullish<T extends JSONTypeAny> = Omit<T, 'type' | 'data'> & {
1755
1852
  type: T['type'] | undefined | null;
@@ -1758,15 +1855,18 @@ declare type JSONNullish<T extends JSONTypeAny> = Omit<T, 'type' | 'data'> & {
1758
1855
  optional: true;
1759
1856
  };
1760
1857
  };
1858
+ declare const nullish: <T extends JSONTypeAny>(type: T) => JSONNullish<T>;
1761
1859
  declare type JSONNotNullish<T extends JSONTypeAny> = Omit<T, 'type' | 'data'> & {
1762
1860
  type: Exclude<T['type'], undefined | null>;
1763
1861
  data: Omit<T['data'], 'nullable'>;
1764
1862
  };
1863
+ declare const notNullish: <T extends JSONTypeAny>(type: T) => JSONNotNullish<T>;
1765
1864
 
1766
1865
  declare type JSONIntersection<Left extends JSONTypeAny, Right extends JSONTypeAny> = JSONType<Left['type'] & Right['type'], 'intersection'> & {
1767
1866
  left: Left;
1768
1867
  right: Right;
1769
1868
  };
1869
+ declare const intersection: <Left extends JSONTypeAny, Right extends JSONTypeAny>(left: Left, right: Right) => JSONIntersection<Left, Right>;
1770
1870
 
1771
1871
  declare function min<T extends {
1772
1872
  data: {
@@ -1983,6 +2083,7 @@ interface JSONArray<Type extends JSONTypeAny, Cardinality extends ArrayCardinali
1983
2083
  };
1984
2084
  };
1985
2085
  }
2086
+ declare const array: <Type extends JSONTypeAny>(element: Type) => JSONArray<Type, "many">;
1986
2087
 
1987
2088
  declare type JSONTypeAny = JSONType<any, string>;
1988
2089
  declare type DeepPartial<T extends JSONTypeAny> = ReturnType<JSONTypeAny['deepPartial']> extends ReturnType<T['deepPartial']> ? T : ReturnType<T['deepPartial']>;
@@ -2016,6 +2117,11 @@ declare type JSONType<Type, DataType extends string = string> = {
2016
2117
  default<T extends JSONTypeAny>(this: T, value: T['type'] | (() => T['type'])): JSONNotNullish<T>;
2017
2118
  array<T extends JSONTypeAny>(this: T): JSONArray<T>;
2018
2119
  };
2120
+ declare type BaseTypeProps<T extends JSONTypeAny> = Omit<JSONType<T['type'], string>, 'dataType'>;
2121
+ declare type OwnTypeProps<T extends JSONTypeAny> = Omit<T, keyof BaseTypeProps<T>> & {
2122
+ [k in keyof BaseTypeProps<T>]?: BaseTypeProps<T>[k];
2123
+ };
2124
+ declare const constructType: <T extends JSONTypeAny>(type: OwnTypeProps<T>) => T;
2019
2125
 
2020
2126
  declare type ColumnsShape = Record<string, ColumnType>;
2021
2127
  declare type ColumnShapeOutput<Shape extends ColumnsShape> = {
@@ -3431,6 +3537,7 @@ interface JSONObject<T extends JSONObjectShape, UnknownKeys extends UnknownKeysP
3431
3537
  strip(): JSONObject<T, 'strip', Catchall>;
3432
3538
  catchAll<C extends JSONTypeAny>(type: C): JSONObject<T, UnknownKeys, C>;
3433
3539
  }
3540
+ declare const object: <T extends JSONObjectShape, UnknownKeys extends UnknownKeysParam = "strip", Catchall extends JSONTypeAny = JSONTypeAny>(shape: T) => JSONObject<T, UnknownKeys, Catchall, objectOutputType<T, Catchall>>;
3434
3541
 
3435
3542
  interface JSONNativeEnum<T extends EnumLike> extends JSONType<T[keyof T], 'nativeEnum'> {
3436
3543
  dataType: 'nativeEnum';
@@ -3441,27 +3548,33 @@ declare type EnumLike = {
3441
3548
  [k: string]: string | number;
3442
3549
  [nu: number]: string;
3443
3550
  };
3551
+ declare const getValidEnumValues: (obj: EnumLike) => (string | number)[];
3552
+ declare const nativeEnum: <T extends EnumLike>(givenEnum: T) => JSONNativeEnum<T>;
3444
3553
 
3445
3554
  interface JSONMap<Key extends JSONTypeAny, Value extends JSONTypeAny> extends JSONType<Map<Key['type'], Value['type']>, 'map'> {
3446
3555
  keyType: Key;
3447
3556
  valueType: Value;
3448
3557
  deepPartial(): JSONMap<ReturnType<Key['deepPartial']>, ReturnType<Value['deepPartial']>>;
3449
3558
  }
3559
+ declare const map: <Key extends JSONTypeAny, Value extends JSONTypeAny>(keyType: Key, valueType: Value) => JSONMap<Key, Value>;
3450
3560
 
3451
3561
  interface JSONLiteral<T extends Primitive> extends JSONType<T, 'literal'> {
3452
3562
  value: Primitive;
3453
3563
  }
3564
+ declare const literal: <T extends Primitive>(value: T) => JSONLiteral<T>;
3454
3565
 
3455
3566
  interface JSONLazy<T extends JSONTypeAny> extends JSONType<T['type'], 'lazy'> {
3456
3567
  typeCache?: T;
3457
3568
  getter(): T;
3458
3569
  deepPartial(): JSONLazy<ReturnType<T['deepPartial']>>;
3459
3570
  }
3571
+ declare const lazy: <T extends JSONTypeAny>(fn: () => T) => JSONLazy<T>;
3460
3572
 
3461
3573
  interface JSONInstanceOf<T extends Class> extends JSONType<T, 'instanceOf'> {
3462
3574
  class: T;
3463
3575
  }
3464
3576
  declare type Class = new (...args: any[]) => any;
3577
+ declare const instanceOf: <T extends Class>(cls: T) => JSONInstanceOf<T>;
3465
3578
 
3466
3579
  interface JSONEnum<U extends string = string, T extends [U, ...U[]] = [U]> extends JSONType<T[number], 'enum'> {
3467
3580
  enum: {
@@ -3469,6 +3582,8 @@ interface JSONEnum<U extends string = string, T extends [U, ...U[]] = [U]> exten
3469
3582
  };
3470
3583
  options: T;
3471
3584
  }
3585
+ declare const arrayToEnum: <U extends string, T extends [U, ...U[]]>(items: T) => { [k in T[number]]: k; };
3586
+ declare const enumType: <U extends string, T extends [U, ...U[]]>(options: T) => JSONEnum<U, T>;
3472
3587
 
3473
3588
  interface JSONDiscriminatedUnion<Discriminator extends string, DiscriminatorValue extends Primitive, Option extends JSONDiscriminatedObject<Discriminator, DiscriminatorValue>> extends JSONType<Option['type'], 'discriminatedUnion'> {
3474
3589
  discriminator: Discriminator;
@@ -3479,6 +3594,7 @@ interface JSONDiscriminatedUnion<Discriminator extends string, DiscriminatorValu
3479
3594
  declare type JSONDiscriminatedObject<Discriminator extends string, DiscriminatorValue extends Primitive> = JSONObject<{
3480
3595
  [K in Discriminator]: JSONLiteral<DiscriminatorValue>;
3481
3596
  } & JSONObjectShape, any>;
3597
+ declare const discriminatedUnion: <Discriminator extends string, DiscriminatorValue extends Primitive, Types extends [JSONDiscriminatedObject<Discriminator, DiscriminatorValue>, JSONDiscriminatedObject<Discriminator, DiscriminatorValue>, ...JSONDiscriminatedObject<Discriminator, DiscriminatorValue>[]]>(discriminator: Discriminator, options: Types) => JSONDiscriminatedUnion<Discriminator, DiscriminatorValue, Types[number]>;
3482
3598
 
3483
3599
  declare type JSONAny = JSONTypeAny & {
3484
3600
  dataType: 'any';
@@ -3853,10 +3969,25 @@ declare const stringMethods: {
3853
3969
  declare type JSONUndefined = JSONType<undefined, 'undefined'>;
3854
3970
  declare type JSONUnknown = JSONType<unknown, 'unknown'>;
3855
3971
  declare type JSONVoid = JSONType<void, 'void'>;
3972
+ declare const scalarTypes: {
3973
+ any: () => JSONAny;
3974
+ bigint: () => JSONBigInt;
3975
+ boolean: () => JSONBoolean;
3976
+ date: () => JSONDate;
3977
+ nan: () => JSONNaN;
3978
+ never: () => JSONNever;
3979
+ null: () => JSONNull;
3980
+ number: () => JSONNumber;
3981
+ string: () => JSONString;
3982
+ undefined: () => JSONUndefined;
3983
+ unknown: () => JSONUnknown;
3984
+ void: () => JSONVoid;
3985
+ };
3856
3986
 
3857
3987
  interface JSONUnion<T extends [JSONTypeAny, JSONTypeAny, ...JSONTypeAny[]]> extends JSONType<T[number]['type'], 'union'> {
3858
3988
  types: T;
3859
3989
  }
3990
+ declare const union: <T extends [JSONTypeAny, JSONTypeAny, ...JSONTypeAny[]]>(types: T) => JSONUnion<T>;
3860
3991
 
3861
3992
  interface JSONTuple<T extends JSONTupleItems | [] = JSONTupleItems, Rest extends JSONTypeAny | null = null> extends JSONType<OutputTypeOfTupleWithRest<T, Rest>, 'tuple'> {
3862
3993
  items: T;
@@ -3872,6 +4003,7 @@ declare type OutputTypeOfTuple<T extends JSONTupleItems | []> = AssertArray<{
3872
4003
  [k in keyof T]: T[k] extends JSONTypeAny ? T[k]['type'] : never;
3873
4004
  }>;
3874
4005
  declare type OutputTypeOfTupleWithRest<T extends JSONTupleItems | [], Rest extends JSONTypeAny | null = null> = Rest extends JSONTypeAny ? [...OutputTypeOfTuple<T>, ...Rest['type'][]] : OutputTypeOfTuple<T>;
4006
+ declare const tuple: <T extends [] | JSONTupleItems, Rest extends JSONTypeAny | null = null>(items: T, rest?: Rest) => JSONTuple<T, Rest>;
3875
4007
 
3876
4008
  interface JSONSet<Value extends JSONTypeAny> extends JSONType<Set<Value['type']>, 'set'>, SetMethods {
3877
4009
  data: JSONTypeData & {
@@ -3887,6 +4019,7 @@ interface JSONSet<Value extends JSONTypeAny> extends JSONType<Set<Value['type']>
3887
4019
  };
3888
4020
  };
3889
4021
  }
4022
+ declare const set: <Value extends JSONTypeAny>(valueType: Value) => JSONSet<Value>;
3890
4023
 
3891
4024
  interface JSONRecord<Key extends JSONRecordKeyType, Value extends JSONTypeAny> extends JSONType<Record<Key['type'], Value['type']>, 'record'> {
3892
4025
  keyType: Key;
@@ -4151,4 +4284,4 @@ declare class NotFoundError extends Error {
4151
4284
  declare class MoreThanOneRowError extends Error {
4152
4285
  }
4153
4286
 
4154
- export { Adapter, AdapterOptions, AddQueryJoinedTable, AddQuerySelect, AddQueryWith, AfterCallback, Aggregate, Aggregate1ArgumentTypes, AggregateArg, AggregateItem, AggregateItemArg, AggregateItemOptions, AggregateOptions, AliasOrTable, AnyColumnType, AnyColumnTypeCreator, ArrayColumn, ArrayData, ArrayOfColumnsObjects, 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, DefaultSelectColumns, Delete, DeleteQueryData, DoublePrecisionColumn, DropMode, EMPTY_OBJECT, EmptyObject, EnumColumn, 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, JSONColumn, JSONTextColumn, JSONTypes, Join, JoinArgs, JoinCallback, JoinCallbackArg, JoinItem, JoinedTablesBase, Json, JsonItem, LimitedTextBaseColumn, LineColumn, LsegColumn, MacAddr8Column, MacAddrColumn, MaybeArray, MoneyColumn, MoreThanOneRowError, NestedInsertItem, NestedInsertManyItems, NestedInsertOneItem, NestedUpdateItem, NestedUpdateManyItems, NestedUpdateOneItem, NotFoundError, NullableColumn, NumberAsStringBaseColumn, NumberBaseColumn, NumberColumn, NumberColumnData, NumberExpression, OnConflictItem, OnConflictMergeUpdate, OnConflictQueryBuilder, OnQueryBuilder, Operator, Operators, OptionalKeys, OrderArg, OrderItem, PathColumn, PointColumn, PolygonColumn, 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, SortDir, Spread, Sql, StringColumn, StringExpression, StringKey, TableData, TableSchema, TextBaseColumn, TextColumn, TextColumnData, Then, ThenResult, TimeColumn, TimeInterval, TimeWithTimeZoneColumn, TimestampColumn, TimestampWithTimeZoneColumn, Transaction, TransactionAdapter, TruncateQueryData, TsQueryColumn, TsVectorColumn, TypeParsers, UUIDColumn, Union, UnionArg, UnionItem, UnionToArray, UnionToIntersection, UnionToOvlds, Update, UpdateData, UpdateQueryData, UpsertData, UpsertResult, UpsertThis, ValidationContext, VarCharColumn, Where, WhereArg, WhereInArg, WhereInColumn, WhereInItem, WhereInValues, WhereItem, WhereJsonPathEqualsItem, WhereOnItem, WhereQueryBuilder, WhereResult, WindowArg, WindowArgDeclaration, WindowDeclaration, WindowFunctionOptions, WindowItem, With, WithDataBase, WithDataItem, WithItem, WithOptions, XMLColumn, addOr, addOrNot, addParserForRawExpression, addParserForSelectItem, addParserToQuery, addQueryOn, addQueryOrOn, addWhere, addWhereIn, addWhereNot, aggregate1FunctionNames, applyMixins, columnTypes, utils as columnUtils, createDb, createOperator, defaultsKey, emptyObject, getClonedQueryData, getColumnTypes, getQueryAs, getQueryParsers, getRaw, getTableData, getValueKey, handleResult, isRaw, isRequiredRelationKey, joinTruthy, jsonTypes, logColors, logParamToLogObject, newTableData, noop, parseRecord, parseResult, processSelectArg, pushQueryArray, pushQueryOn, pushQueryOrOn, pushQueryValue, queryKeysOfNotSimpleQuery, queryMethodByReturnType, quote, raw, relationQueryKey, removeFromQuery, resetTableData, setQueryObjectValue, toArray, toSql };
4287
+ 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, OptionalKeys, OrderArg, OrderItem, OutputTypeOfTuple, OutputTypeOfTupleWithRest, OwnTypeProps, PathColumn, PointColumn, PolygonColumn, 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, SortDir, Spread, Sql, StringColumn, StringExpression, StringKey, TableData, TableSchema, TextBaseColumn, TextColumn, TextColumnData, Then, ThenResult, TimeColumn, TimeInterval, TimeWithTimeZoneColumn, TimestampColumn, TimestampWithTimeZoneColumn, Transaction, TransactionAdapter, TruncateQueryData, TsQueryColumn, TsVectorColumn, TypeParsers, UUIDColumn, Union, UnionArg, UnionItem, UnionToArray, UnionToIntersection, UnionToOvlds, UnknownKeysParam, Update, UpdateData, UpdateQueryData, UpsertData, UpsertResult, UpsertThis, ValidationContext, VarCharColumn, Where, WhereArg, WhereInArg, WhereInColumn, WhereInItem, WhereInValues, WhereItem, WhereJsonPathEqualsItem, WhereOnItem, 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 };