pqb 0.59.2 → 0.60.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/index.d.ts +91 -66
- package/dist/index.js +336 -172
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +329 -173
- package/dist/index.mjs.map +1 -1
- package/dist/node-postgres.d.ts +7 -7
- package/dist/node-postgres.js +18 -17
- package/dist/node-postgres.js.map +1 -1
- package/dist/node-postgres.mjs +18 -17
- package/dist/node-postgres.mjs.map +1 -1
- package/dist/postgres-js.d.ts +6 -6
- package/dist/postgres-js.js +14 -14
- package/dist/postgres-js.js.map +1 -1
- package/dist/postgres-js.mjs +14 -14
- package/dist/postgres-js.mjs.map +1 -1
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -32,7 +32,7 @@ type ShallowSimplify<T> = T extends any ? {
|
|
|
32
32
|
* @param derivedCtor - target class to merge methods into
|
|
33
33
|
* @param constructors - classes to merge methods from
|
|
34
34
|
*/
|
|
35
|
-
declare function applyMixins(
|
|
35
|
+
declare function applyMixins(targetClass: any, mixinClasses: any[]): void;
|
|
36
36
|
/**
|
|
37
37
|
* Join array of strings with '', ignoring empty strings, false, undefined.
|
|
38
38
|
* @param strings - array of strings, or false, or undefined
|
|
@@ -332,6 +332,20 @@ declare const newDelayedRelationSelect: (query: IsQuery) => {
|
|
|
332
332
|
};
|
|
333
333
|
declare const setDelayedRelation: (d: DelayedRelationSelect, as: string, value: IsQuery) => void;
|
|
334
334
|
|
|
335
|
+
/**
|
|
336
|
+
* Expression for a SQL identifier reference.
|
|
337
|
+
* Used to safely quote identifiers in raw SQL queries.
|
|
338
|
+
*/
|
|
339
|
+
declare class SqlRefExpression extends Expression {
|
|
340
|
+
name: string;
|
|
341
|
+
result: {
|
|
342
|
+
value: Column.Pick.QueryColumn;
|
|
343
|
+
};
|
|
344
|
+
q: ExpressionData;
|
|
345
|
+
constructor(name: string);
|
|
346
|
+
makeSQL(): string;
|
|
347
|
+
}
|
|
348
|
+
|
|
335
349
|
interface ColumnSchemaGetterTableClass {
|
|
336
350
|
prototype: {
|
|
337
351
|
columns: {
|
|
@@ -1515,6 +1529,8 @@ interface QueryCatch {
|
|
|
1515
1529
|
declare const queryMethodByReturnType: {
|
|
1516
1530
|
[K in string]: 'query' | 'arrays';
|
|
1517
1531
|
};
|
|
1532
|
+
type Resolve = (result: any) => any;
|
|
1533
|
+
type Reject = (error: any) => any;
|
|
1518
1534
|
interface QueryCatchers {
|
|
1519
1535
|
catchUniqueError<ThenResult, CatchResult>(this: {
|
|
1520
1536
|
then: (onfulfilled?: (value: ThenResult) => any) => any;
|
|
@@ -1524,6 +1540,7 @@ declare class Then implements QueryCatchers {
|
|
|
1524
1540
|
catch(this: Query, fn: (reason: any) => unknown): Promise<unknown>;
|
|
1525
1541
|
catchUniqueError(fn: (reason: QueryError) => unknown): never;
|
|
1526
1542
|
}
|
|
1543
|
+
declare const getThen: () => (this: Query, resolve?: Resolve, reject?: Reject) => Promise<unknown>;
|
|
1527
1544
|
declare const handleResult: HandleResult;
|
|
1528
1545
|
declare const parseRecord: (parsers: ColumnsParsers, row: any) => unknown;
|
|
1529
1546
|
declare const filterResult: (q: Query, returnType: QueryReturnType, queryResult: QueryResult, result: unknown, tempColumns: Set<string> | undefined, hasAfterHook?: unknown) => unknown;
|
|
@@ -3242,7 +3259,7 @@ type WhereArg<T extends PickQuerySelectableRelations> = {
|
|
|
3242
3259
|
};
|
|
3243
3260
|
};
|
|
3244
3261
|
});
|
|
3245
|
-
} |
|
|
3262
|
+
} | ((q: WhereQueryBuilder<T>) => QueryOrExpressionBooleanOrNullResult | WhereQueryBuilder<T>);
|
|
3246
3263
|
/**
|
|
3247
3264
|
* Callback argument of `where`.
|
|
3248
3265
|
* It has `where` methods (`where`, `whereNot`, `whereExists`, etc.),
|
|
@@ -4189,6 +4206,35 @@ interface QueryInternal<SinglePrimaryKey = any, UniqueColumns = any, UniqueColum
|
|
|
4189
4206
|
selectAllCount: number;
|
|
4190
4207
|
}
|
|
4191
4208
|
|
|
4209
|
+
type QuerySchema = (() => string) | string;
|
|
4210
|
+
interface HasQuerySchema {
|
|
4211
|
+
q: {
|
|
4212
|
+
schema?: QuerySchema;
|
|
4213
|
+
};
|
|
4214
|
+
}
|
|
4215
|
+
declare const getQuerySchema: (query: HasQuerySchema) => string | undefined;
|
|
4216
|
+
declare class QueryWithSchema {
|
|
4217
|
+
/**
|
|
4218
|
+
* Specifies the schema to be used as a prefix of a table name.
|
|
4219
|
+
*
|
|
4220
|
+
* Though this method can be used to set the schema right when building the query,
|
|
4221
|
+
* it's better to specify schema when calling `db(table, () => columns, { schema: string })`
|
|
4222
|
+
*
|
|
4223
|
+
* ```ts
|
|
4224
|
+
* db.table.withSchema('customSchema').select('id');
|
|
4225
|
+
* ```
|
|
4226
|
+
*
|
|
4227
|
+
* Resulting SQL:
|
|
4228
|
+
*
|
|
4229
|
+
* ```sql
|
|
4230
|
+
* SELECT "user"."id" FROM "customSchema"."user"
|
|
4231
|
+
* ```
|
|
4232
|
+
*
|
|
4233
|
+
* @param schema - a name of the database schema to use
|
|
4234
|
+
*/
|
|
4235
|
+
withSchema<T>(this: T, schema: QuerySchema | undefined): T;
|
|
4236
|
+
}
|
|
4237
|
+
|
|
4192
4238
|
type ShapeColumnPrimaryKeys<Shape extends Column.QueryColumnsInit> = {
|
|
4193
4239
|
[K in {
|
|
4194
4240
|
[K in keyof Shape]: Shape[K]['data']['primaryKey'] extends string ? K : never;
|
|
@@ -4211,6 +4257,7 @@ interface DbSharedOptions extends QueryLogOptions {
|
|
|
4211
4257
|
[K: string]: DbDomainArg<DefaultColumnTypes<DefaultSchemaConfig>>;
|
|
4212
4258
|
};
|
|
4213
4259
|
generatorIgnore?: GeneratorIgnore;
|
|
4260
|
+
schema?: QuerySchema;
|
|
4214
4261
|
}
|
|
4215
4262
|
interface DbOptions<SchemaConfig extends ColumnSchemaConfig, ColumnTypes> extends DbSharedOptions {
|
|
4216
4263
|
schemaConfig?: SchemaConfig;
|
|
@@ -4222,7 +4269,7 @@ interface DbOptionsWithAdapter<SchemaConfig extends ColumnSchemaConfig, ColumnTy
|
|
|
4222
4269
|
adapter: AdapterBase;
|
|
4223
4270
|
}
|
|
4224
4271
|
interface DbTableOptions<ColumnTypes, Table extends string | undefined, Shape extends Column.QueryColumns> extends QueryLogOptions {
|
|
4225
|
-
schema?:
|
|
4272
|
+
schema?: QuerySchema;
|
|
4226
4273
|
/**
|
|
4227
4274
|
* Prepare all SQL queries before executing,
|
|
4228
4275
|
* true by default
|
|
@@ -4371,6 +4418,11 @@ interface DbTableConstructor<ColumnTypes> {
|
|
|
4371
4418
|
ko: Shape;
|
|
4372
4419
|
};
|
|
4373
4420
|
}
|
|
4421
|
+
interface DbSqlMethod<ColumnTypes> {
|
|
4422
|
+
<T>(...args: StaticSQLArgs): RawSql<Column.Pick.QueryColumnOfType<T>, ColumnTypes>;
|
|
4423
|
+
<T>(...args: [DynamicSQLArg<Column.Pick.QueryColumnOfType<T>>]): DynamicRawSQL<Column.Pick.QueryColumnOfType<T>, ColumnTypes>;
|
|
4424
|
+
ref(name: string): SqlRefExpression;
|
|
4425
|
+
}
|
|
4374
4426
|
type MapTableScopesOption<T> = T extends {
|
|
4375
4427
|
scopes: RecordUnknown;
|
|
4376
4428
|
} ? T extends {
|
|
@@ -4383,8 +4435,7 @@ type MapTableScopesOption<T> = T extends {
|
|
|
4383
4435
|
interface DbResult<ColumnTypes> extends Db<string, never, never, never, never, never, ColumnTypes>, DbTableConstructor<ColumnTypes> {
|
|
4384
4436
|
adapter: AdapterBase;
|
|
4385
4437
|
close: AdapterBase['close'];
|
|
4386
|
-
sql
|
|
4387
|
-
sql<T = unknown>(...args: [DynamicSQLArg<Column.Pick.QueryColumnOfType<T>>]): DynamicRawSQL<Column.Pick.QueryColumnOfType<T>, ColumnTypes>;
|
|
4438
|
+
sql: DbSqlMethod<ColumnTypes>;
|
|
4388
4439
|
}
|
|
4389
4440
|
/**
|
|
4390
4441
|
* If you'd like to use the query builder of OrchidORM as a standalone tool, install `pqb` package and use `createDb` to initialize it.
|
|
@@ -4462,7 +4513,8 @@ interface DbResult<ColumnTypes> extends Db<string, never, never, never, never, n
|
|
|
4462
4513
|
* })
|
|
4463
4514
|
* ```
|
|
4464
4515
|
*/
|
|
4465
|
-
declare const createDbWithAdapter: <SchemaConfig extends ColumnSchemaConfig<Column.Pick.Data> = DefaultSchemaConfig, ColumnTypes = DefaultColumnTypes<SchemaConfig>>({ log, logger, snakeCase, schemaConfig, columnTypes: ctOrFn, ...options }: DbOptionsWithAdapter<SchemaConfig, ColumnTypes>) => DbResult<ColumnTypes>;
|
|
4516
|
+
declare const createDbWithAdapter: <SchemaConfig extends ColumnSchemaConfig<Column.Pick.Data> = DefaultSchemaConfig, ColumnTypes = DefaultColumnTypes<SchemaConfig>>({ log, logger, snakeCase, schemaConfig, columnTypes: ctOrFn, schema, ...options }: DbOptionsWithAdapter<SchemaConfig, ColumnTypes>) => DbResult<ColumnTypes>;
|
|
4517
|
+
declare function _createDbSqlMethod<ColumnTypes>(columnTypes: ColumnTypes): DbSqlMethod<ColumnTypes>;
|
|
4466
4518
|
declare const _initQueryBuilder: (adapter: AdapterBase, columnTypes: unknown, transactionStorage: AsyncLocalStorage<TransactionState>, commonOptions: DbTableOptions<unknown, undefined, Column.QueryColumns>, options: DbSharedOptions) => Db;
|
|
4467
4519
|
|
|
4468
4520
|
type SQLQueryArgs = TemplateLiteralArgs | [RawSqlBase];
|
|
@@ -4576,6 +4628,27 @@ declare const countSelect: RawSql<Column.Pick.QueryColumn, DefaultColumnTypes<Co
|
|
|
4576
4628
|
declare function sqlQueryArgsToExpression(args: SQLQueryArgs): RawSqlBase;
|
|
4577
4629
|
interface SqlFn {
|
|
4578
4630
|
<T, Args extends [sql: TemplateStringsArray, ...values: unknown[]] | [sql: string] | [values: RecordUnknown, sql?: string]>(this: T, ...args: Args): Args extends [RecordUnknown] ? (...sql: TemplateLiteralArgs) => RawSql<Column.Pick.QueryColumn, T> : RawSql<Column.Pick.QueryColumn, T>;
|
|
4631
|
+
/**
|
|
4632
|
+
* `sql.ref` quotes a SQL identifier such as a table name, column name, or schema name.
|
|
4633
|
+
* Use it when you need to dynamically reference an identifier in raw SQL.
|
|
4634
|
+
*
|
|
4635
|
+
* ```ts
|
|
4636
|
+
* import { sql } from './baseTable';
|
|
4637
|
+
*
|
|
4638
|
+
* const schema = 'my_schema';
|
|
4639
|
+
*
|
|
4640
|
+
* // Produces: SET LOCAL search_path TO "my_schema"
|
|
4641
|
+
* await db.$query`SET LOCAL search_path TO ${sql.ref(schema)}`
|
|
4642
|
+
* ```
|
|
4643
|
+
*
|
|
4644
|
+
* It handles dots to support qualified names:
|
|
4645
|
+
*
|
|
4646
|
+
* ```ts
|
|
4647
|
+
* // "my_schema"."my_table"
|
|
4648
|
+
* sql.ref('my_schema.my_table');
|
|
4649
|
+
* ```
|
|
4650
|
+
*/
|
|
4651
|
+
ref(name: string): SqlRefExpression;
|
|
4579
4652
|
}
|
|
4580
4653
|
declare const sqlFn: SqlFn;
|
|
4581
4654
|
|
|
@@ -4600,6 +4673,9 @@ interface BatchSql extends SqlCommonOptions {
|
|
|
4600
4673
|
type Sql = SingleSql | BatchSql;
|
|
4601
4674
|
declare const makeSql: (ctx: ToSQLCtx, type: QueryType, isSubSql: boolean | undefined, runAfterQuery?: RunAfterQuery) => SingleSql;
|
|
4602
4675
|
declare const quoteSchemaAndTable: (schema: string | undefined, table: string) => string;
|
|
4676
|
+
declare const requireTableOrStringFrom: (query: ToSQLQuery) => string;
|
|
4677
|
+
declare const quoteTableWithSchema: (query: ToSQLQuery) => string;
|
|
4678
|
+
declare const quoteFromWithSchema: (schema: QuerySchema | undefined, table: string) => string;
|
|
4603
4679
|
declare const makeRowToJson: (table: string, shape: Column.Shape.Data, aliasName: boolean, includingExplicitSelect?: boolean) => string;
|
|
4604
4680
|
declare const getSqlText: (sql: Sql) => string;
|
|
4605
4681
|
declare class QuerySql<ColumnTypes> {
|
|
@@ -6265,7 +6341,7 @@ type UpsertData<T extends UpsertThis, Update extends UpdateData<T>> = {
|
|
|
6265
6341
|
create: UpsertCreate<keyof Update, CreateData<T>> | ((update: Update) => UpsertCreate<keyof Update, CreateData<T>>);
|
|
6266
6342
|
};
|
|
6267
6343
|
declare const _queryUpsert: (q: Query, data: UpsertData<UpsertThis, UpdateData<Query>>) => Query;
|
|
6268
|
-
|
|
6344
|
+
declare class QueryUpsert {
|
|
6269
6345
|
/**
|
|
6270
6346
|
* `upsert` tries to update a single record, and then it creates the record if it doesn't yet exist.
|
|
6271
6347
|
*
|
|
@@ -6375,11 +6451,10 @@ interface QueryUpsert {
|
|
|
6375
6451
|
*/
|
|
6376
6452
|
upsert<T extends UpsertThis, Update extends UpdateData<T>>(this: T, data: UpsertData<T, Update>): UpsertResult<T>;
|
|
6377
6453
|
}
|
|
6378
|
-
declare const QueryUpsert: QueryUpsert;
|
|
6379
6454
|
|
|
6380
6455
|
type OrCreateArg<Data> = Data | (() => Data);
|
|
6381
6456
|
declare function _orCreate<T extends PickQueryHasSelectResultReturnType>(query: T, data: unknown | FnUnknownToUnknown, updateData?: unknown, mergeData?: unknown): UpsertResult<T>;
|
|
6382
|
-
|
|
6457
|
+
declare class QueryOrCreate {
|
|
6383
6458
|
/**
|
|
6384
6459
|
* `orCreate` creates a record only if it was not found by conditions.
|
|
6385
6460
|
*
|
|
@@ -6448,7 +6523,6 @@ interface QueryOrCreate {
|
|
|
6448
6523
|
*/
|
|
6449
6524
|
orCreate<T extends UpsertThis>(this: T, data: OrCreateArg<CreateData<T>>): UpsertResult<T>;
|
|
6450
6525
|
}
|
|
6451
|
-
declare const QueryOrCreate: QueryOrCreate;
|
|
6452
6526
|
|
|
6453
6527
|
interface ColumnsShape {
|
|
6454
6528
|
[K: string]: Column;
|
|
@@ -8938,29 +9012,6 @@ declare const applyComputedColumns: (q: IsQuery, fn: ComputedOptionsFactory<neve
|
|
|
8938
9012
|
declare const processComputedResult: (query: QueryData, result: unknown) => Promise<void[]> | undefined;
|
|
8939
9013
|
declare const processComputedBatches: (query: QueryData, batches: QueryBatchResult[], originalReturnType: QueryReturnType, returnType: QueryReturnType, tempColumns: Set<string> | undefined, renames: RecordString | undefined, key: string) => Promise<void> | undefined;
|
|
8940
9014
|
|
|
8941
|
-
type CopyOptions<Column = string> = {
|
|
8942
|
-
columns?: Column[];
|
|
8943
|
-
format?: 'text' | 'csv' | 'binary';
|
|
8944
|
-
freeze?: boolean;
|
|
8945
|
-
delimiter?: string;
|
|
8946
|
-
null?: string;
|
|
8947
|
-
header?: boolean | 'match';
|
|
8948
|
-
quote?: string;
|
|
8949
|
-
escape?: string;
|
|
8950
|
-
forceQuote?: Column[] | '*';
|
|
8951
|
-
forceNotNull?: Column[];
|
|
8952
|
-
forceNull?: Column[];
|
|
8953
|
-
encoding?: string;
|
|
8954
|
-
} & ({
|
|
8955
|
-
from: string | {
|
|
8956
|
-
program: string;
|
|
8957
|
-
};
|
|
8958
|
-
} | {
|
|
8959
|
-
to: string | {
|
|
8960
|
-
program: string;
|
|
8961
|
-
};
|
|
8962
|
-
});
|
|
8963
|
-
|
|
8964
9015
|
interface RecordOfColumnsShapeBase {
|
|
8965
9016
|
[K: string]: Column.Shape.QueryInit;
|
|
8966
9017
|
}
|
|
@@ -8996,7 +9047,7 @@ interface JoinValueDedupItem {
|
|
|
8996
9047
|
q: Query;
|
|
8997
9048
|
a: string;
|
|
8998
9049
|
}
|
|
8999
|
-
type QueryType = undefined | null | 'upsert' | 'insert' | 'update' | 'delete'
|
|
9050
|
+
type QueryType = undefined | null | 'upsert' | 'insert' | 'update' | 'delete';
|
|
9000
9051
|
interface AsFn {
|
|
9001
9052
|
(as: string): void;
|
|
9002
9053
|
}
|
|
@@ -9025,7 +9076,7 @@ interface QueryData extends QueryDataAliases, PickQueryDataParsers, HasHookSelec
|
|
|
9025
9076
|
joinedForSelect?: string;
|
|
9026
9077
|
innerJoinLateral?: true;
|
|
9027
9078
|
valuesJoinedAs?: RecordString;
|
|
9028
|
-
schema?:
|
|
9079
|
+
schema?: QuerySchema;
|
|
9029
9080
|
select?: SelectItem[];
|
|
9030
9081
|
selectRelation?: boolean;
|
|
9031
9082
|
selectCache?: {
|
|
@@ -9134,13 +9185,6 @@ interface QueryData extends QueryDataAliases, PickQueryDataParsers, HasHookSelec
|
|
|
9134
9185
|
};
|
|
9135
9186
|
/** update **/
|
|
9136
9187
|
updateData: UpdateQueryDataItem[];
|
|
9137
|
-
/** truncate **/
|
|
9138
|
-
restartIdentity?: boolean;
|
|
9139
|
-
cascade?: boolean;
|
|
9140
|
-
/** column info **/
|
|
9141
|
-
column?: string;
|
|
9142
|
-
/** copy **/
|
|
9143
|
-
copy: CopyOptions;
|
|
9144
9188
|
}
|
|
9145
9189
|
type InsertQueryDataObjectValues = unknown[][];
|
|
9146
9190
|
interface UpdateQueryDataObject {
|
|
@@ -9916,7 +9960,7 @@ type QueryIfResultThen<T extends PickQueryResultReturnType, R extends PickQueryR
|
|
|
9916
9960
|
} & {
|
|
9917
9961
|
[K in keyof R['result'] as K extends keyof T['result'] ? never : K]?: R['result'][K]['outputType'];
|
|
9918
9962
|
}> : T['returnType'] extends 'value' ? QueryThen<T['result']['value']['outputType'] | R['result']['value']['outputType'] | undefined> : T['returnType'] extends 'valueOrThrow' ? QueryThen<T['result']['value']['outputType'] | R['result']['value']['outputType']> : T['returnType'] extends 'rows' ? QueryThen<(T['result'][keyof T['result']]['outputType'] | R['result'][keyof R['result']]['outputType'])[][]> : T['returnType'] extends 'pluck' ? QueryThen<(T['result']['pluck']['outputType'] | R['result']['pluck']['outputType'])[]> : QueryThen<void>;
|
|
9919
|
-
interface QueryMethods<ColumnTypes> extends QueryClone, QueryAsMethods, AggregateMethods, QueryDistinct, Select, FromMethods, QueryJoin, QueryLimitOffset, CteQuery, Union, JsonMethods, QueryCreate, QueryCreateFrom, Update, Delete, Transaction, QueryTruncate, For, Where, SearchMethods, Clear, Having, QueryCatchers, QueryLog, QueryOrder, QueryHooks, QueryUpsert, QueryOrCreate, QueryGet, MergeQueryMethods, QuerySql<ColumnTypes>, QueryTransform, QueryMap, QueryScope, SoftDeleteMethods, QueryExpressions, QueryWrap, QueryWindow {
|
|
9963
|
+
interface QueryMethods<ColumnTypes> extends QueryClone, QueryAsMethods, AggregateMethods, QueryDistinct, Select, FromMethods, QueryJoin, QueryLimitOffset, CteQuery, Union, JsonMethods, QueryCreate, QueryCreateFrom, Update, Delete, Transaction, QueryTruncate, For, Where, SearchMethods, Clear, Having, QueryCatchers, QueryLog, QueryOrder, QueryWithSchema, QueryHooks, QueryUpsert, QueryOrCreate, QueryGet, MergeQueryMethods, QuerySql<ColumnTypes>, QueryTransform, QueryMap, QueryScope, SoftDeleteMethods, QueryExpressions, QueryWrap, QueryWindow {
|
|
9920
9964
|
}
|
|
9921
9965
|
declare class QueryMethods<ColumnTypes> {
|
|
9922
9966
|
/**
|
|
@@ -10092,25 +10136,6 @@ declare class QueryMethods<ColumnTypes> {
|
|
|
10092
10136
|
* @param uniqueColumnValues - is derived from primary keys and unique indexes in the table
|
|
10093
10137
|
*/
|
|
10094
10138
|
findByOptional<T extends PickQueryResultReturnTypeUniqueColumns>(this: T, uniqueColumnValues: T['internal']['uniqueColumns']): QueryTakeOptional<T> & QueryHasWhere;
|
|
10095
|
-
/**
|
|
10096
|
-
* Specifies the schema to be used as a prefix of a table name.
|
|
10097
|
-
*
|
|
10098
|
-
* Though this method can be used to set the schema right when building the query,
|
|
10099
|
-
* it's better to specify schema when calling `db(table, () => columns, { schema: string })`
|
|
10100
|
-
*
|
|
10101
|
-
* ```ts
|
|
10102
|
-
* db.table.withSchema('customSchema').select('id');
|
|
10103
|
-
* ```
|
|
10104
|
-
*
|
|
10105
|
-
* Resulting SQL:
|
|
10106
|
-
*
|
|
10107
|
-
* ```sql
|
|
10108
|
-
* SELECT "user"."id" FROM "customSchema"."user"
|
|
10109
|
-
* ```
|
|
10110
|
-
*
|
|
10111
|
-
* @param schema - a name of the database schema to use
|
|
10112
|
-
*/
|
|
10113
|
-
withSchema<T>(this: T, schema: string): T;
|
|
10114
10139
|
/**
|
|
10115
10140
|
* For the `GROUP BY` SQL statement, it is accepting column names or raw expressions.
|
|
10116
10141
|
*
|
|
@@ -10921,7 +10946,7 @@ interface AdapterConfigConnectRetryStrategy {
|
|
|
10921
10946
|
}
|
|
10922
10947
|
interface AdapterBase {
|
|
10923
10948
|
connectRetryConfig?: AdapterConfigConnectRetry;
|
|
10924
|
-
|
|
10949
|
+
searchPath?: string;
|
|
10925
10950
|
errorClass: new (...args: any[]) => Error;
|
|
10926
10951
|
assignError(to: QueryError, from: Error): void;
|
|
10927
10952
|
updateConfig(config: any): Promise<void>;
|
|
@@ -10929,11 +10954,11 @@ interface AdapterBase {
|
|
|
10929
10954
|
database?: string;
|
|
10930
10955
|
user?: string;
|
|
10931
10956
|
password?: string;
|
|
10932
|
-
|
|
10957
|
+
searchPath?: string;
|
|
10933
10958
|
}): AdapterBase;
|
|
10934
10959
|
getDatabase(): string;
|
|
10935
10960
|
getUser(): string;
|
|
10936
|
-
|
|
10961
|
+
getSearchPath(): string | undefined;
|
|
10937
10962
|
getHost(): string;
|
|
10938
10963
|
connect?(): Promise<unknown>;
|
|
10939
10964
|
query<T extends QueryResultRow = QueryResultRow>(text: string, values?: unknown[], catchingSavepoint?: string): Promise<QueryResult<T>>;
|
|
@@ -10999,4 +11024,4 @@ declare const testTransaction: {
|
|
|
10999
11024
|
close(arg: Arg): Promise<void>;
|
|
11000
11025
|
};
|
|
11001
11026
|
|
|
11002
|
-
export { type AdapterBase, type AdapterConfigBase, type AdapterConfigConnectRetry, type AddQueryDefaults, type AdditionalDateData, type AdditionalNumberData, type AdditionalStringData, AfterCommitError, type AfterCommitErrorFulfilledResult, type AfterCommitErrorHandler, type AfterCommitErrorRejectedResult, type AfterCommitErrorResult, type AfterCommitHook, type AfterCommitStandaloneHook, type AfterHook, type AggregateOptions, type ArgWithBeforeAndBeforeSet, ArrayColumn, type ArrayColumnValue, type ArrayData, type ArrayMethodsData, type ArrayMethodsDataForBaseColumn, type AsFn, type AsQueryArg, type BaseNumberData, type BatchSql, BigIntColumn, BigSerialColumn, BitColumn, BitVaryingColumn, BooleanColumn, BoxColumn, ByteaColumn, type ChangeCountArg, CidrColumn, CircleColumn, CitextColumn, type Code, type Codes, Column, type ColumnFromDbParams, ColumnRefExpression, type ColumnSchemaConfig, type ColumnSchemaGetterColumns, type ColumnSchemaGetterTableClass, type ColumnToCodeCtx, type ColumnTypeSchemaArg, type ColumnsByType, ColumnsShape, ComputedColumn, type ComputedColumns, type ComputedColumnsFromOptions, type ComputedMethods, type ComputedOptionsConfig, type ComputedOptionsFactory, type CreateBelongsToData, type CreateColumn, type CreateCtx, type CreateData, type CreateFromMethodNames, type CreateManyFromMethodNames, type CreateManyMethodsNames, type CreateMethodsNames, type CreateRelationsData, type CreateRelationsDataOmittingFKeys, type CreateResult, type CreateSelf, type CteArgsOptions, type CteHooks, type CteItem, type CteOptions, CteQuery, type CteQueryBuilder, type CteRecursiveOptions, type CteResult, type CteSqlResult, type CteTableHook, type CteTableHooks, CustomTypeColumn, DateBaseColumn, DateColumn, type DateColumnData, type DateColumnInput, DateTimeBaseClass, DateTimeTzBaseClass, Db, type DbDomainArg, type DbDomainArgRecord, type DbExtension, type DbOptions, type DbOptionsWithAdapter, type DbResult, type DbSharedOptions, type DbSqlQuery, type DbStructureDomainsMap, type DbTableConstructor, type DbTableOptionScopes, type DbTableOptions, DecimalColumn, type DecimalColumnData, type DefaultColumnTypes, type DefaultSchemaConfig, type DelayedRelationSelect, Delete, type DeleteArgs, type DeleteMethodsNames, type DeleteResult, DomainColumn, DoublePrecisionColumn, DynamicRawSQL, type DynamicSQLArg, type EmptyObject, type EmptyTuple, EnumColumn, Expression, type ExpressionChain, type ExpressionData, type ExpressionOutput, ExpressionTypeMethod, FnExpression, type FnExpressionArgs, type FnExpressionArgsPairs, type FnExpressionArgsValue, type FnUnknownToUnknown, type FromArg, FromMethods, type FromQuerySelf, type FromResult, type GeneratorIgnore, type GroupArgs, type HandleResult, type HasBeforeAndBeforeSet, type HasCteHooks, type HasHookSelect, type HasTableHook, type HavingItem, type HookAction, type HookSelect, type HookSelectArg, type HookSelectValue, type IdentityColumn, InetColumn, type InsertQueryDataObjectValues, IntegerBaseColumn, IntegerColumn, IntervalColumn, type IsQueries, type IsQuery, type IsSubQuery, type IsolationLevel, JSONColumn, JSONTextColumn, type JoinArgToQuery, type JoinArgs, type JoinCallback, type JoinFirstArg, type JoinItem, type JoinItemArgs, type JoinLateralResult, type JoinQueryBuilder, type JoinQueryMethod, type JoinResult, type JoinResultFromArgs, type JoinResultRequireMain, type JoinResultSelectable, type JoinValueDedupItem, type JoinedParsers, type JoinedShapes, LimitedTextBaseColumn, LineColumn, LsegColumn, MacAddr8Column, MacAddrColumn, type MapTableScopesOption, type MaybeArray, type MaybePromise, type MergeQuery, type MergeQueryArg, MergeQueryMethods, MoneyColumn, MoreThanOneRowError, type MoveMutativeQueryToCte, type NoPrimaryKeyOption, type NonUniqDataItem, NotFoundError, NumberAsStringBaseColumn, NumberBaseColumn, type NumberColumnData, type NumericColumns, type OnConflictMerge, OnConflictQueryBuilder, type OnConflictSet, type OnConflictTarget, OnMethods, type Operator, type OperatorToSQL, Operators, type OperatorsAny, type OperatorsArray, type OperatorsBoolean, type OperatorsDate, type OperatorsJson, type OperatorsNumber, type OperatorsOrdinalText, type OperatorsText, type OperatorsTime, type OrCreateArg, OrExpression, type OrExpressionArg, OrchidOrmError, OrchidOrmInternalError, type OrderItem, type OrderTsQueryConfig, type Over, PathColumn, type PickQueryAs, type PickQueryBaseQuery, type PickQueryColumTypes, type PickQueryDataShapeAndJoinedShapes, type PickQueryDataShapeAndJoinedShapesAndAliases, type PickQueryDefaultSelect, type PickQueryDefaults, type PickQueryHasSelect, type PickQueryHasSelectHasWhereResultReturnType, type PickQueryHasSelectResult, type PickQueryHasSelectResultReturnType, type PickQueryHasSelectResultShapeAs, type PickQueryHasWhere, type PickQueryInputType, type PickQueryInternal, type PickQueryIsSubQuery, type PickQueryMetaSelectableResultRelationsWindowsColumnTypes, type PickQueryMetaSelectableResultRelationsWithDataReturnTypeShapeAs, type PickQueryQ, type PickQueryQAndBaseQuery, type PickQueryQAndInternal, type PickQueryRelationQueries, type PickQueryRelations, type PickQueryRelationsWithData, type PickQueryResult, type PickQueryResultAs, type PickQueryResultColumnTypes, type PickQueryResultRelationsWithDataReturnTypeShape, type PickQueryResultReturnType, type PickQueryResultReturnTypeUniqueColumns, type PickQueryResultUniqueColumns, type PickQueryReturnType, type PickQueryScopes, type PickQuerySelectable, type PickQuerySelectableColumnTypes, type PickQuerySelectableRelations, type PickQuerySelectableRelationsResultReturnType, type PickQuerySelectableResult, type PickQuerySelectableResultAs, type PickQuerySelectableResultInputTypeAs, type PickQuerySelectableResultRelationsWindows, type PickQuerySelectableResultRelationsWithDataReturnType, type PickQuerySelectableResultRelationsWithDataReturnTypeShapeAs, type PickQuerySelectableResultReturnType, type PickQuerySelectableResultWindows, type PickQuerySelectableReturnType, type PickQuerySelectableShape, type PickQuerySelectableShapeAs, type PickQuerySelectableShapeRelationsReturnTypeIsSubQuery, type PickQuerySelectableShapeRelationsWithData, type PickQuerySelectableShapeRelationsWithDataAs, type PickQuerySelectableShapeRelationsWithDataAsResultReturnType, type PickQueryShape, type PickQueryShapeAs, type PickQueryShapeResultReturnTypeSinglePrimaryKey, type PickQueryShapeResultSinglePrimaryKey, type PickQueryShapeSinglePrimaryKey, type PickQuerySinglePrimaryKey, type PickQueryTable, type PickQueryTableMetaShapeTableAs, type PickQueryThen, type PickQueryTsQuery, type PickQueryUniqueProperties, type PickQueryWindows, type PickQueryWithData, type PickQueryWithDataColumnTypes, PointColumn, PolygonColumn, PostgisGeographyPointColumn, type PostgisPoint, type PrepareSubQueryForSql, type PrepareSubQueryForSqlArg, type Query, type QueryAfterHook, type QueryArraysResult, QueryAsMethods, type QueryBatchResult, type QueryBeforeActionHook, type QueryBeforeHook, type QueryBuilder, type QueryCatch, type QueryCatchers, QueryClone, type QueryComputedArg, QueryCreate, QueryCreateFrom, type QueryData, type QueryDataAliases, type QueryDataFromItem, type QueryDataJoinTo, type QueryDataScopes, type QueryDataSources, type QueryDataTransform, type QueryDataUnion, QueryError, type QueryErrorName, QueryExpressions, QueryGet, type QueryHasSelect, type QueryHasWhere, type QueryHelperResult, QueryHookUtils, QueryHooks, type QueryIfResultThen, type QueryInternal, type QueryInternalColumnNameToKey, QueryJoin, QueryLog, type QueryLogObject, type QueryLogOptions, type QueryLogger, type QueryManyTake, type QueryManyTakeOptional, QueryMethods, QueryOrCreate, type QueryOrExpression, type QueryOrExpressionBooleanOrNullResult, type QueryResult, type QueryResultRow, type QueryReturnType, type QueryReturnTypeAll, type QueryReturnTypeOptional, QueryScope, type QueryScopeData, type QueryScopes, type QuerySelectable, type QuerySourceItem, QuerySql, type QueryTake, type QueryTakeOptional, type QueryThen, type QueryThenByQuery, type QueryThenByReturnType, type QueryThenShallowSimplify, type QueryThenShallowSimplifyArr, type QueryThenShallowSimplifyOptional, QueryTransform, type QueryType, QueryUpsert, QueryWrap, type RawSQLValues, RawSql, type RawSqlBase, RealColumn, type RecordBoolean, type RecordKeyTrue, type RecordOfColumnsShapeBase, type RecordOptionalString, type RecordString, type RecordUnknown, RefExpression, type RelationConfigBase, type RelationConfigDataForCreate, type RelationConfigQuery, type RelationJoinQuery, type RelationsBase, type ReturnsQueryOrExpression, type RunAfterQuery, type RuntimeComputedQueryColumn, type SQLArgs, type SQLQueryArgs, type ScopeArgumentQuery, type SearchWeight, type SearchWeightRecord, Select, type SelectArg, type SelectArgs, type SelectAs, type SelectAsArg, type SelectAsFnArg, type SelectAsValue, type SelectItem, type SelectSelf, type SelectSubQueryResult, type SelectableFromShape, type SelectableOfType, type SelectableOrExpression, type SelectableOrExpressionOfType, type SelectableOrExpressions, SerialColumn, type SerialColumnData, type SetQueryResult, type SetQueryReturnsAll, type SetQueryReturnsAllResult, type SetQueryReturnsColumn, type SetQueryReturnsColumnOptional, type SetQueryReturnsColumnOrThrow, type SetQueryReturnsColumnResult, type SetQueryReturnsOne, type SetQueryReturnsOneResult, type SetQueryReturnsPluck, type SetQueryReturnsPluckColumnResult, type SetQueryReturnsRowCount, type SetQueryReturnsRowCountMany, type SetQueryReturnsRows, type SetQueryReturnsValueOptional, type SetQueryReturnsValueOrThrow, type SetQueryReturnsVoid, type SetQueryTableAlias, type SetValueQueryReturnsPluckColumn, type SetValueQueryReturnsValueOrThrow, type ShallowSimplify, type ShapeColumnPrimaryKeys, type ShapeUniqueColumns, type SimpleJoinItemNonSubQueryArgs, type SingleSql, type SingleSqlItem, SmallIntColumn, SmallSerialColumn, type SortDir, type Sql, type SqlCommonOptions, type SqlFn, type StaticSQLArgs, StringColumn$1 as StringColumn, type StringData, type SubQueryForSql, TableData, type TableDataFn, type TableDataInput, type TableDataItem, type TableDataItemsUniqueColumnTuples, type TableDataItemsUniqueColumns, type TableDataItemsUniqueConstraints, type TableDataMethods, type TableHook, type TemplateLiteralArgs, TextBaseColumn, TextColumn, type TextColumnData, Then, TimeColumn, type TimeInterval, TimestampColumn, type TimestampHelpers, TimestampTZColumn, type Timestamps, type TopCTE, Transaction, type TransactionAfterCommitHook, type TransactionOptions, type TransactionState, TsQueryColumn, TsVectorColumn, UUIDColumn, UnhandledTypeError, type UnionItem, type UnionKind, type UnionSet, type UnionToIntersection, type UniqueConstraints, type UniqueQueryTypeOrExpression, type UniqueTableDataItem, UnknownColumn, Update, type UpdateArg, type UpdateCtxCollect, type UpdateData, type UpdateQueryDataItem, type UpdateQueryDataObject, type UpdateSelf, type UpdatedAtDataInjector, type UpsertData, type UpsertResult, type UpsertThis, VarCharColumn, VirtualColumn, Where, type WhereArg, type WhereArgs, type WhereInArg, type WhereInColumn, type WhereInItem, type WhereInValues, type WhereItem, type WhereJsonPathEqualsItem, type WhereNotArgs, type WhereOnItem, type WhereOnJoinItem, type WhereQueryBuilder, type WhereSearchItem, type WindowDeclaration, type WindowItem, type WithConfig, type WithConfigs, type WithDataItem, type WithDataItems, type WithItems, type WrapQueryArg, XMLColumn, _addToHookSelect, _addToHookSelectWithTable, _appendQuery, _applyRelationAliases, _checkIfAliased, _clone, _copyQueryAliasToQuery, _getQueryAliasOrName, _getQueryAs, _getQueryFreeAlias, _getQueryOuterAliases, _initQueryBuilder, _join, _joinLateral, _joinLateralProcessArg, _joinReturningArgs, _orCreate, _prependWith, _queryAfterSaveCommit, _queryAll, _queryChangeCounter, _queryCreate, _queryCreateForEachFrom, _queryCreateMany, _queryCreateManyFrom, _queryCreateOneFrom, _queryDefaults, _queryDelete, _queryExec, _queryFindBy, _queryFindByOptional, _queryHookAfterCreate, _queryHookAfterCreateCommit, _queryHookAfterDelete, _queryHookAfterDeleteCommit, _queryHookAfterQuery, _queryHookAfterSave, _queryHookAfterUpdate, _queryHookAfterUpdateCommit, _queryHookBeforeCreate, _queryHookBeforeDelete, _queryHookBeforeQuery, _queryHookBeforeSave, _queryHookBeforeUpdate, _queryInsert, _queryInsertForEachFrom, _queryInsertMany, _queryInsertManyFrom, _queryInsertOneFrom, _queryJoinOn, _queryJoinOnJsonPathEquals, _queryJoinOrOn, _queryOr, _queryOrNot, _queryRows, _querySelect, _querySelectAll, _queryTake, _queryTakeOptional, _queryUpdate, _queryUpdateOrThrow, _queryUpsert, _queryWhere, _queryWhereExists, _queryWhereIn, _queryWhereNot, _queryWhereNotExists, _queryWhereNotOneOf, _queryWhereNotSql, _queryWhereOneOf, _queryWhereSql, _runAfterCommitHooks, _setQueryAlias, _setQueryAs, _setSubQueryAliases, _with, addCode, addColumnParserToQuery, addParserForRawExpression, addParserForSelectItem, addQueryOn, addTopCte, addTopCteSql, addValue, addWithToSql, anyShape, applyBatchTransforms, applyComputedColumns, applyMixins, applyTransforms, arrayDataToCode, arrayMethodNames, assignDbDataToColumn, backtickQuote, callWithThis, checkIfASimpleQuery, cloneQueryBaseUnscoped, codeToString, colors, columnCheckToCode, columnCode, columnDefaultArgumentToCode, columnErrorMessagesToCode, columnExcludesToCode, columnForeignKeysToCode, columnIndexesToCode, columnMethodsToCode, columnsShapeToCode, commitSql, composeCteSingleSql, constraintInnerToCode, constraintToCode, consumeColumnName, countSelect, createCtx, createDbWithAdapter, createSelect, cteToSql, cteToSqlGiveAs, ctesToSql, dateDataToCode, dateMethodNames, deepCompare, defaultSchemaConfig, emptyArray, emptyObject, escapeForLog, escapeForMigration, escapeString, excludeInnerToCode, excludeToCode, exhaustive, extendQuery, filterResult, finalizeNestedHookSelect, foreignKeyArgumentToCode, getCallerFilePath, getClonedQueryData, getColumnBaseType, getColumnTypes, getDefaultLanguage, getDefaultNowFn, getFreeAlias, getFreeSetAlias, getFromSelectColumns, getFullColumnTable, getImportPath, getPrimaryKeys, getQueryAs, getSearchLang, getSearchText, getShapeFromSelect, getSqlText, getStackTrace, getTopCteSize, handleManyData, handleOneData, handleResult, havingToSql, identityToCode, indexInnerToCode, indexToCode, insert, isDefaultTimeStamp, isExpression, isInUserTransaction, isIterable, isObjectEmpty, isQuery, isQueryReturnsAll, isRawSQL, isRelationQuery, isTemplateLiteralArgs, joinSubQuery, joinTruthy, logColors, logParamToLogObject, makeColumnNullable, makeColumnTypes, makeColumnsByType, makeFnExpression, makeInsertSql, makeReturningSql, makeRowToJson, makeSql, moveMutativeQueryToCte, newDelayedRelationSelect, noop, numberDataToCode, numberMethodNames, objectHasValues, omit, orderByToSql, parseRecord, parseTableData, parseTableDataInput, pathToLog, performQuery, pick, pluralize, postgisTypmodToSql, prepareOpArg, prepareSubQueryForSql, primaryKeyInnerToCode, processComputedBatches, processComputedResult, processJoinItem, processSelectArg, pushColumnData, pushHavingSql, pushJoinSql, pushOrNewArray, pushOrNewArrayToObjectImmutable, pushOrderBySql, pushQueryArrayImmutable, pushQueryOn, pushQueryOnForOuter, pushQueryOrOn, pushQueryValueImmutable, pushTableDataCode, pushUnionSql, pushWhereStatementSql, pushWhereToSql, queryColumnNameToKey, queryFrom, queryFromSql, queryMethodByReturnType, queryTypeWithLimitOne, queryWrap, quoteObjectKey, quoteSchemaAndTable, raw, rawSqlToCode, referencesArgsToCode, requirePrimaryKeys, requireQueryAs, resetDefaultNowFn, resolveSubQueryCallback, returnArg, rollbackSql, saveAliasedShape, searchSourcesToSql, selectAllSql, selectToSql, selectToSqlList, setColumnData, setColumnDefaultParse, setColumnEncode, setColumnParse, setColumnParseNull, setConnectRetryConfig, setCurrentColumnName, setDataValue, setDb, setDefaultLanguage, setDefaultNowFn, setDelayedRelation, setFreeAlias, setFreeTopCteAs, setMoveMutativeQueryToCte, setObjectValueImmutable, setParserForSelectedString, setPrepareSubQueryForSql, setQueryObjectValueImmutable, setQueryOperators, setRawSqlPrepareSubQueryForSql, setSqlCtxSelectList, setTopCteSize, singleQuote, singleQuoteArray, snakeCaseKey, spreadObjectValues, sqlFn, sqlQueryArgsToExpression, stringDataToCode, stringMethodNames, tableDataMethods, templateLiteralSQLToCode, templateLiteralToSQL, testTransaction, throwIfJoinLateral, throwIfNoWhere, throwOnReadOnly, timestampHelpers, toArray, toCamelCase, toPascalCase, toSnakeCase, whereToSql, windowToSql, wrapAdapterFnWithConnectRetry };
|
|
11027
|
+
export { type AdapterBase, type AdapterConfigBase, type AdapterConfigConnectRetry, type AddQueryDefaults, type AdditionalDateData, type AdditionalNumberData, type AdditionalStringData, AfterCommitError, type AfterCommitErrorFulfilledResult, type AfterCommitErrorHandler, type AfterCommitErrorRejectedResult, type AfterCommitErrorResult, type AfterCommitHook, type AfterCommitStandaloneHook, type AfterHook, type AggregateOptions, type ArgWithBeforeAndBeforeSet, ArrayColumn, type ArrayColumnValue, type ArrayData, type ArrayMethodsData, type ArrayMethodsDataForBaseColumn, type AsFn, type AsQueryArg, type BaseNumberData, type BatchSql, BigIntColumn, BigSerialColumn, BitColumn, BitVaryingColumn, BooleanColumn, BoxColumn, ByteaColumn, type ChangeCountArg, CidrColumn, CircleColumn, CitextColumn, type Code, type Codes, Column, type ColumnFromDbParams, ColumnRefExpression, type ColumnSchemaConfig, type ColumnSchemaGetterColumns, type ColumnSchemaGetterTableClass, type ColumnToCodeCtx, type ColumnTypeSchemaArg, type ColumnsByType, ColumnsShape, ComputedColumn, type ComputedColumns, type ComputedColumnsFromOptions, type ComputedMethods, type ComputedOptionsConfig, type ComputedOptionsFactory, type CreateBelongsToData, type CreateColumn, type CreateCtx, type CreateData, type CreateFromMethodNames, type CreateManyFromMethodNames, type CreateManyMethodsNames, type CreateMethodsNames, type CreateRelationsData, type CreateRelationsDataOmittingFKeys, type CreateResult, type CreateSelf, type CteArgsOptions, type CteHooks, type CteItem, type CteOptions, CteQuery, type CteQueryBuilder, type CteRecursiveOptions, type CteResult, type CteSqlResult, type CteTableHook, type CteTableHooks, CustomTypeColumn, DateBaseColumn, DateColumn, type DateColumnData, type DateColumnInput, DateTimeBaseClass, DateTimeTzBaseClass, Db, type DbDomainArg, type DbDomainArgRecord, type DbExtension, type DbOptions, type DbOptionsWithAdapter, type DbResult, type DbSharedOptions, type DbSqlMethod, type DbSqlQuery, type DbStructureDomainsMap, type DbTableConstructor, type DbTableOptionScopes, type DbTableOptions, DecimalColumn, type DecimalColumnData, type DefaultColumnTypes, type DefaultSchemaConfig, type DelayedRelationSelect, Delete, type DeleteArgs, type DeleteMethodsNames, type DeleteResult, DomainColumn, DoublePrecisionColumn, DynamicRawSQL, type DynamicSQLArg, type EmptyObject, type EmptyTuple, EnumColumn, Expression, type ExpressionChain, type ExpressionData, type ExpressionOutput, ExpressionTypeMethod, FnExpression, type FnExpressionArgs, type FnExpressionArgsPairs, type FnExpressionArgsValue, type FnUnknownToUnknown, type FromArg, FromMethods, type FromQuerySelf, type FromResult, type GeneratorIgnore, type GroupArgs, type HandleResult, type HasBeforeAndBeforeSet, type HasCteHooks, type HasHookSelect, type HasTableHook, type HavingItem, type HookAction, type HookSelect, type HookSelectArg, type HookSelectValue, type IdentityColumn, InetColumn, type InsertQueryDataObjectValues, IntegerBaseColumn, IntegerColumn, IntervalColumn, type IsQueries, type IsQuery, type IsSubQuery, type IsolationLevel, JSONColumn, JSONTextColumn, type JoinArgToQuery, type JoinArgs, type JoinCallback, type JoinFirstArg, type JoinItem, type JoinItemArgs, type JoinLateralResult, type JoinQueryBuilder, type JoinQueryMethod, type JoinResult, type JoinResultFromArgs, type JoinResultRequireMain, type JoinResultSelectable, type JoinValueDedupItem, type JoinedParsers, type JoinedShapes, LimitedTextBaseColumn, LineColumn, LsegColumn, MacAddr8Column, MacAddrColumn, type MapTableScopesOption, type MaybeArray, type MaybePromise, type MergeQuery, type MergeQueryArg, MergeQueryMethods, MoneyColumn, MoreThanOneRowError, type MoveMutativeQueryToCte, type NoPrimaryKeyOption, type NonUniqDataItem, NotFoundError, NumberAsStringBaseColumn, NumberBaseColumn, type NumberColumnData, type NumericColumns, type OnConflictMerge, OnConflictQueryBuilder, type OnConflictSet, type OnConflictTarget, OnMethods, type Operator, type OperatorToSQL, Operators, type OperatorsAny, type OperatorsArray, type OperatorsBoolean, type OperatorsDate, type OperatorsJson, type OperatorsNumber, type OperatorsOrdinalText, type OperatorsText, type OperatorsTime, type OrCreateArg, OrExpression, type OrExpressionArg, OrchidOrmError, OrchidOrmInternalError, type OrderItem, type OrderTsQueryConfig, type Over, PathColumn, type PickQueryAs, type PickQueryBaseQuery, type PickQueryColumTypes, type PickQueryDataShapeAndJoinedShapes, type PickQueryDataShapeAndJoinedShapesAndAliases, type PickQueryDefaultSelect, type PickQueryDefaults, type PickQueryHasSelect, type PickQueryHasSelectHasWhereResultReturnType, type PickQueryHasSelectResult, type PickQueryHasSelectResultReturnType, type PickQueryHasSelectResultShapeAs, type PickQueryHasWhere, type PickQueryInputType, type PickQueryInternal, type PickQueryIsSubQuery, type PickQueryMetaSelectableResultRelationsWindowsColumnTypes, type PickQueryMetaSelectableResultRelationsWithDataReturnTypeShapeAs, type PickQueryQ, type PickQueryQAndBaseQuery, type PickQueryQAndInternal, type PickQueryRelationQueries, type PickQueryRelations, type PickQueryRelationsWithData, type PickQueryResult, type PickQueryResultAs, type PickQueryResultColumnTypes, type PickQueryResultRelationsWithDataReturnTypeShape, type PickQueryResultReturnType, type PickQueryResultReturnTypeUniqueColumns, type PickQueryResultUniqueColumns, type PickQueryReturnType, type PickQueryScopes, type PickQuerySelectable, type PickQuerySelectableColumnTypes, type PickQuerySelectableRelations, type PickQuerySelectableRelationsResultReturnType, type PickQuerySelectableResult, type PickQuerySelectableResultAs, type PickQuerySelectableResultInputTypeAs, type PickQuerySelectableResultRelationsWindows, type PickQuerySelectableResultRelationsWithDataReturnType, type PickQuerySelectableResultRelationsWithDataReturnTypeShapeAs, type PickQuerySelectableResultReturnType, type PickQuerySelectableResultWindows, type PickQuerySelectableReturnType, type PickQuerySelectableShape, type PickQuerySelectableShapeAs, type PickQuerySelectableShapeRelationsReturnTypeIsSubQuery, type PickQuerySelectableShapeRelationsWithData, type PickQuerySelectableShapeRelationsWithDataAs, type PickQuerySelectableShapeRelationsWithDataAsResultReturnType, type PickQueryShape, type PickQueryShapeAs, type PickQueryShapeResultReturnTypeSinglePrimaryKey, type PickQueryShapeResultSinglePrimaryKey, type PickQueryShapeSinglePrimaryKey, type PickQuerySinglePrimaryKey, type PickQueryTable, type PickQueryTableMetaShapeTableAs, type PickQueryThen, type PickQueryTsQuery, type PickQueryUniqueProperties, type PickQueryWindows, type PickQueryWithData, type PickQueryWithDataColumnTypes, PointColumn, PolygonColumn, PostgisGeographyPointColumn, type PostgisPoint, type PrepareSubQueryForSql, type PrepareSubQueryForSqlArg, type Query, type QueryAfterHook, type QueryArraysResult, QueryAsMethods, type QueryBatchResult, type QueryBeforeActionHook, type QueryBeforeHook, type QueryBuilder, type QueryCatch, type QueryCatchers, QueryClone, type QueryComputedArg, QueryCreate, QueryCreateFrom, type QueryData, type QueryDataAliases, type QueryDataFromItem, type QueryDataJoinTo, type QueryDataScopes, type QueryDataSources, type QueryDataTransform, type QueryDataUnion, QueryError, type QueryErrorName, QueryExpressions, QueryGet, type QueryHasSelect, type QueryHasWhere, type QueryHelperResult, QueryHookUtils, QueryHooks, type QueryIfResultThen, type QueryInternal, type QueryInternalColumnNameToKey, QueryJoin, QueryLog, type QueryLogObject, type QueryLogOptions, type QueryLogger, type QueryManyTake, type QueryManyTakeOptional, QueryMethods, QueryOrCreate, type QueryOrExpression, type QueryOrExpressionBooleanOrNullResult, type QueryResult, type QueryResultRow, type QueryReturnType, type QueryReturnTypeAll, type QueryReturnTypeOptional, type QuerySchema, QueryScope, type QueryScopeData, type QueryScopes, type QuerySelectable, type QuerySourceItem, QuerySql, type QueryTake, type QueryTakeOptional, type QueryThen, type QueryThenByQuery, type QueryThenByReturnType, type QueryThenShallowSimplify, type QueryThenShallowSimplifyArr, type QueryThenShallowSimplifyOptional, QueryTransform, type QueryType, QueryUpsert, QueryWithSchema, QueryWrap, type RawSQLValues, RawSql, type RawSqlBase, RealColumn, type RecordBoolean, type RecordKeyTrue, type RecordOfColumnsShapeBase, type RecordOptionalString, type RecordString, type RecordUnknown, RefExpression, type RelationConfigBase, type RelationConfigDataForCreate, type RelationConfigQuery, type RelationJoinQuery, type RelationsBase, type ReturnsQueryOrExpression, type RunAfterQuery, type RuntimeComputedQueryColumn, type SQLArgs, type SQLQueryArgs, type ScopeArgumentQuery, type SearchWeight, type SearchWeightRecord, Select, type SelectArg, type SelectArgs, type SelectAs, type SelectAsArg, type SelectAsFnArg, type SelectAsValue, type SelectItem, type SelectSelf, type SelectSubQueryResult, type SelectableFromShape, type SelectableOfType, type SelectableOrExpression, type SelectableOrExpressionOfType, type SelectableOrExpressions, SerialColumn, type SerialColumnData, type SetQueryResult, type SetQueryReturnsAll, type SetQueryReturnsAllResult, type SetQueryReturnsColumn, type SetQueryReturnsColumnOptional, type SetQueryReturnsColumnOrThrow, type SetQueryReturnsColumnResult, type SetQueryReturnsOne, type SetQueryReturnsOneResult, type SetQueryReturnsPluck, type SetQueryReturnsPluckColumnResult, type SetQueryReturnsRowCount, type SetQueryReturnsRowCountMany, type SetQueryReturnsRows, type SetQueryReturnsValueOptional, type SetQueryReturnsValueOrThrow, type SetQueryReturnsVoid, type SetQueryTableAlias, type SetValueQueryReturnsPluckColumn, type SetValueQueryReturnsValueOrThrow, type ShallowSimplify, type ShapeColumnPrimaryKeys, type ShapeUniqueColumns, type SimpleJoinItemNonSubQueryArgs, type SingleSql, type SingleSqlItem, SmallIntColumn, SmallSerialColumn, type SortDir, type Sql, type SqlCommonOptions, type SqlFn, SqlRefExpression, type StaticSQLArgs, StringColumn$1 as StringColumn, type StringData, type SubQueryForSql, TableData, type TableDataFn, type TableDataInput, type TableDataItem, type TableDataItemsUniqueColumnTuples, type TableDataItemsUniqueColumns, type TableDataItemsUniqueConstraints, type TableDataMethods, type TableHook, type TemplateLiteralArgs, TextBaseColumn, TextColumn, type TextColumnData, Then, TimeColumn, type TimeInterval, TimestampColumn, type TimestampHelpers, TimestampTZColumn, type Timestamps, type TopCTE, Transaction, type TransactionAfterCommitHook, type TransactionOptions, type TransactionState, TsQueryColumn, TsVectorColumn, UUIDColumn, UnhandledTypeError, type UnionItem, type UnionKind, type UnionSet, type UnionToIntersection, type UniqueConstraints, type UniqueQueryTypeOrExpression, type UniqueTableDataItem, UnknownColumn, Update, type UpdateArg, type UpdateCtxCollect, type UpdateData, type UpdateQueryDataItem, type UpdateQueryDataObject, type UpdateSelf, type UpdatedAtDataInjector, type UpsertData, type UpsertResult, type UpsertThis, VarCharColumn, VirtualColumn, Where, type WhereArg, type WhereArgs, type WhereInArg, type WhereInColumn, type WhereInItem, type WhereInValues, type WhereItem, type WhereJsonPathEqualsItem, type WhereNotArgs, type WhereOnItem, type WhereOnJoinItem, type WhereQueryBuilder, type WhereSearchItem, type WindowDeclaration, type WindowItem, type WithConfig, type WithConfigs, type WithDataItem, type WithDataItems, type WithItems, type WrapQueryArg, XMLColumn, _addToHookSelect, _addToHookSelectWithTable, _appendQuery, _applyRelationAliases, _checkIfAliased, _clone, _copyQueryAliasToQuery, _createDbSqlMethod, _getQueryAliasOrName, _getQueryAs, _getQueryFreeAlias, _getQueryOuterAliases, _initQueryBuilder, _join, _joinLateral, _joinLateralProcessArg, _joinReturningArgs, _orCreate, _prependWith, _queryAfterSaveCommit, _queryAll, _queryChangeCounter, _queryCreate, _queryCreateForEachFrom, _queryCreateMany, _queryCreateManyFrom, _queryCreateOneFrom, _queryDefaults, _queryDelete, _queryExec, _queryFindBy, _queryFindByOptional, _queryHookAfterCreate, _queryHookAfterCreateCommit, _queryHookAfterDelete, _queryHookAfterDeleteCommit, _queryHookAfterQuery, _queryHookAfterSave, _queryHookAfterUpdate, _queryHookAfterUpdateCommit, _queryHookBeforeCreate, _queryHookBeforeDelete, _queryHookBeforeQuery, _queryHookBeforeSave, _queryHookBeforeUpdate, _queryInsert, _queryInsertForEachFrom, _queryInsertMany, _queryInsertManyFrom, _queryInsertOneFrom, _queryJoinOn, _queryJoinOnJsonPathEquals, _queryJoinOrOn, _queryOr, _queryOrNot, _queryRows, _querySelect, _querySelectAll, _queryTake, _queryTakeOptional, _queryUpdate, _queryUpdateOrThrow, _queryUpsert, _queryWhere, _queryWhereExists, _queryWhereIn, _queryWhereNot, _queryWhereNotExists, _queryWhereNotOneOf, _queryWhereNotSql, _queryWhereOneOf, _queryWhereSql, _runAfterCommitHooks, _setQueryAlias, _setQueryAs, _setSubQueryAliases, _with, addCode, addColumnParserToQuery, addParserForRawExpression, addParserForSelectItem, addQueryOn, addTopCte, addTopCteSql, addValue, addWithToSql, anyShape, applyBatchTransforms, applyComputedColumns, applyMixins, applyTransforms, arrayDataToCode, arrayMethodNames, assignDbDataToColumn, backtickQuote, callWithThis, checkIfASimpleQuery, cloneQueryBaseUnscoped, codeToString, colors, columnCheckToCode, columnCode, columnDefaultArgumentToCode, columnErrorMessagesToCode, columnExcludesToCode, columnForeignKeysToCode, columnIndexesToCode, columnMethodsToCode, columnsShapeToCode, commitSql, composeCteSingleSql, constraintInnerToCode, constraintToCode, consumeColumnName, countSelect, createCtx, createDbWithAdapter, createSelect, cteToSql, cteToSqlGiveAs, ctesToSql, dateDataToCode, dateMethodNames, deepCompare, defaultSchemaConfig, emptyArray, emptyObject, escapeForLog, escapeForMigration, escapeString, excludeInnerToCode, excludeToCode, exhaustive, extendQuery, filterResult, finalizeNestedHookSelect, foreignKeyArgumentToCode, getCallerFilePath, getClonedQueryData, getColumnBaseType, getColumnTypes, getDefaultLanguage, getDefaultNowFn, getFreeAlias, getFreeSetAlias, getFromSelectColumns, getFullColumnTable, getImportPath, getPrimaryKeys, getQueryAs, getQuerySchema, getSearchLang, getSearchText, getShapeFromSelect, getSqlText, getStackTrace, getThen, getTopCteSize, handleManyData, handleOneData, handleResult, havingToSql, identityToCode, indexInnerToCode, indexToCode, insert, isDefaultTimeStamp, isExpression, isInUserTransaction, isIterable, isObjectEmpty, isQuery, isQueryReturnsAll, isRawSQL, isRelationQuery, isTemplateLiteralArgs, joinSubQuery, joinTruthy, logColors, logParamToLogObject, makeColumnNullable, makeColumnTypes, makeColumnsByType, makeFnExpression, makeInsertSql, makeReturningSql, makeRowToJson, makeSql, moveMutativeQueryToCte, newDelayedRelationSelect, noop, numberDataToCode, numberMethodNames, objectHasValues, omit, orderByToSql, parseRecord, parseTableData, parseTableDataInput, pathToLog, performQuery, pick, pluralize, postgisTypmodToSql, prepareOpArg, prepareSubQueryForSql, primaryKeyInnerToCode, processComputedBatches, processComputedResult, processJoinItem, processSelectArg, pushColumnData, pushHavingSql, pushJoinSql, pushOrNewArray, pushOrNewArrayToObjectImmutable, pushOrderBySql, pushQueryArrayImmutable, pushQueryOn, pushQueryOnForOuter, pushQueryOrOn, pushQueryValueImmutable, pushTableDataCode, pushUnionSql, pushWhereStatementSql, pushWhereToSql, queryColumnNameToKey, queryFrom, queryFromSql, queryMethodByReturnType, queryTypeWithLimitOne, queryWrap, quoteFromWithSchema, quoteObjectKey, quoteSchemaAndTable, quoteTableWithSchema, raw, rawSqlToCode, referencesArgsToCode, requirePrimaryKeys, requireQueryAs, requireTableOrStringFrom, resetDefaultNowFn, resolveSubQueryCallback, returnArg, rollbackSql, saveAliasedShape, searchSourcesToSql, selectAllSql, selectToSql, selectToSqlList, setColumnData, setColumnDefaultParse, setColumnEncode, setColumnParse, setColumnParseNull, setConnectRetryConfig, setCurrentColumnName, setDataValue, setDb, setDefaultLanguage, setDefaultNowFn, setDelayedRelation, setFreeAlias, setFreeTopCteAs, setMoveMutativeQueryToCte, setObjectValueImmutable, setParserForSelectedString, setPrepareSubQueryForSql, setQueryObjectValueImmutable, setQueryOperators, setRawSqlPrepareSubQueryForSql, setSqlCtxSelectList, setTopCteSize, singleQuote, singleQuoteArray, snakeCaseKey, spreadObjectValues, sqlFn, sqlQueryArgsToExpression, stringDataToCode, stringMethodNames, tableDataMethods, templateLiteralSQLToCode, templateLiteralToSQL, testTransaction, throwIfJoinLateral, throwIfNoWhere, throwOnReadOnly, timestampHelpers, toArray, toCamelCase, toPascalCase, toSnakeCase, whereToSql, windowToSql, wrapAdapterFnWithConnectRetry };
|