pqb 0.66.8 → 0.67.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bun.d.ts +27 -0
- package/dist/bun.js +241 -0
- package/dist/bun.js.map +1 -0
- package/dist/bun.mjs +238 -0
- package/dist/bun.mjs.map +1 -0
- package/dist/index.d.ts +57 -36
- package/dist/index.js +8940 -8900
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8937 -8901
- package/dist/index.mjs.map +1 -1
- package/dist/internal.d.ts +2 -2
- package/dist/internal.js +24 -0
- package/dist/internal.mjs +2 -2
- package/dist/node-postgres.d.ts +3 -2
- package/dist/node-postgres.js +18 -11
- package/dist/node-postgres.js.map +1 -1
- package/dist/node-postgres.mjs +19 -13
- package/dist/node-postgres.mjs.map +1 -1
- package/dist/postgres-js.js +31 -16
- package/dist/postgres-js.js.map +1 -1
- package/dist/postgres-js.mjs +31 -16
- package/dist/postgres-js.mjs.map +1 -1
- package/package.json +13 -1
package/dist/index.d.ts
CHANGED
|
@@ -351,22 +351,28 @@ interface ProcessedStorageOptions extends SqlSessionState {
|
|
|
351
351
|
declare class QueryStorage {
|
|
352
352
|
withOptions<Result>(this: PickQueryQAndInternal, options: StorageOptions, cb: () => Promise<Result>): Promise<Result>;
|
|
353
353
|
}
|
|
354
|
+
interface PostgresInterval {
|
|
355
|
+
years: number;
|
|
356
|
+
months: number;
|
|
357
|
+
days: number;
|
|
358
|
+
hours: number;
|
|
359
|
+
minutes: number;
|
|
360
|
+
seconds: number;
|
|
361
|
+
milliseconds: number;
|
|
362
|
+
}
|
|
354
363
|
/**
|
|
355
364
|
* Generic result returning from query methods.
|
|
356
365
|
*/
|
|
357
366
|
interface QueryResultRow {
|
|
358
367
|
[K: string]: any;
|
|
359
368
|
}
|
|
360
|
-
interface QueryResult<T
|
|
369
|
+
interface QueryResult<T = any> {
|
|
361
370
|
rowCount: number;
|
|
362
371
|
rows: T[];
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
interface QueryArraysResult<R extends any[] = any[]> {
|
|
368
|
-
rowCount: number;
|
|
369
|
-
rows: R[];
|
|
372
|
+
/**
|
|
373
|
+
* node-postgres and postgres-js: fields are present even for empty results.
|
|
374
|
+
* Bun doesn't implement fields in the same way, fields are empty if no rows returned.
|
|
375
|
+
*/
|
|
370
376
|
fields: {
|
|
371
377
|
name: string;
|
|
372
378
|
}[];
|
|
@@ -461,7 +467,7 @@ interface Adapter {
|
|
|
461
467
|
isInTransaction(this: Adapter): this is TransactionAdapter;
|
|
462
468
|
assignError(to: QueryError, from: Error): void;
|
|
463
469
|
query<T extends QueryResultRow = QueryResultRow>(text: string, values?: unknown[], sqlSessionState?: SqlSessionState): Promise<QueryResult<T>>;
|
|
464
|
-
arrays<R extends any[] = any[]>(text: string, values?: unknown[], sqlSessionState?: SqlSessionState): Promise<
|
|
470
|
+
arrays<R extends any[] = any[]>(text: string, values?: unknown[], sqlSessionState?: SqlSessionState): Promise<QueryResult<R>>;
|
|
465
471
|
/**
|
|
466
472
|
* Run a transaction
|
|
467
473
|
*
|
|
@@ -492,17 +498,25 @@ interface TransactionAdapter extends Adapter {
|
|
|
492
498
|
}
|
|
493
499
|
type Pool = any;
|
|
494
500
|
type Client = any;
|
|
501
|
+
interface AdapterSchemaConfigOptions {
|
|
502
|
+
jsonEncodedByDriver?: boolean;
|
|
503
|
+
dateParsedByDriver?: boolean;
|
|
504
|
+
arrayEncode?(input: unknown): unknown;
|
|
505
|
+
intervalParse?(input: string): PostgresInterval;
|
|
506
|
+
}
|
|
495
507
|
/**
|
|
496
508
|
* Adapter class used by runtime orchestrator to create driver-specific adapters.
|
|
497
509
|
*/
|
|
498
510
|
interface DriverAdapter {
|
|
511
|
+
noFieldsForArrays?: boolean;
|
|
512
|
+
schemaConfig?: AdapterSchemaConfigOptions;
|
|
499
513
|
errorClass: new (...args: any[]) => Error;
|
|
500
514
|
errorFields: RecordString;
|
|
501
515
|
configure(config: AdapterConfigBase): Pool;
|
|
502
516
|
manualPool: boolean;
|
|
503
517
|
borrow(pool: Pool): Client;
|
|
504
518
|
release(client: Client): void;
|
|
505
|
-
queryClient<T
|
|
519
|
+
queryClient<T = QueryResultRow>(client: Client, text: string, values?: unknown[], arraysMode?: boolean): Promise<QueryResult<T>>;
|
|
506
520
|
begin<DriverClient, Result>(pool: Pool, cb: (client: DriverClient) => Promise<Result>, options?: string): Promise<Result>;
|
|
507
521
|
savepoint<T>(client: Client, setClient: (client: Client) => void, name: string, cb: () => Promise<T>): Promise<T>;
|
|
508
522
|
hackySavepoint<T extends QueryResultRow>(client: Client, setClient: (client: Client) => void, state: HackySavepointState, text: string, values?: unknown[], arraysMode?: boolean): Promise<QueryResult<T>>;
|
|
@@ -533,7 +547,7 @@ declare class AdapterClass implements Adapter {
|
|
|
533
547
|
private readonly connectionState;
|
|
534
548
|
constructor(params: AdapterParams);
|
|
535
549
|
query<T extends QueryResultRow = QueryResultRow>(text: string, values?: unknown[], sqlSessionState?: SqlSessionState): Promise<QueryResult<T>>;
|
|
536
|
-
arrays<R extends any[] = any[]>(text: string, values?: unknown[], sqlSessionState?: SqlSessionState): Promise<
|
|
550
|
+
arrays<R extends any[] = any[]>(text: string, values?: unknown[], sqlSessionState?: SqlSessionState): Promise<QueryResult<R>>;
|
|
537
551
|
clone(params?: AdapterConfigBase): Adapter;
|
|
538
552
|
isInTransaction(this: Adapter): this is TransactionAdapter;
|
|
539
553
|
getDatabase(): string;
|
|
@@ -563,7 +577,7 @@ declare class TransactionAdapterClass implements TransactionAdapter {
|
|
|
563
577
|
driverAdapter: DriverAdapter;
|
|
564
578
|
constructor(adapter: Adapter, client: Client);
|
|
565
579
|
query<T extends QueryResultRow = QueryResultRow>(text: string, values?: unknown[], sqlSessionState?: SqlSessionState): Promise<QueryResult<T>>;
|
|
566
|
-
arrays<R extends any[] = any[]>(text: string, values?: unknown[], sqlSessionState?: SqlSessionState): Promise<
|
|
580
|
+
arrays<R extends any[] = any[]>(text: string, values?: unknown[], sqlSessionState?: SqlSessionState): Promise<QueryResult<R>>;
|
|
567
581
|
clone(params?: AdapterConfigBase): Adapter;
|
|
568
582
|
isInTransaction(this: Adapter): this is TransactionAdapter;
|
|
569
583
|
getDatabase(): string;
|
|
@@ -589,6 +603,7 @@ interface AfterCommitStandaloneHook {
|
|
|
589
603
|
}
|
|
590
604
|
declare const makeConnectRetryConfig: (config: AdapterConfigConnectRetryParam) => AdapterConfigConnectRetry;
|
|
591
605
|
declare const wrapAdapterFnWithConnectRetry: <Fn extends (...args: any[]) => any>(connectRetryConfig: AdapterConfigConnectRetry, fn: Fn) => Fn;
|
|
606
|
+
declare const getDriverErrorCode: (err: object) => unknown;
|
|
592
607
|
/**
|
|
593
608
|
* Expression for a SQL identifier reference.
|
|
594
609
|
* Used to safely quote identifiers in raw SQL queries.
|
|
@@ -625,7 +640,11 @@ interface ColumnTypeSchemaArg {
|
|
|
625
640
|
narrowAllTypes: unknown;
|
|
626
641
|
error?: unknown;
|
|
627
642
|
}
|
|
643
|
+
interface SchemaConfigFnWithOptions extends AdapterSchemaConfigOptions {
|
|
644
|
+
(): ColumnSchemaConfig;
|
|
645
|
+
}
|
|
628
646
|
interface ColumnSchemaConfig<T extends Column.Pick.Data = Column.Pick.Data> extends ColumnTypeSchemaArg {
|
|
647
|
+
intervalParse?(input: unknown): PostgresInterval;
|
|
629
648
|
dateAsNumber: unknown;
|
|
630
649
|
dateAsDate: unknown;
|
|
631
650
|
enum: unknown;
|
|
@@ -1110,21 +1129,22 @@ declare class BigSerialColumn<Schema extends ColumnSchemaConfig> extends NumberA
|
|
|
1110
1129
|
toSQL(): string;
|
|
1111
1130
|
toCode(ctx: ColumnToCodeCtx, key: string): Code;
|
|
1112
1131
|
}
|
|
1113
|
-
interface TimeInterval {
|
|
1114
|
-
years?: number;
|
|
1115
|
-
months?: number;
|
|
1116
|
-
days?: number;
|
|
1117
|
-
hours?: number;
|
|
1118
|
-
minutes?: number;
|
|
1119
|
-
seconds?: number;
|
|
1120
|
-
}
|
|
1121
1132
|
type DateColumnInput = string | number | Date;
|
|
1133
|
+
declare const getDateAsNumberFn: (column: {
|
|
1134
|
+
data: Column.Data;
|
|
1135
|
+
dateParsedByDriver?: boolean;
|
|
1136
|
+
}) => (value: unknown) => number;
|
|
1137
|
+
declare const getDateAsDateFn: (column: {
|
|
1138
|
+
data: Column.Data;
|
|
1139
|
+
dateParsedByDriver?: boolean;
|
|
1140
|
+
}) => (value: unknown) => Date;
|
|
1122
1141
|
declare abstract class DateBaseColumn<Schema extends ColumnSchemaConfig> extends Column<Schema, string, ReturnType<Schema['stringNumberDate']>, OperatorsDate, DateColumnInput, string, ReturnType<Schema['stringSchema']>> {
|
|
1142
|
+
dateParsedByDriver?: boolean | undefined;
|
|
1123
1143
|
data: DateColumnData;
|
|
1124
1144
|
operators: OperatorsDate;
|
|
1125
1145
|
asNumber: Schema['dateAsNumber'];
|
|
1126
1146
|
asDate: Schema['dateAsDate'];
|
|
1127
|
-
constructor(schema: Schema);
|
|
1147
|
+
constructor(schema: Schema, dateParsedByDriver?: boolean | undefined);
|
|
1128
1148
|
}
|
|
1129
1149
|
declare class DateColumn<Schema extends ColumnSchemaConfig> extends DateBaseColumn<Schema> {
|
|
1130
1150
|
dataType: "date";
|
|
@@ -1134,7 +1154,7 @@ declare abstract class DateTimeBaseClass<Schema extends ColumnSchemaConfig> exte
|
|
|
1134
1154
|
data: DateColumnData & {
|
|
1135
1155
|
dateTimePrecision?: number;
|
|
1136
1156
|
};
|
|
1137
|
-
constructor(schema: Schema, dateTimePrecision?: number);
|
|
1157
|
+
constructor(schema: Schema, dateTimePrecision?: number, dateParsedByDriver?: boolean);
|
|
1138
1158
|
toSQL(): string;
|
|
1139
1159
|
}
|
|
1140
1160
|
declare abstract class DateTimeTzBaseClass<Schema extends ColumnSchemaConfig> extends DateTimeBaseClass<Schema> {
|
|
@@ -1159,14 +1179,14 @@ declare class TimeColumn<Schema extends ColumnSchemaConfig> extends Column<Schem
|
|
|
1159
1179
|
constructor(schema: Schema, dateTimePrecision?: number);
|
|
1160
1180
|
toCode(ctx: ColumnToCodeCtx, key: string): Code;
|
|
1161
1181
|
}
|
|
1162
|
-
declare class IntervalColumn<Schema extends ColumnSchemaConfig> extends Column<Schema,
|
|
1182
|
+
declare class IntervalColumn<Schema extends ColumnSchemaConfig> extends Column<Schema, PostgresInterval, ReturnType<Schema['timeInterval']>, OperatorsDate, Partial<PostgresInterval>, PostgresInterval> {
|
|
1163
1183
|
data: Column.Data & {
|
|
1164
1184
|
fields?: string;
|
|
1165
1185
|
precision?: number;
|
|
1166
1186
|
};
|
|
1167
1187
|
dataType: "interval";
|
|
1168
1188
|
operators: OperatorsDate;
|
|
1169
|
-
constructor(schema: Schema, fields?: string, precision?: number);
|
|
1189
|
+
constructor(schema: Schema, fields?: string, precision?: number, parse?: (input: string) => PostgresInterval);
|
|
1170
1190
|
toCode(ctx: ColumnToCodeCtx, key: string): Code;
|
|
1171
1191
|
toSQL(): string;
|
|
1172
1192
|
}
|
|
@@ -1199,17 +1219,17 @@ declare class ArrayColumn<Schema extends ColumnTypeSchemaArg, Item extends Array
|
|
|
1199
1219
|
dataType: "array";
|
|
1200
1220
|
operators: OperatorsArray<Item["queryType"]>;
|
|
1201
1221
|
data: ArrayData<Item>;
|
|
1202
|
-
constructor(schema: Schema, item: Item, inputType: InputType, outputType?: OutputType, queryType?: QueryType);
|
|
1222
|
+
constructor(schema: Schema, item: Item, inputType: InputType, defaultEncode?: (input: unknown) => unknown, outputType?: OutputType, queryType?: QueryType);
|
|
1203
1223
|
toSQL(): string;
|
|
1204
1224
|
toCode(this: ArrayColumn<ColumnSchemaConfig, ArrayColumnValue, unknown, unknown, unknown>, ctx: ColumnToCodeCtx, key: string): Code;
|
|
1205
1225
|
}
|
|
1206
1226
|
declare class JSONColumn<T, Schema extends ColumnTypeSchemaArg, InputSchema = Schema['type']> extends Column<Schema, T, InputSchema, OperatorsJson> {
|
|
1207
1227
|
dataType: "jsonb";
|
|
1208
1228
|
operators: OperatorsJson;
|
|
1209
|
-
constructor(schema: Schema, inputType: Schema['type']);
|
|
1229
|
+
constructor(schema: Schema, inputType: Schema['type'], encodedByDriver?: boolean);
|
|
1210
1230
|
toCode(ctx: ColumnToCodeCtx, key: string): Code;
|
|
1211
1231
|
}
|
|
1212
|
-
declare class JSONTextColumn<Schema extends ColumnSchemaConfig> extends Column<Schema,
|
|
1232
|
+
declare class JSONTextColumn<Schema extends ColumnSchemaConfig> extends Column<Schema, unknown, ReturnType<Schema['unknown']>, OperatorsText> {
|
|
1213
1233
|
dataType: "json";
|
|
1214
1234
|
operators: OperatorsText;
|
|
1215
1235
|
private static _instance;
|
|
@@ -1279,7 +1299,8 @@ interface DefaultSchemaConfig extends ColumnSchemaConfig<Column> {
|
|
|
1279
1299
|
timestampNoTZ(precision?: number): TimestampColumn<DefaultSchemaConfig>;
|
|
1280
1300
|
timestamp(precision?: number): TimestampTZColumn<DefaultSchemaConfig>;
|
|
1281
1301
|
}
|
|
1282
|
-
declare const defaultSchemaConfig: DefaultSchemaConfig;
|
|
1302
|
+
declare const defaultSchemaConfig: (options?: AdapterSchemaConfigOptions) => DefaultSchemaConfig;
|
|
1303
|
+
declare const internalSchemaConfig: DefaultSchemaConfig;
|
|
1283
1304
|
type TextColumnData = StringData;
|
|
1284
1305
|
declare abstract class TextBaseColumn<Schema extends ColumnSchemaConfig, Ops = OperatorsText> extends Column<Schema, string, ReturnType<Schema['stringSchema']>, Ops> {
|
|
1285
1306
|
data: TextColumnData;
|
|
@@ -4694,7 +4715,7 @@ interface DbSharedOptions extends QueryLogOptions {
|
|
|
4694
4715
|
grants?: Grant.Privilege[];
|
|
4695
4716
|
}
|
|
4696
4717
|
interface DbOptions<SchemaConfig extends ColumnSchemaConfig, ColumnTypes> extends DbSharedOptions {
|
|
4697
|
-
schemaConfig?: SchemaConfig;
|
|
4718
|
+
schemaConfig?: () => SchemaConfig;
|
|
4698
4719
|
columnTypes?: ColumnTypes | ((t: DefaultColumnTypes<SchemaConfig>) => ColumnTypes);
|
|
4699
4720
|
snakeCase?: boolean;
|
|
4700
4721
|
nowSQL?: string;
|
|
@@ -4835,7 +4856,7 @@ declare class Db<Table extends string | undefined = undefined, Shape extends Col
|
|
|
4835
4856
|
*
|
|
4836
4857
|
* @param args - SQL template literal, or a raw SQL object created by `raw()` or `sql()` function
|
|
4837
4858
|
*/
|
|
4838
|
-
queryArrays<R extends any[] = any[]>(...args: SQLQueryArgs): Promise<
|
|
4859
|
+
queryArrays<R extends any[] = any[]>(...args: SQLQueryArgs): Promise<QueryResult<R>>;
|
|
4839
4860
|
}
|
|
4840
4861
|
interface DbTableConstructor<ColumnTypes> {
|
|
4841
4862
|
<Table extends string, Shape extends Column.QueryColumnsInit, Data extends MaybeArray<TableDataItem>, Options extends DbTableOptions<ColumnTypes, Table, Shape>>(table: Table, shape?: ((t: ColumnTypes) => Shape) | Shape, tableData?: TableDataFn<Shape, Data>, options?: Options): Db<Table, Shape, keyof ShapeColumnPrimaryKeys<Shape> extends never ? never : ShapeColumnPrimaryKeys<Shape>, ShapeUniqueColumns<Shape> | TableDataItemsUniqueColumns<Shape, Data>, TableDataItemsUniqueColumnTuples<Shape, Data>, UniqueConstraints<Shape> | TableDataItemsUniqueConstraints<Data>, ColumnTypes, Shape & ComputedColumnsFromOptions<Options['computed']>, MapTableScopesOption<Options>, ColumnsShape.DefaultSelectKeys<Shape>> & {
|
|
@@ -4943,8 +4964,8 @@ declare const createDbWithAdapter: <SchemaConfig extends ColumnSchemaConfig = De
|
|
|
4943
4964
|
log,
|
|
4944
4965
|
logger,
|
|
4945
4966
|
snakeCase,
|
|
4946
|
-
schemaConfig,
|
|
4947
|
-
columnTypes
|
|
4967
|
+
schemaConfig: schemaConfigFn,
|
|
4968
|
+
columnTypes,
|
|
4948
4969
|
schema,
|
|
4949
4970
|
...options
|
|
4950
4971
|
}: DbOptionsWithAdapter<SchemaConfig, ColumnTypes>) => DbResult<ColumnTypes>;
|
|
@@ -9069,7 +9090,7 @@ declare class CteQuery {
|
|
|
9069
9090
|
* two: t.string(),
|
|
9070
9091
|
* }),
|
|
9071
9092
|
* // define SQL expression:
|
|
9072
|
-
* (q) => sql`
|
|
9093
|
+
* (q) => sql`VALUES (1, 'two')`,
|
|
9073
9094
|
* )
|
|
9074
9095
|
* // is not prefixed in the middle of a query chain
|
|
9075
9096
|
* .withSql(
|
|
@@ -9077,7 +9098,7 @@ declare class CteQuery {
|
|
|
9077
9098
|
* (t) => ({
|
|
9078
9099
|
* x: t.integer(),
|
|
9079
9100
|
* }),
|
|
9080
|
-
* (q) => sql`
|
|
9101
|
+
* (q) => sql`VALUES (1)`,
|
|
9081
9102
|
* )
|
|
9082
9103
|
* .from('alias');
|
|
9083
9104
|
* ```
|
|
@@ -9100,7 +9121,7 @@ declare class CteQuery {
|
|
|
9100
9121
|
* one: t.integer(),
|
|
9101
9122
|
* two: t.string(),
|
|
9102
9123
|
* }),
|
|
9103
|
-
* (q) => sql`
|
|
9124
|
+
* (q) => sql`VALUES (1, 'two')`,
|
|
9104
9125
|
* )
|
|
9105
9126
|
* .from('alias');
|
|
9106
9127
|
* ```
|
|
@@ -10645,4 +10666,4 @@ declare const testTransaction: {
|
|
|
10645
10666
|
*/
|
|
10646
10667
|
close(arg: Arg$1): Promise<void>;
|
|
10647
10668
|
};
|
|
10648
|
-
export { type Adapter, AdapterClass, type AdapterConfigBase, type AdapterParams, type AfterCommitStandaloneHook, type AfterHook, ArrayColumn, type ArrayColumnValue, type ArrayData, type AsyncState, type BaseNumberData, BigIntColumn, BigSerialColumn, BitColumn, BitVaryingColumn, BooleanColumn, BoxColumn, ByteaColumn, CidrColumn, CircleColumn, CitextColumn, type Code, type Codes, Column, type ColumnFromDbParams, type ColumnSchemaConfig, type ColumnSchemaGetterColumns, type ColumnSchemaGetterTableClass, type ColumnToCodeCtx, type ColumnTypeSchemaArg, type ColumnsByType, type ColumnsShape, type ComputedColumnsFromOptions, type ComputedOptionsConfig, type ComputedOptionsFactory, type CreateCtx, type CreateData, type CreateManyMethodsNames, type CreateMethodsNames, type CreateSelf, CustomTypeColumn, DateBaseColumn, DateColumn, type DateColumnData, DateTimeBaseClass, DateTimeTzBaseClass, Db, type DbDomainArg, type DbExtension, type DbOptions, type DbResult, type DbSharedOptions, type DbSqlMethod, type DbStructureDomainsMap, type DbTableOptionScopes, type DbTableOptions, DecimalColumn, type DecimalColumnData, type DefaultColumnTypes, type DefaultPrivileges, type DefaultSchemaConfig, type DeleteMethodsNames, DomainColumn, DoublePrecisionColumn, type DriverAdapter, DynamicRawSQL, type EmptyObject, type EmptyTuple, EnumColumn, Expression, type FromArg, type FromResult, type GeneratorIgnore, type Grant, type HookSelectValue, InetColumn, IntegerBaseColumn, IntegerColumn, IntervalColumn, type IsQuery, type IsolationLevel, JSONColumn, JSONTextColumn, type JoinQueryMethod, type JoinedShapes, LimitedTextBaseColumn, LineColumn, LsegColumn, MacAddr8Column, MacAddrColumn, type MapTableScopesOption, type MaybeArray, type MaybePromise, type MergeQuery, MoneyColumn, type NoPrimaryKeyOption, type NonUniqDataItem, NotFoundError, NumberAsStringBaseColumn, NumberBaseColumn, type NumberColumnData, Operators, type OperatorsArray, type OperatorsJson, type OperatorsOrdinalText, OrchidOrmInternalError, type Ord, PathColumn, type PickQueryInputType, type PickQueryInternal, type PickQueryQ, type PickQueryRelations, type PickQuerySelectableRelations, type PickQueryShape, PointColumn, PolygonColumn, PostgisGeographyPointColumn, type Query, type QueryAfterHook, type
|
|
10669
|
+
export { type Adapter, AdapterClass, type AdapterConfigBase, type AdapterParams, type AdapterSchemaConfigOptions, type AfterCommitStandaloneHook, type AfterHook, ArrayColumn, type ArrayColumnValue, type ArrayData, type AsyncState, type BaseNumberData, BigIntColumn, BigSerialColumn, BitColumn, BitVaryingColumn, BooleanColumn, BoxColumn, ByteaColumn, CidrColumn, CircleColumn, CitextColumn, type Code, type Codes, Column, type ColumnFromDbParams, type ColumnSchemaConfig, type ColumnSchemaGetterColumns, type ColumnSchemaGetterTableClass, type ColumnToCodeCtx, type ColumnTypeSchemaArg, type ColumnsByType, type ColumnsShape, type ComputedColumnsFromOptions, type ComputedOptionsConfig, type ComputedOptionsFactory, type CreateCtx, type CreateData, type CreateManyMethodsNames, type CreateMethodsNames, type CreateSelf, CustomTypeColumn, DateBaseColumn, DateColumn, type DateColumnData, DateTimeBaseClass, DateTimeTzBaseClass, Db, type DbDomainArg, type DbExtension, type DbOptions, type DbResult, type DbSharedOptions, type DbSqlMethod, type DbStructureDomainsMap, type DbTableOptionScopes, type DbTableOptions, DecimalColumn, type DecimalColumnData, type DefaultColumnTypes, type DefaultPrivileges, type DefaultSchemaConfig, type DeleteMethodsNames, DomainColumn, DoublePrecisionColumn, type DriverAdapter, DynamicRawSQL, type EmptyObject, type EmptyTuple, EnumColumn, Expression, type FromArg, type FromResult, type GeneratorIgnore, type Grant, type HookSelectValue, InetColumn, IntegerBaseColumn, IntegerColumn, IntervalColumn, type IsQuery, type IsolationLevel, JSONColumn, JSONTextColumn, type JoinQueryMethod, type JoinedShapes, LimitedTextBaseColumn, LineColumn, LsegColumn, MacAddr8Column, MacAddrColumn, type MapTableScopesOption, type MaybeArray, type MaybePromise, type MergeQuery, MoneyColumn, type NoPrimaryKeyOption, type NonUniqDataItem, NotFoundError, NumberAsStringBaseColumn, NumberBaseColumn, type NumberColumnData, Operators, type OperatorsArray, type OperatorsJson, type OperatorsOrdinalText, OrchidOrmInternalError, type Ord, PathColumn, type PickQueryInputType, type PickQueryInternal, type PickQueryQ, type PickQueryRelations, type PickQuerySelectableRelations, type PickQueryShape, PointColumn, PolygonColumn, PostgisGeographyPointColumn, type Query, type QueryAfterHook, type QueryBeforeActionHook, type QueryBeforeHook, type QueryData, QueryError, type QueryHasWhere, type QueryHelperResult, QueryHookUtils, QueryHooks, type QueryInternal, type QueryLogObject, type QueryLogOptions, type QueryLogger, type QueryManyTake, type QueryManyTakeOptional, type QueryOrExpression, type QueryResult, type QueryResultRow, type QueryReturnType, type QuerySchema, type QueryScopes, RawSql, type RawSqlBase, RealColumn, type RecordKeyTrue, type RecordOptionalString, type RecordString, type RecordStringOrNumber, type RecordUnknown, type RelationConfigBase, type RelationJoinQuery, type RelationsBase, type Rls, type RlsPolicy, type SchemaConfigFnWithOptions, type SearchWeight, type SelectableFromShape, SerialColumn, type SerialColumnData, type ShallowSimplify, type ShapeColumnPrimaryKeys, type ShapeUniqueColumns, type SingleSql, type SingleSqlItem, SmallIntColumn, SmallSerialColumn, type Sql, type SqlFn, type SqlSessionState, type StorageOptions, StringColumn, type StringData, type TableData, type TableDataFn, type TableDataInput, type TableDataItem, type TableDataItemsUniqueColumnTuples, type TableDataItemsUniqueColumns, type TableDataItemsUniqueConstraints, type TableDataMethods, type TemplateLiteralArgs, TextBaseColumn, TextColumn, TimeColumn, TimestampColumn, TimestampTZColumn, type Timestamps, type TransactionAdapter, TransactionAdapterClass, type TransactionOptions, TsQueryColumn, TsVectorColumn, UUIDColumn, type UniqueConstraints, type UniqueTableDataItem, UnknownColumn, type UpdateData, type UpsertData, type UpsertThis, VarCharColumn, VirtualColumn, type WhereArg, XMLColumn, _appendQuery, _clone, _createDbSqlMethod, _hookSelectColumns, _initQueryBuilder, _orCreate, _prependWith, _queryCreate, _queryCreateMany, _queryCreateManyFrom, _queryDefaults, _queryDelete, _queryFindBy, _queryFindByOptional, _queryHookAfterCreate, _queryHookAfterUpdate, _queryInsert, _queryInsertMany, _queryJoinOn, _queryRows, _querySelect, _queryTake, _queryTakeOptional, _queryUpdate, _queryUpdateOrThrow, _queryUpsert, _queryWhere, _queryWhereExists, _queryWhereIn, addCode, addTopCte, addTopCteSql, applyMixins, assignDbDataToColumn, backtickQuote, cloneQueryBaseUnscoped, codeToString, colors, columnsShapeToCode, constraintInnerToCode, consumeColumnName, copyTableData, createDbWithAdapter, deepCompare, defaultSchemaConfig, emptyArray, emptyObject, escapeForMigration, escapeString, excludeInnerToCode, exhaustive, getCallerFilePath, getClonedQueryData, getColumnBaseType, getColumnInfo, getColumnTypes, getDateAsDateFn, getDateAsNumberFn, getDriverErrorCode, getFreeAlias, getFreeSetAlias, getImportPath, getPrimaryKeys, getQueryAs, getQuerySchema, getShapeFromSelect, getSqlText, getStackTrace, getSupportedDefaultPrivileges, indexInnerToCode, internalSchemaConfig, isExpression, isQueryReturnsAll, isRawSQL, logColors, logParamToLogObject, makeColumnNullable, makeColumnTypes, makeColumnsByType, makeConnectRetryConfig, noop, objectHasValues, omit, parseTableData, parseTableDataInput, pathToLog, pick, pluralize, prepareSubQueryForSql, primaryKeyInnerToCode, pushQueryOnForOuter, pushQueryValueImmutable, pushTableDataCode, quoteIdentifier, quoteObjectKey, quoteTableWithSchema, raw, rawSqlToCode, referencesArgsToCode, returnArg, setColumnData, setColumnEncode, setColumnParse, setColumnParseNull, setCurrentColumnName, setDataValue, setDefaultLanguage, setFreeAlias, setQueryObjectValueImmutable, singleQuote, tableDataMethods, testTransaction, toArray, toCamelCase, toPascalCase, toSnakeCase, wrapAdapterFnWithConnectRetry };
|