pqb 0.27.6 → 0.27.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 +177 -88
- package/dist/index.js +373 -200
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +371 -202
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as orchid_core from 'orchid-core';
|
|
2
|
-
import { QueryResultRow, AdapterConfigBase, AdapterBase, QueryInput, Sql, RecordUnknown, RecordKeyTrue, EmptyObject, QueryBaseCommon, QueryColumns,
|
|
2
|
+
import { QueryResultRow, AdapterConfigBase, AdapterBase, QueryInput, Sql, RecordUnknown, RecordKeyTrue, EmptyObject, QueryBaseCommon, QueryColumns, QueryMetaBase, QueryReturnType, QueryThen, Expression, QueryColumn, MaybeArray, SelectableBase, TemplateLiteralArgs, PickOutputTypeAndOperators, PickQueryResult, OperatorToSQL, ColumnsShapeBase, ColumnsParsers, RecordString, PickQueryTable, getValueKey, PickQueryShape, PickQueryTableMetaResult, EmptyTuple, PickQueryMeta, PickQueryMetaResultReturnType, QueryColumnToNullable, QueryCatch, PickQueryMetaShape, PickQueryTableMetaResultShape, QueryColumnBooleanOrNull, SQLQueryArgs, ColumnSchemaConfig, DateColumnData, Code, TimeInterval, ColumnTypeSchemaArg, ColumnDataBase, ArrayMethodsData, StringTypeData, StaticSQLArgs, PickColumnBaseData, PrimaryKeyColumn, RawSQLBase, ColumnTypeBase, ForeignKeyTable, QueryColumnsInit, TimestampHelpers, ColumnNameOfTable, ConstraintOptions, BaseNumberData, ColumnWithDefault, ParseColumn, EncodeColumn, PickQueryMetaResult, ColumnShapeOutput, DefaultSelectColumns, CoreQueryScopes, DbBase, TransactionState, PickQueryMetaResultWindows, CoreBaseOperators, IsQuery, PickQueryMetaShapeResultReturnType, MergeObjects, RawSQLValues, ExpressionTypeMethod, DynamicSQLArg, QueryInternalBase, PickQueryReturnType, PickType, PickOutputType, Spread, ColumnDataCheckBase, PickQueryTableMetaShape } from 'orchid-core';
|
|
3
3
|
import { PoolConfig, Pool, PoolClient } from 'pg';
|
|
4
4
|
import { inspect } from 'node:util';
|
|
5
5
|
import { AsyncLocalStorage } from 'node:async_hooks';
|
|
@@ -37,7 +37,7 @@ declare class Adapter implements AdapterBase {
|
|
|
37
37
|
connect(): Promise<PoolClient>;
|
|
38
38
|
query<T extends QueryResultRow = QueryResultRow>(query: QueryInput, types?: TypeParsers): Promise<QueryResult<T>>;
|
|
39
39
|
arrays<R extends any[] = any[]>(query: QueryInput, types?: TypeParsers): Promise<QueryArraysResult<R>>;
|
|
40
|
-
transaction<Result>(begin: Sql, cb: (adapter: TransactionAdapter) => Promise<Result
|
|
40
|
+
transaction<Result>(begin: Sql, cb: (adapter: TransactionAdapter) => Promise<Result>, end?: Sql): Promise<Result>;
|
|
41
41
|
close(): Promise<void>;
|
|
42
42
|
}
|
|
43
43
|
declare class TransactionAdapter implements Adapter {
|
|
@@ -2130,7 +2130,7 @@ declare abstract class DateBaseColumn<Schema extends ColumnSchemaConfig> extends
|
|
|
2130
2130
|
}
|
|
2131
2131
|
declare class DateColumn<Schema extends ColumnSchemaConfig> extends DateBaseColumn<Schema> {
|
|
2132
2132
|
dataType: "date";
|
|
2133
|
-
toCode(t: string): Code;
|
|
2133
|
+
toCode(t: string, m?: boolean): Code;
|
|
2134
2134
|
}
|
|
2135
2135
|
declare abstract class DateTimeBaseClass<Schema extends ColumnSchemaConfig> extends DateBaseColumn<Schema> {
|
|
2136
2136
|
data: DateColumnData & {
|
|
@@ -2145,12 +2145,12 @@ declare abstract class DateTimeTzBaseClass<Schema extends ColumnSchemaConfig> ex
|
|
|
2145
2145
|
}
|
|
2146
2146
|
declare class TimestampColumn<Schema extends ColumnSchemaConfig> extends DateTimeBaseClass<Schema> {
|
|
2147
2147
|
dataType: "timestamp";
|
|
2148
|
-
toCode(t: string): Code;
|
|
2148
|
+
toCode(t: string, m?: boolean): Code;
|
|
2149
2149
|
}
|
|
2150
2150
|
declare class TimestampTZColumn<Schema extends ColumnSchemaConfig> extends DateTimeTzBaseClass<Schema> {
|
|
2151
2151
|
dataType: "timestamptz";
|
|
2152
2152
|
baseDataType: "timestamp";
|
|
2153
|
-
toCode(t: string): Code;
|
|
2153
|
+
toCode(t: string, m?: boolean): Code;
|
|
2154
2154
|
}
|
|
2155
2155
|
declare class TimeColumn<Schema extends ColumnSchemaConfig> extends ColumnType<Schema, string, ReturnType<Schema['stringSchema']>, OperatorsTime> {
|
|
2156
2156
|
data: DateColumnData & {
|
|
@@ -2159,7 +2159,7 @@ declare class TimeColumn<Schema extends ColumnSchemaConfig> extends ColumnType<S
|
|
|
2159
2159
|
dataType: "time";
|
|
2160
2160
|
operators: OperatorsTime;
|
|
2161
2161
|
constructor(schema: Schema, dateTimePrecision?: number);
|
|
2162
|
-
toCode(t: string): Code;
|
|
2162
|
+
toCode(t: string, m?: boolean): Code;
|
|
2163
2163
|
}
|
|
2164
2164
|
declare class IntervalColumn<Schema extends ColumnSchemaConfig> extends ColumnType<Schema, TimeInterval, ReturnType<Schema['timeInterval']>, OperatorsDate> {
|
|
2165
2165
|
data: ColumnData & {
|
|
@@ -2169,7 +2169,7 @@ declare class IntervalColumn<Schema extends ColumnSchemaConfig> extends ColumnTy
|
|
|
2169
2169
|
dataType: "interval";
|
|
2170
2170
|
operators: OperatorsDate;
|
|
2171
2171
|
constructor(schema: Schema, fields?: string, precision?: number);
|
|
2172
|
-
toCode(t: string): Code;
|
|
2172
|
+
toCode(t: string, m?: boolean): Code;
|
|
2173
2173
|
toSQL(): string;
|
|
2174
2174
|
}
|
|
2175
2175
|
|
|
@@ -2179,7 +2179,7 @@ declare class EnumColumn<Schema extends ColumnTypeSchemaArg, SchemaType extends
|
|
|
2179
2179
|
operators: OperatorsAny;
|
|
2180
2180
|
dataType: string;
|
|
2181
2181
|
constructor(schema: Schema, enumName: string, options: T, schemaType: SchemaType);
|
|
2182
|
-
toCode(t: string,
|
|
2182
|
+
toCode(t: string, m?: boolean): Code;
|
|
2183
2183
|
toSQL(): string;
|
|
2184
2184
|
}
|
|
2185
2185
|
|
|
@@ -2192,7 +2192,7 @@ interface ArrayColumnValue {
|
|
|
2192
2192
|
queryType: unknown;
|
|
2193
2193
|
querySchema: any;
|
|
2194
2194
|
toSQL(): string;
|
|
2195
|
-
toCode(t: string,
|
|
2195
|
+
toCode(t: string, m?: boolean): Code;
|
|
2196
2196
|
parseItem?(input: string): unknown;
|
|
2197
2197
|
data: ColumnDataBase;
|
|
2198
2198
|
}
|
|
@@ -2205,7 +2205,7 @@ declare class ArrayColumn<Schema extends ColumnTypeSchemaArg, Item extends Array
|
|
|
2205
2205
|
data: ArrayData<Item>;
|
|
2206
2206
|
constructor(schema: Schema, item: Item, inputType: InputType, outputType?: OutputType, queryType?: QueryType);
|
|
2207
2207
|
toSQL(): string;
|
|
2208
|
-
toCode(this: ArrayColumn<ColumnSchemaConfig, ArrayColumnValue, unknown, unknown, unknown>, t: string): Code;
|
|
2208
|
+
toCode(this: ArrayColumn<ColumnSchemaConfig, ArrayColumnValue, unknown, unknown, unknown>, t: string, m?: boolean): Code;
|
|
2209
2209
|
parseFn: ((input: unknown) => unknown[]) & {
|
|
2210
2210
|
hideFromCode: boolean;
|
|
2211
2211
|
};
|
|
@@ -2214,13 +2214,13 @@ declare class ArrayColumn<Schema extends ColumnTypeSchemaArg, Item extends Array
|
|
|
2214
2214
|
declare class JSONColumn<T, Schema extends ColumnTypeSchemaArg> extends ColumnType<Schema, T, Schema['type'], OperatorsJson> {
|
|
2215
2215
|
dataType: "jsonb";
|
|
2216
2216
|
operators: OperatorsJson;
|
|
2217
|
-
toCode(t: string): Code;
|
|
2217
|
+
toCode(t: string, m?: boolean): Code;
|
|
2218
2218
|
}
|
|
2219
2219
|
declare class JSONTextColumn<Schema extends ColumnSchemaConfig> extends ColumnType<Schema, string, ReturnType<Schema['stringSchema']>, OperatorsText> {
|
|
2220
2220
|
dataType: "json";
|
|
2221
2221
|
operators: OperatorsText;
|
|
2222
2222
|
constructor(schema: Schema);
|
|
2223
|
-
toCode(t: string): Code;
|
|
2223
|
+
toCode(t: string, m?: boolean): Code;
|
|
2224
2224
|
}
|
|
2225
2225
|
|
|
2226
2226
|
type TextColumnData = StringTypeData;
|
|
@@ -2238,15 +2238,15 @@ declare abstract class LimitedTextBaseColumn<Schema extends ColumnSchemaConfig>
|
|
|
2238
2238
|
}
|
|
2239
2239
|
declare class VarCharColumn<Schema extends ColumnSchemaConfig> extends LimitedTextBaseColumn<Schema> {
|
|
2240
2240
|
dataType: "varchar";
|
|
2241
|
-
toCode(t: string): Code;
|
|
2241
|
+
toCode(t: string, m?: boolean): Code;
|
|
2242
2242
|
}
|
|
2243
2243
|
declare class StringColumn$1<Schema extends ColumnSchemaConfig> extends VarCharColumn<Schema> {
|
|
2244
2244
|
constructor(schema: Schema, limit?: number);
|
|
2245
|
-
toCode(t: string): Code;
|
|
2245
|
+
toCode(t: string, m?: boolean): Code;
|
|
2246
2246
|
}
|
|
2247
2247
|
declare class CharColumn<Schema extends ColumnSchemaConfig> extends LimitedTextBaseColumn<Schema> {
|
|
2248
2248
|
dataType: "char";
|
|
2249
|
-
toCode(t: string): Code;
|
|
2249
|
+
toCode(t: string, m?: boolean): Code;
|
|
2250
2250
|
}
|
|
2251
2251
|
declare class TextColumn<Schema extends ColumnSchemaConfig> extends TextBaseColumn<Schema> {
|
|
2252
2252
|
dataType: "text";
|
|
@@ -2255,60 +2255,60 @@ declare class TextColumn<Schema extends ColumnSchemaConfig> extends TextBaseColu
|
|
|
2255
2255
|
maxArg?: number;
|
|
2256
2256
|
};
|
|
2257
2257
|
constructor(schema: Schema, min?: number, max?: number);
|
|
2258
|
-
toCode(t: string): Code;
|
|
2258
|
+
toCode(t: string, m?: boolean): Code;
|
|
2259
2259
|
}
|
|
2260
2260
|
declare class ByteaColumn<Schema extends ColumnSchemaConfig> extends ColumnType<Schema, Buffer, ReturnType<Schema['buffer']>, OperatorsText> {
|
|
2261
2261
|
dataType: "bytea";
|
|
2262
2262
|
operators: OperatorsText;
|
|
2263
2263
|
constructor(schema: Schema);
|
|
2264
|
-
toCode(t: string): Code;
|
|
2264
|
+
toCode(t: string, m?: boolean): Code;
|
|
2265
2265
|
}
|
|
2266
2266
|
declare class PointColumn<Schema extends ColumnSchemaConfig> extends ColumnType<Schema, string, ReturnType<Schema['stringSchema']>, OperatorsText> {
|
|
2267
2267
|
dataType: "point";
|
|
2268
2268
|
operators: OperatorsText;
|
|
2269
2269
|
constructor(schema: Schema);
|
|
2270
|
-
toCode(t: string): Code;
|
|
2270
|
+
toCode(t: string, m?: boolean): Code;
|
|
2271
2271
|
}
|
|
2272
2272
|
declare class LineColumn<Schema extends ColumnSchemaConfig> extends ColumnType<Schema, string, ReturnType<Schema['stringSchema']>, OperatorsText> {
|
|
2273
2273
|
dataType: "line";
|
|
2274
2274
|
operators: OperatorsText;
|
|
2275
2275
|
constructor(schema: Schema);
|
|
2276
|
-
toCode(t: string): Code;
|
|
2276
|
+
toCode(t: string, m?: boolean): Code;
|
|
2277
2277
|
}
|
|
2278
2278
|
declare class LsegColumn<Schema extends ColumnSchemaConfig> extends ColumnType<Schema, string, ReturnType<Schema['stringSchema']>, OperatorsText> {
|
|
2279
2279
|
dataType: "lseg";
|
|
2280
2280
|
operators: OperatorsText;
|
|
2281
2281
|
constructor(schema: Schema);
|
|
2282
|
-
toCode(t: string): Code;
|
|
2282
|
+
toCode(t: string, m?: boolean): Code;
|
|
2283
2283
|
}
|
|
2284
2284
|
declare class BoxColumn<Schema extends ColumnSchemaConfig> extends ColumnType<Schema, string, ReturnType<Schema['stringSchema']>, OperatorsText> {
|
|
2285
2285
|
dataType: "box";
|
|
2286
2286
|
operators: OperatorsText;
|
|
2287
2287
|
constructor(schema: Schema);
|
|
2288
|
-
toCode(t: string): Code;
|
|
2288
|
+
toCode(t: string, m?: boolean): Code;
|
|
2289
2289
|
}
|
|
2290
2290
|
declare class PathColumn<Schema extends ColumnSchemaConfig> extends ColumnType<Schema, string, ReturnType<Schema['stringSchema']>, OperatorsText> {
|
|
2291
2291
|
dataType: "path";
|
|
2292
2292
|
operators: OperatorsText;
|
|
2293
2293
|
constructor(schema: Schema);
|
|
2294
|
-
toCode(t: string): Code;
|
|
2294
|
+
toCode(t: string, m?: boolean): Code;
|
|
2295
2295
|
}
|
|
2296
2296
|
declare class PolygonColumn<Schema extends ColumnSchemaConfig> extends ColumnType<Schema, string, ReturnType<Schema['stringSchema']>, OperatorsText> {
|
|
2297
2297
|
dataType: "polygon";
|
|
2298
2298
|
operators: OperatorsText;
|
|
2299
2299
|
constructor(schema: Schema);
|
|
2300
|
-
toCode(t: string): Code;
|
|
2300
|
+
toCode(t: string, m?: boolean): Code;
|
|
2301
2301
|
}
|
|
2302
2302
|
declare class CircleColumn<Schema extends ColumnSchemaConfig> extends ColumnType<Schema, string, ReturnType<Schema['stringSchema']>, OperatorsText> {
|
|
2303
2303
|
dataType: "circle";
|
|
2304
2304
|
operators: OperatorsText;
|
|
2305
2305
|
constructor(schema: Schema);
|
|
2306
|
-
toCode(t: string): Code;
|
|
2306
|
+
toCode(t: string, m?: boolean): Code;
|
|
2307
2307
|
}
|
|
2308
2308
|
declare class MoneyColumn<Schema extends ColumnSchemaConfig> extends NumberBaseColumn<Schema, ReturnType<Schema['stringSchema']>> {
|
|
2309
2309
|
dataType: "money";
|
|
2310
2310
|
constructor(schema: Schema);
|
|
2311
|
-
toCode(t: string): Code;
|
|
2311
|
+
toCode(t: string, m?: boolean): Code;
|
|
2312
2312
|
parseFn: ((input: unknown) => number) & {
|
|
2313
2313
|
hideFromCode: boolean;
|
|
2314
2314
|
};
|
|
@@ -2317,25 +2317,25 @@ declare class CidrColumn<Schema extends ColumnSchemaConfig> extends ColumnType<S
|
|
|
2317
2317
|
dataType: "cidr";
|
|
2318
2318
|
operators: OperatorsText;
|
|
2319
2319
|
constructor(schema: Schema);
|
|
2320
|
-
toCode(t: string): Code;
|
|
2320
|
+
toCode(t: string, m?: boolean): Code;
|
|
2321
2321
|
}
|
|
2322
2322
|
declare class InetColumn<Schema extends ColumnSchemaConfig> extends ColumnType<Schema, string, ReturnType<Schema['stringSchema']>, OperatorsText> {
|
|
2323
2323
|
dataType: "inet";
|
|
2324
2324
|
operators: OperatorsText;
|
|
2325
2325
|
constructor(schema: Schema);
|
|
2326
|
-
toCode(t: string): Code;
|
|
2326
|
+
toCode(t: string, m?: boolean): Code;
|
|
2327
2327
|
}
|
|
2328
2328
|
declare class MacAddrColumn<Schema extends ColumnSchemaConfig> extends ColumnType<Schema, string, ReturnType<Schema['stringSchema']>, OperatorsText> {
|
|
2329
2329
|
dataType: "macaddr";
|
|
2330
2330
|
operators: OperatorsText;
|
|
2331
2331
|
constructor(schema: Schema);
|
|
2332
|
-
toCode(t: string): Code;
|
|
2332
|
+
toCode(t: string, m?: boolean): Code;
|
|
2333
2333
|
}
|
|
2334
2334
|
declare class MacAddr8Column<Schema extends ColumnSchemaConfig> extends ColumnType<Schema, string, ReturnType<Schema['stringSchema']>, OperatorsText> {
|
|
2335
2335
|
dataType: "macaddr8";
|
|
2336
2336
|
operators: OperatorsText;
|
|
2337
2337
|
constructor(schema: Schema);
|
|
2338
|
-
toCode(t: string): Code;
|
|
2338
|
+
toCode(t: string, m?: boolean): Code;
|
|
2339
2339
|
}
|
|
2340
2340
|
declare class BitColumn<Schema extends ColumnSchemaConfig> extends ColumnType<Schema, string, ReturnType<Schema['bit']>, OperatorsText> {
|
|
2341
2341
|
dataType: "bit";
|
|
@@ -2344,17 +2344,17 @@ declare class BitColumn<Schema extends ColumnSchemaConfig> extends ColumnType<Sc
|
|
|
2344
2344
|
length: number;
|
|
2345
2345
|
};
|
|
2346
2346
|
constructor(schema: Schema, length: number);
|
|
2347
|
-
toCode(t: string): Code;
|
|
2347
|
+
toCode(t: string, m?: boolean): Code;
|
|
2348
2348
|
toSQL(): string;
|
|
2349
2349
|
}
|
|
2350
2350
|
declare class BitVaryingColumn<Schema extends ColumnSchemaConfig> extends ColumnType<Schema, string, ReturnType<Schema['bit']>, OperatorsText> {
|
|
2351
|
-
dataType: "
|
|
2351
|
+
dataType: "varbit";
|
|
2352
2352
|
operators: OperatorsText;
|
|
2353
2353
|
data: ColumnData & {
|
|
2354
2354
|
length?: number;
|
|
2355
2355
|
};
|
|
2356
2356
|
constructor(schema: Schema, length?: number);
|
|
2357
|
-
toCode(t: string): Code;
|
|
2357
|
+
toCode(t: string, m?: boolean): Code;
|
|
2358
2358
|
toSQL(): string;
|
|
2359
2359
|
}
|
|
2360
2360
|
type TsVectorGeneratedColumns = string[] | Record<string, SearchWeight>;
|
|
@@ -2363,7 +2363,7 @@ declare class TsVectorColumn<Schema extends ColumnSchemaConfig> extends ColumnTy
|
|
|
2363
2363
|
dataType: "tsvector";
|
|
2364
2364
|
operators: OperatorsText;
|
|
2365
2365
|
constructor(schema: Schema, defaultLanguage?: string);
|
|
2366
|
-
toCode(t: string): Code;
|
|
2366
|
+
toCode(t: string, m?: boolean): Code;
|
|
2367
2367
|
/**
|
|
2368
2368
|
* For `tsvector` column type, it can also accept language (optional) and columns:
|
|
2369
2369
|
*
|
|
@@ -2394,7 +2394,7 @@ declare class TsQueryColumn<Schema extends ColumnSchemaConfig> extends ColumnTyp
|
|
|
2394
2394
|
dataType: "tsquery";
|
|
2395
2395
|
operators: OperatorsText;
|
|
2396
2396
|
constructor(schema: Schema);
|
|
2397
|
-
toCode(t: string): Code;
|
|
2397
|
+
toCode(t: string, m?: boolean): Code;
|
|
2398
2398
|
}
|
|
2399
2399
|
declare class UUIDColumn<Schema extends ColumnSchemaConfig> extends ColumnType<Schema, string, ReturnType<Schema['uuid']>, OperatorsText> {
|
|
2400
2400
|
dataType: "uuid";
|
|
@@ -2406,13 +2406,13 @@ declare class UUIDColumn<Schema extends ColumnSchemaConfig> extends ColumnType<S
|
|
|
2406
2406
|
default: RawSQLBase;
|
|
2407
2407
|
};
|
|
2408
2408
|
};
|
|
2409
|
-
toCode(t: string): Code;
|
|
2409
|
+
toCode(t: string, m?: boolean): Code;
|
|
2410
2410
|
}
|
|
2411
2411
|
declare class XMLColumn<Schema extends ColumnSchemaConfig> extends ColumnType<Schema, string, ReturnType<Schema['stringSchema']>, OperatorsText> {
|
|
2412
2412
|
dataType: "xml";
|
|
2413
2413
|
operators: OperatorsText;
|
|
2414
2414
|
constructor(schema: Schema);
|
|
2415
|
-
toCode(t: string): Code;
|
|
2415
|
+
toCode(t: string, m?: boolean): Code;
|
|
2416
2416
|
}
|
|
2417
2417
|
declare class CitextColumn<Schema extends ColumnSchemaConfig> extends TextBaseColumn<Schema> {
|
|
2418
2418
|
dataType: "citext";
|
|
@@ -2421,14 +2421,14 @@ declare class CitextColumn<Schema extends ColumnSchemaConfig> extends TextBaseCo
|
|
|
2421
2421
|
maxArg?: number;
|
|
2422
2422
|
};
|
|
2423
2423
|
constructor(schema: Schema, min?: number, max?: number);
|
|
2424
|
-
toCode(t: string): Code;
|
|
2424
|
+
toCode(t: string, m?: boolean): Code;
|
|
2425
2425
|
}
|
|
2426
2426
|
|
|
2427
2427
|
declare class BooleanColumn<Schema extends ColumnSchemaConfig> extends ColumnType<Schema, boolean, ReturnType<Schema['boolean']>, OperatorsBoolean> {
|
|
2428
|
-
dataType: "
|
|
2428
|
+
dataType: "bool";
|
|
2429
2429
|
operators: OperatorsBoolean;
|
|
2430
2430
|
constructor(schema: Schema);
|
|
2431
|
-
toCode(t: string): Code;
|
|
2431
|
+
toCode(t: string, m?: boolean): Code;
|
|
2432
2432
|
parseItem: (input: string) => boolean;
|
|
2433
2433
|
}
|
|
2434
2434
|
|
|
@@ -2436,11 +2436,11 @@ declare class CustomTypeColumn<Schema extends ColumnSchemaConfig> extends Column
|
|
|
2436
2436
|
dataType: string;
|
|
2437
2437
|
operators: OperatorsAny;
|
|
2438
2438
|
constructor(schema: Schema, dataType: string);
|
|
2439
|
-
toCode(t: string): Code;
|
|
2439
|
+
toCode(t: string, m?: boolean): Code;
|
|
2440
2440
|
as<T extends Pick<ColumnTypeBase, 'inputType' | 'outputType' | 'data'>, C extends Omit<ColumnTypeBase, 'inputType' | 'outputType'> & Pick<T, 'inputType' | 'outputType'>>(this: T, column: C): C;
|
|
2441
2441
|
}
|
|
2442
2442
|
declare class DomainColumn<Schema extends ColumnSchemaConfig> extends CustomTypeColumn<Schema> {
|
|
2443
|
-
toCode(t: string): Code;
|
|
2443
|
+
toCode(t: string, m?: boolean): Code;
|
|
2444
2444
|
}
|
|
2445
2445
|
|
|
2446
2446
|
interface TableData {
|
|
@@ -2477,8 +2477,8 @@ declare namespace TableData {
|
|
|
2477
2477
|
always?: boolean;
|
|
2478
2478
|
}
|
|
2479
2479
|
interface SequenceBaseOptions {
|
|
2480
|
-
|
|
2481
|
-
|
|
2480
|
+
increment?: number;
|
|
2481
|
+
start?: number;
|
|
2482
2482
|
min?: number;
|
|
2483
2483
|
max?: number;
|
|
2484
2484
|
cache?: number;
|
|
@@ -2575,7 +2575,7 @@ interface DefaultColumnTypes<SchemaConfig extends ColumnSchemaConfig> extends Ti
|
|
|
2575
2575
|
name?: string;
|
|
2576
2576
|
dropMode?: DropMode;
|
|
2577
2577
|
}): EmptyObject;
|
|
2578
|
-
check(check: RawSQLBase): EmptyObject;
|
|
2578
|
+
check(check: RawSQLBase, options?: ConstraintOptions): EmptyObject;
|
|
2579
2579
|
}
|
|
2580
2580
|
declare const makeColumnTypes: <SchemaConfig extends ColumnSchemaConfig<orchid_core.ColumnTypeBase<orchid_core.ColumnTypeSchemaArg, unknown, any, orchid_core.CoreBaseOperators, unknown, unknown, any, unknown, any, orchid_core.ColumnDataBase>>>(schema: SchemaConfig) => DefaultColumnTypes<SchemaConfig>;
|
|
2581
2581
|
|
|
@@ -2605,60 +2605,65 @@ interface DecimalColumnData extends ColumnData {
|
|
|
2605
2605
|
declare class DecimalColumn<Schema extends ColumnSchemaConfig> extends ColumnType<Schema, string, ReturnType<Schema['stringSchema']>, OperatorsNumber> {
|
|
2606
2606
|
data: DecimalColumnData;
|
|
2607
2607
|
operators: OperatorsNumber;
|
|
2608
|
-
dataType: "
|
|
2608
|
+
dataType: "numeric";
|
|
2609
2609
|
constructor(schema: Schema, numericPrecision?: number, numericScale?: number);
|
|
2610
|
-
toCode(t: string): Code;
|
|
2610
|
+
toCode(t: string, m?: boolean): Code;
|
|
2611
2611
|
toSQL(): string;
|
|
2612
2612
|
}
|
|
2613
2613
|
type IdentityColumn<T extends PickColumnBaseData> = ColumnWithDefault<T, Expression>;
|
|
2614
2614
|
declare class SmallIntColumn<Schema extends ColumnSchemaConfig> extends IntegerBaseColumn<Schema> {
|
|
2615
|
-
dataType: "
|
|
2615
|
+
dataType: "int2";
|
|
2616
|
+
constructor(schema: Schema);
|
|
2616
2617
|
parseItem: typeof parseInt;
|
|
2617
|
-
toCode(t: string): Code;
|
|
2618
|
+
toCode(t: string, m?: boolean): Code;
|
|
2618
2619
|
identity<T extends ColumnType>(this: T, options?: TableData.Identity): IdentityColumn<T>;
|
|
2619
2620
|
}
|
|
2620
2621
|
declare class IntegerColumn<Schema extends ColumnSchemaConfig> extends IntegerBaseColumn<Schema> {
|
|
2621
|
-
dataType: "
|
|
2622
|
+
dataType: "int4";
|
|
2623
|
+
constructor(schema: Schema);
|
|
2622
2624
|
parseItem: typeof parseInt;
|
|
2623
|
-
toCode(t: string): Code;
|
|
2625
|
+
toCode(t: string, m?: boolean): Code;
|
|
2624
2626
|
identity<T extends ColumnType>(this: T, options?: TableData.Identity): IdentityColumn<T>;
|
|
2625
2627
|
}
|
|
2626
2628
|
declare class BigIntColumn<Schema extends ColumnSchemaConfig> extends NumberAsStringBaseColumn<Schema> {
|
|
2627
|
-
dataType: "
|
|
2628
|
-
|
|
2629
|
+
dataType: "int8";
|
|
2630
|
+
constructor(schema: Schema);
|
|
2631
|
+
toCode(t: string, m?: boolean): Code;
|
|
2629
2632
|
identity<T extends ColumnType>(this: T, options?: TableData.Identity): IdentityColumn<T>;
|
|
2630
2633
|
}
|
|
2631
2634
|
declare class RealColumn<Schema extends ColumnSchemaConfig> extends NumberBaseColumn<Schema, ReturnType<Schema['number']>> {
|
|
2632
|
-
dataType: "
|
|
2635
|
+
dataType: "float4";
|
|
2633
2636
|
parseItem: typeof parseFloat;
|
|
2634
2637
|
constructor(schema: Schema);
|
|
2635
|
-
toCode(t: string): Code;
|
|
2638
|
+
toCode(t: string, m?: boolean): Code;
|
|
2636
2639
|
}
|
|
2637
2640
|
declare class DoublePrecisionColumn<Schema extends ColumnSchemaConfig> extends NumberAsStringBaseColumn<Schema> {
|
|
2638
|
-
dataType: "
|
|
2639
|
-
|
|
2641
|
+
dataType: "float8";
|
|
2642
|
+
constructor(schema: Schema);
|
|
2643
|
+
toCode(t: string, m?: boolean): Code;
|
|
2640
2644
|
}
|
|
2641
2645
|
declare class SmallSerialColumn<Schema extends ColumnSchemaConfig> extends IntegerBaseColumn<Schema> {
|
|
2642
|
-
dataType: "
|
|
2646
|
+
dataType: "int2";
|
|
2643
2647
|
parseItem: typeof parseInt;
|
|
2644
2648
|
data: SerialColumnData;
|
|
2645
2649
|
constructor(schema: Schema);
|
|
2646
2650
|
toSQL(): string;
|
|
2647
|
-
toCode(t: string): Code;
|
|
2651
|
+
toCode(t: string, m?: boolean): Code;
|
|
2648
2652
|
}
|
|
2649
2653
|
declare class SerialColumn<Schema extends ColumnSchemaConfig> extends IntegerBaseColumn<Schema> {
|
|
2650
|
-
dataType: "
|
|
2654
|
+
dataType: "int4";
|
|
2651
2655
|
parseItem: typeof parseInt;
|
|
2652
2656
|
data: SerialColumnData;
|
|
2653
2657
|
constructor(schema: Schema);
|
|
2654
2658
|
toSQL(): string;
|
|
2655
|
-
toCode(t: string): Code;
|
|
2659
|
+
toCode(t: string, m?: boolean): Code;
|
|
2656
2660
|
}
|
|
2657
2661
|
declare class BigSerialColumn<Schema extends ColumnSchemaConfig> extends NumberAsStringBaseColumn<Schema> {
|
|
2658
|
-
dataType: "
|
|
2662
|
+
dataType: "int8";
|
|
2659
2663
|
data: SerialColumnData;
|
|
2664
|
+
constructor(schema: Schema);
|
|
2660
2665
|
toSQL(): string;
|
|
2661
|
-
toCode(t: string): Code;
|
|
2666
|
+
toCode(t: string, m?: boolean): Code;
|
|
2662
2667
|
}
|
|
2663
2668
|
|
|
2664
2669
|
interface DefaultSchemaConfig extends ColumnSchemaConfig<ColumnType> {
|
|
@@ -2771,13 +2776,19 @@ declare class SoftDeleteMethods {
|
|
|
2771
2776
|
}
|
|
2772
2777
|
|
|
2773
2778
|
type NoPrimaryKeyOption = 'error' | 'warning' | 'ignore';
|
|
2779
|
+
interface DbSharedOptions extends QueryLogOptions {
|
|
2780
|
+
autoPreparedStatements?: boolean;
|
|
2781
|
+
noPrimaryKey?: NoPrimaryKeyOption;
|
|
2782
|
+
extensions?: (string | RecordString)[];
|
|
2783
|
+
domains?: {
|
|
2784
|
+
[K: string]: DbDomainArg<DefaultColumnTypes<DefaultSchemaConfig>>;
|
|
2785
|
+
};
|
|
2786
|
+
}
|
|
2774
2787
|
type DbOptions<SchemaConfig extends ColumnSchemaConfig, ColumnTypes> = ({
|
|
2775
2788
|
adapter: Adapter;
|
|
2776
|
-
} | Omit<AdapterOptions, 'log'>) &
|
|
2789
|
+
} | Omit<AdapterOptions, 'log'>) & DbSharedOptions & {
|
|
2777
2790
|
schemaConfig?: SchemaConfig;
|
|
2778
2791
|
columnTypes?: ColumnTypes | ((t: DefaultColumnTypes<SchemaConfig>) => ColumnTypes);
|
|
2779
|
-
autoPreparedStatements?: boolean;
|
|
2780
|
-
noPrimaryKey?: NoPrimaryKeyOption;
|
|
2781
2792
|
snakeCase?: boolean;
|
|
2782
2793
|
nowSQL?: string;
|
|
2783
2794
|
};
|
|
@@ -2795,6 +2806,7 @@ interface DbTableOptions<Table extends string | undefined, Shape extends QueryCo
|
|
|
2795
2806
|
* See {@link SoftDeleteMethods}
|
|
2796
2807
|
*/
|
|
2797
2808
|
softDelete?: SoftDeleteOption<Shape>;
|
|
2809
|
+
comment?: string;
|
|
2798
2810
|
}
|
|
2799
2811
|
/**
|
|
2800
2812
|
* See {@link ScopeMethods}
|
|
@@ -2830,7 +2842,8 @@ declare class Db<Table extends string | undefined = undefined, Shape extends Que
|
|
|
2830
2842
|
table: Table;
|
|
2831
2843
|
shape: ShapeWithComputed;
|
|
2832
2844
|
columnTypes: ColumnTypes;
|
|
2833
|
-
|
|
2845
|
+
tableData: TableData;
|
|
2846
|
+
constructor(adapter: Adapter, queryBuilder: Db, table: Table, shape: ShapeWithComputed, columnTypes: ColumnTypes, transactionStorage: AsyncLocalStorage<TransactionState>, options: DbTableOptions<Table, ShapeWithComputed>, tableData?: TableData);
|
|
2834
2847
|
[inspect.custom](): string;
|
|
2835
2848
|
/**
|
|
2836
2849
|
* Use `query` to perform raw SQL queries.
|
|
@@ -2899,7 +2912,7 @@ interface DbResult<ColumnTypes> extends Db<string, Record<string, never>, EmptyO
|
|
|
2899
2912
|
close: Adapter['close'];
|
|
2900
2913
|
}
|
|
2901
2914
|
/**
|
|
2902
|
-
*
|
|
2915
|
+
* If you'd like to use the query builder of OrchidORM as a standalone tool, install `pqb` package and use `createDb` to initialize it.
|
|
2903
2916
|
*
|
|
2904
2917
|
* As `Orchid ORM` focuses on ORM usage, docs examples mostly demonstrates how to work with ORM-defined tables,
|
|
2905
2918
|
* but everything that's not related to table relations should also work with `pqb` query builder on its own.
|
|
@@ -2975,6 +2988,7 @@ interface DbResult<ColumnTypes> extends Db<string, Record<string, never>, EmptyO
|
|
|
2975
2988
|
* ```
|
|
2976
2989
|
*/
|
|
2977
2990
|
declare const createDb: <SchemaConfig extends ColumnSchemaConfig<ColumnTypeBase<orchid_core.ColumnTypeSchemaArg, unknown, any, orchid_core.CoreBaseOperators, unknown, unknown, any, unknown, any, orchid_core.ColumnDataBase>> = DefaultSchemaConfig, ColumnTypes = DefaultColumnTypes<SchemaConfig>>({ log, logger, snakeCase, nowSQL, schemaConfig, columnTypes: ctOrFn, ...options }: DbOptions<SchemaConfig, ColumnTypes>) => DbResult<ColumnTypes>;
|
|
2991
|
+
declare const _initQueryBuilder: (adapter: Adapter, columnTypes: unknown, transactionStorage: AsyncLocalStorage<TransactionState>, commonOptions: DbTableOptions<undefined, QueryColumns>, options: DbSharedOptions) => Db;
|
|
2978
2992
|
|
|
2979
2993
|
type ToSQLCtx = {
|
|
2980
2994
|
queryBuilder: Db;
|
|
@@ -3001,7 +3015,7 @@ type SelectableOrExpression<T extends PickQueryMeta = PickQueryMeta, C extends Q
|
|
|
3001
3015
|
type ExpressionOutput<T extends PickQueryMeta, Expr extends SelectableOrExpression<T>> = Expr extends keyof T['meta']['selectable'] ? T['meta']['selectable'][Expr]['column'] : Expr extends Expression ? Expr['_type'] : never;
|
|
3002
3016
|
declare const getClonedQueryData: (query: QueryData) => QueryData;
|
|
3003
3017
|
declare const getQueryAs: (q: {
|
|
3004
|
-
table?: string
|
|
3018
|
+
table?: string;
|
|
3005
3019
|
q: {
|
|
3006
3020
|
as?: string;
|
|
3007
3021
|
};
|
|
@@ -6519,6 +6533,18 @@ declare function queryWrap<T extends PickQueryTableMetaResult, Q extends WrapQue
|
|
|
6519
6533
|
*/
|
|
6520
6534
|
declare function cloneQueryBaseUnscoped(query: Query): Query;
|
|
6521
6535
|
|
|
6536
|
+
interface DbExtension {
|
|
6537
|
+
name: string;
|
|
6538
|
+
version?: string;
|
|
6539
|
+
}
|
|
6540
|
+
type DbDomainArg<ColumnTypes> = (columnTypes: ColumnTypes) => ColumnType;
|
|
6541
|
+
type DbDomainArgRecord = {
|
|
6542
|
+
[K: string]: DbDomainArg<any>;
|
|
6543
|
+
};
|
|
6544
|
+
interface QueryInternal extends QueryInternalBase, TableData {
|
|
6545
|
+
extensions?: DbExtension[];
|
|
6546
|
+
domains?: DbDomainArgRecord;
|
|
6547
|
+
}
|
|
6522
6548
|
type SelectableFromShape<Shape extends QueryColumns, Table extends string | undefined> = {
|
|
6523
6549
|
[K in keyof Shape]: {
|
|
6524
6550
|
as: K;
|
|
@@ -6753,6 +6779,7 @@ type ForeignKeyMatch = 'FULL' | 'PARTIAL' | 'SIMPLE';
|
|
|
6753
6779
|
type ForeignKeyAction = 'NO ACTION' | 'RESTRICT' | 'CASCADE' | 'SET NULL' | 'SET DEFAULT';
|
|
6754
6780
|
type ForeignKey<Table extends string, Columns extends string[]> = ({
|
|
6755
6781
|
fn(): new () => {
|
|
6782
|
+
schema?: string;
|
|
6756
6783
|
table: Table;
|
|
6757
6784
|
columns: ColumnsShapeBase;
|
|
6758
6785
|
};
|
|
@@ -6790,7 +6817,7 @@ interface IndexOptions {
|
|
|
6790
6817
|
tablespace?: string;
|
|
6791
6818
|
where?: string;
|
|
6792
6819
|
dropMode?: 'CASCADE' | 'RESTRICT';
|
|
6793
|
-
language?: string
|
|
6820
|
+
language?: string;
|
|
6794
6821
|
languageColumn?: string;
|
|
6795
6822
|
tsVector?: boolean;
|
|
6796
6823
|
}
|
|
@@ -6804,6 +6831,8 @@ interface ColumnFromDbParams {
|
|
|
6804
6831
|
numericPrecision?: number;
|
|
6805
6832
|
numericScale?: number;
|
|
6806
6833
|
dateTimePrecision?: number;
|
|
6834
|
+
compression?: string;
|
|
6835
|
+
collate?: string;
|
|
6807
6836
|
}
|
|
6808
6837
|
interface PickColumnData {
|
|
6809
6838
|
data: ColumnData;
|
|
@@ -6828,8 +6857,10 @@ declare abstract class ColumnType<Schema extends ColumnTypeSchemaArg = ColumnTyp
|
|
|
6828
6857
|
* // primary key can be used by `find` later:
|
|
6829
6858
|
* db.table.find('97ba9e78-7510-415a-9c03-23d440aec443');
|
|
6830
6859
|
* ```
|
|
6860
|
+
*
|
|
6861
|
+
* @param options - to specify a constraint name
|
|
6831
6862
|
*/
|
|
6832
|
-
primaryKey<T extends PickColumnBaseData>(this: T): PrimaryKeyColumn<T>;
|
|
6863
|
+
primaryKey<T extends PickColumnBaseData>(this: T, options?: ConstraintOptions): PrimaryKeyColumn<T>;
|
|
6833
6864
|
/**
|
|
6834
6865
|
* Set the foreignKey for the column.
|
|
6835
6866
|
*
|
|
@@ -6920,9 +6951,9 @@ declare abstract class ColumnType<Schema extends ColumnTypeSchemaArg = ColumnTyp
|
|
|
6920
6951
|
toSQL(): string;
|
|
6921
6952
|
index<T extends PickColumnData>(this: T, options?: SingleColumnIndexOptionsForColumn): T;
|
|
6922
6953
|
/**
|
|
6923
|
-
* `searchIndex` is designed for full text search.
|
|
6954
|
+
* `searchIndex` is designed for [full text search](/guide/text-search).
|
|
6924
6955
|
*
|
|
6925
|
-
* It can accept the same options as a regular `index`, but it is `USING GIN` by default, and it is concatenating columns into a `tsvector
|
|
6956
|
+
* It can accept the same options as a regular `index`, but it is `USING GIN` by default, and it is concatenating columns into a `tsvector` database type.
|
|
6926
6957
|
*
|
|
6927
6958
|
* ```ts
|
|
6928
6959
|
* import { change } from '../dbScript';
|
|
@@ -6930,8 +6961,8 @@ declare abstract class ColumnType<Schema extends ColumnTypeSchemaArg = ColumnTyp
|
|
|
6930
6961
|
* change(async (db) => {
|
|
6931
6962
|
* await db.createTable('table', (t) => ({
|
|
6932
6963
|
* id: t.identity().primaryKey(),
|
|
6933
|
-
* title: t.
|
|
6934
|
-
* body: t.
|
|
6964
|
+
* title: t.text(),
|
|
6965
|
+
* body: t.text(),
|
|
6935
6966
|
* ...t.searchIndex(['title', 'body']),
|
|
6936
6967
|
* }));
|
|
6937
6968
|
* });
|
|
@@ -6940,10 +6971,48 @@ declare abstract class ColumnType<Schema extends ColumnTypeSchemaArg = ColumnTyp
|
|
|
6940
6971
|
* Produces the following index ('english' is a default language, see [full text search](/guide/text-search.html#language) for changing it):
|
|
6941
6972
|
*
|
|
6942
6973
|
* ```sql
|
|
6943
|
-
* CREATE INDEX "table_title_body_idx" ON "table" USING GIN (to_tsvector('english',
|
|
6974
|
+
* CREATE INDEX "table_title_body_idx" ON "table" USING GIN (to_tsvector('english', "title" || ' ' || "body"))
|
|
6975
|
+
* ```
|
|
6976
|
+
*
|
|
6977
|
+
* You can set different search weights (`A` to `D`) on different columns inside the index:
|
|
6978
|
+
*
|
|
6979
|
+
* ```ts
|
|
6980
|
+
* import { change } from '../dbScript';
|
|
6981
|
+
*
|
|
6982
|
+
* change(async (db) => {
|
|
6983
|
+
* await db.createTable('table', (t) => ({
|
|
6984
|
+
* id: t.identity().primaryKey(),
|
|
6985
|
+
* title: t.text(),
|
|
6986
|
+
* body: t.text(),
|
|
6987
|
+
* ...t.searchIndex([
|
|
6988
|
+
* { column: 'title', weight: 'A' },
|
|
6989
|
+
* { column: 'body', weight: 'B' },
|
|
6990
|
+
* ]),
|
|
6991
|
+
* }));
|
|
6992
|
+
* });
|
|
6993
|
+
* ```
|
|
6994
|
+
*
|
|
6995
|
+
* When the table has localized columns,
|
|
6996
|
+
* you can define different indexes for different languages by setting the `language` parameter:
|
|
6997
|
+
*
|
|
6998
|
+
* ```ts
|
|
6999
|
+
* import { change } from '../dbScript';
|
|
7000
|
+
*
|
|
7001
|
+
* change(async (db) => {
|
|
7002
|
+
* await db.createTable('table', (t) => ({
|
|
7003
|
+
* id: t.identity().primaryKey(),
|
|
7004
|
+
* titleEn: t.text(),
|
|
7005
|
+
* bodyEn: t.text(),
|
|
7006
|
+
* titleFr: t.text(),
|
|
7007
|
+
* bodyFr: t.text(),
|
|
7008
|
+
* ...t.searchIndex(['titleEn', 'bodyEn'], { language: 'english' }),
|
|
7009
|
+
* ...t.searchIndex(['titleFr', 'bodyFr'], { language: 'french' }),
|
|
7010
|
+
* }));
|
|
7011
|
+
* });
|
|
6944
7012
|
* ```
|
|
6945
7013
|
*
|
|
6946
|
-
*
|
|
7014
|
+
* Alternatively, different table records may correspond to a single language,
|
|
7015
|
+
* then you can define a search index that relies on a language column by using `languageColumn` parameter:
|
|
6947
7016
|
*
|
|
6948
7017
|
* ```ts
|
|
6949
7018
|
* import { change } from '../dbScript';
|
|
@@ -6951,8 +7020,25 @@ declare abstract class ColumnType<Schema extends ColumnTypeSchemaArg = ColumnTyp
|
|
|
6951
7020
|
* change(async (db) => {
|
|
6952
7021
|
* await db.createTable('table', (t) => ({
|
|
6953
7022
|
* id: t.identity().primaryKey(),
|
|
6954
|
-
*
|
|
6955
|
-
*
|
|
7023
|
+
* lang: t.type('regconfig'),
|
|
7024
|
+
* title: t.text(),
|
|
7025
|
+
* body: t.text(),
|
|
7026
|
+
* ...t.searchIndex(['title', 'body'], { languageColumn: 'lang' }),
|
|
7027
|
+
* }));
|
|
7028
|
+
* });
|
|
7029
|
+
* ```
|
|
7030
|
+
*
|
|
7031
|
+
* It can be more efficient to use a [generated](/guide/migration-column-methods.html#generated-column) column instead of indexing text column in the way described above,
|
|
7032
|
+
* and to set a `searchIndex` on it:
|
|
7033
|
+
*
|
|
7034
|
+
* ```ts
|
|
7035
|
+
* import { change } from '../dbScript';
|
|
7036
|
+
*
|
|
7037
|
+
* change(async (db) => {
|
|
7038
|
+
* await db.createTable('table', (t) => ({
|
|
7039
|
+
* id: t.identity().primaryKey(),
|
|
7040
|
+
* title: t.text(),
|
|
7041
|
+
* body: t.text(),
|
|
6956
7042
|
* generatedTsVector: t.tsvector().generated(['title', 'body']).searchIndex(),
|
|
6957
7043
|
* }));
|
|
6958
7044
|
* });
|
|
@@ -6966,7 +7052,7 @@ declare abstract class ColumnType<Schema extends ColumnTypeSchemaArg = ColumnTyp
|
|
|
6966
7052
|
*
|
|
6967
7053
|
* @param options - index options
|
|
6968
7054
|
*/
|
|
6969
|
-
searchIndex<T extends Pick<ColumnType, 'data' | 'dataType'>>(this: T, options?: Omit<
|
|
7055
|
+
searchIndex<T extends Pick<ColumnType, 'data' | 'dataType'>>(this: T, options?: Omit<IndexOptions, 'tsVector'>): T;
|
|
6970
7056
|
unique<T extends PickColumnData>(this: T, options?: Omit<SingleColumnIndexOptionsForColumn, 'unique'>): T;
|
|
6971
7057
|
comment<T extends PickColumnData>(this: T, comment: string): T;
|
|
6972
7058
|
compression<T extends PickColumnData>(this: T, compression: string): T;
|
|
@@ -7049,18 +7135,21 @@ declare class UnknownColumn<Schema extends ColumnSchemaConfig> extends VirtualCo
|
|
|
7049
7135
|
}
|
|
7050
7136
|
|
|
7051
7137
|
declare const isDefaultTimeStamp: (item: ColumnTypeBase) => boolean;
|
|
7052
|
-
declare const columnsShapeToCode: (shape: ColumnsShapeBase, tableData: TableData, t: string) => Code[];
|
|
7138
|
+
declare const columnsShapeToCode: (shape: ColumnsShapeBase, tableData: TableData, t: string, m?: boolean) => Code[];
|
|
7053
7139
|
declare const primaryKeyToCode: (primaryKey: TableData.PrimaryKey, t: string) => string;
|
|
7140
|
+
declare const primaryKeyInnerToCode: (primaryKey: TableData.PrimaryKey, t: string) => string;
|
|
7054
7141
|
declare const indexToCode: (index: TableData.Index, t: string) => Code[];
|
|
7055
|
-
declare const
|
|
7056
|
-
declare const
|
|
7057
|
-
declare const
|
|
7058
|
-
declare const
|
|
7059
|
-
declare const
|
|
7142
|
+
declare const indexInnerToCode: (index: TableData.Index, t: string) => Code[];
|
|
7143
|
+
declare const constraintToCode: (item: TableData.Constraint, t: string, m?: boolean) => Code[];
|
|
7144
|
+
declare const constraintInnerToCode: (item: TableData.Constraint, t: string, m?: boolean) => Code[];
|
|
7145
|
+
declare const constraintPropsToCode: (t: string, item: TableData.Constraint, m?: boolean) => Code[];
|
|
7146
|
+
declare const referencesArgsToCode: ({ columns, fnOrTable, foreignColumns, options, }: Exclude<TableData.Constraint['references'], undefined>, name?: string | false, m?: boolean) => Code[];
|
|
7147
|
+
declare const columnForeignKeysToCode: (foreignKeys: ForeignKey<string, string[]>[], migration: boolean | undefined) => Code[];
|
|
7148
|
+
declare const foreignKeyArgumentToCode: (foreignKey: ForeignKey<string, string[]>, migration: boolean | undefined) => Code[];
|
|
7060
7149
|
declare const columnIndexesToCode: (indexes: Exclude<ColumnData['indexes'], undefined>) => Code[];
|
|
7061
|
-
declare const columnCheckToCode: (t: string,
|
|
7150
|
+
declare const columnCheckToCode: (t: string, { sql, options }: ColumnDataCheckBase) => string;
|
|
7062
7151
|
declare const identityToCode: (identity: TableData.Identity, dataType?: string) => Code[];
|
|
7063
|
-
declare const columnCode: (type: ColumnType, t: string, code: Code, data?: ColumnData, skip?: {
|
|
7152
|
+
declare const columnCode: (type: ColumnType, t: string, code: Code, migration: boolean | undefined, data?: ColumnData, skip?: {
|
|
7064
7153
|
encodeFn: unknown;
|
|
7065
7154
|
}) => Code;
|
|
7066
7155
|
|
|
@@ -7258,4 +7347,4 @@ type CopyResult<T extends PickQueryMeta> = SetQueryKind<T, 'copy'>;
|
|
|
7258
7347
|
*/
|
|
7259
7348
|
declare function copyTableData<T extends PickQueryMetaShape>(query: T, arg: CopyArg<T>): CopyResult<T>;
|
|
7260
7349
|
|
|
7261
|
-
export { Adapter, AdapterConfig, AdapterOptions, AddQueryDefaults, AddQuerySelect, AddQueryWith, AfterHook, AggregateMethods, AggregateOptions, AliasOrTable, ArrayColumn, ArrayColumnValue, ArrayData, AsMethods, AsQueryArg, BaseOperators, BigIntColumn, BigSerialColumn, BitColumn, BitVaryingColumn, BooleanColumn, BooleanQueryColumn, BoxColumn, ByteaColumn, CharColumn, CidrColumn, CircleColumn, CitextColumn, Clear, ClearStatement, CloneSelfKeys, ColumnData, ColumnExpression, ColumnFromDbParams, ColumnInfoQueryData, ColumnOperators, ColumnRefExpression, ColumnType, ColumnsByType, ColumnsShape, ColumnsShapeToNullableObject, ColumnsShapeToObject, ColumnsShapeToObjectArray, ColumnsShapeToPluck, CommonQueryData, ComputedColumnsBase, CopyOptions, CopyQueryData, Create, CreateColumn, CreateCtx, CreateData, CreateKind, CreateMethodsNames, CreateRelationsData, CreateRelationsDataOmittingFKeys, CreateSelf, CustomTypeColumn, DateBaseColumn, DateColumn, DateColumnInput, DateTimeBaseClass, DateTimeTzBaseClass, Db, DbOptions, DbResult, DbTableConstructor, DbTableOptionScopes, DbTableOptions, DecimalColumn, DecimalColumnData, DefaultColumnTypes, DefaultSchemaConfig, Delete, DeleteArgs, DeleteMethodsNames, DeleteQueryData, DeleteResult, DomainColumn, DoublePrecisionColumn, DropMode, DynamicRawSQL, EnumColumn, ExpressionOutput, FnExpression, FnExpressionArgs, FnExpressionArgsPairs, FnExpressionArgsValue, For, ForeignKey, ForeignKeyAction, ForeignKeyMatch, ForeignKeyOptions, From, FromArg, FromArgOptions, FromQuerySelf, FromResult, GetArg, GetColumnInfo, GetQueryResult, GetResult, GetResultOptional, GetStringArg, GroupArg, Having, HavingItem, HookAction, HookSelect, IdentityColumn, IndexColumnOptions, IndexOptions, InetColumn, InsertQueryData, IntegerBaseColumn, IntegerColumn, IntervalColumn, IsolationLevel, JSONColumn, JSONTextColumn, Join, JoinArgs, JoinCallback, JoinFirstArg, JoinItem, JoinItemArgs, JoinLateralCallback, JoinLateralItem, JoinLateralResult, JoinOverrides, JoinQueryBuilder, JoinQueryMethod, JoinResult, JoinedParsers, JoinedShapes, JsonItem, JsonMethods, JsonModifiers, LimitedTextBaseColumn, LineColumn, LsegColumn, MacAddr8Column, MacAddrColumn, MapTableScopesOption, MergeQuery, MergeQueryMethods, MoneyColumn, MoreThanOneRowError, NoPrimaryKeyOption, NotFoundError, NumberAsStringBaseColumn, NumberBaseColumn, NumberColumnData, OnConflictItem, OnConflictMergeUpdate, OnConflictQueryBuilder, OnMethods, Operator, Operators, OperatorsAny, OperatorsArray, OperatorsBoolean, OperatorsDate, OperatorsJson, OperatorsNumber, OperatorsText, OperatorsTime, OrCreateArg, OrchidOrmError, OrchidOrmInternalError, OrderArg, OrderArgSelf, OrderArgs, OrderItem, OrderTsQueryConfig, Over, PathColumn, PickColumnData, PickQueryBaseQuery, PickQueryDataShapeAndJoinedShapes, PickQueryInternal, PickQueryMetaRelations, PickQueryMetaResultRelations, PickQueryMetaResultRelationsWindows, PickQueryMetaResultRelationsWindowsColumnTypes, PickQueryMetaResultRelationsWithDataReturnType, PickQueryMetaResultRelationsWithDataReturnTypeShape, PickQueryMetaResultReturnTypeWithDataWindows, PickQueryMetaResultReturnTypeWithDataWindowsTable, PickQueryMetaShapeRelationsWithData, PickQueryMetaTable, PickQueryMetaTableShape, PickQueryMetaTableShapeReturnTypeWithData, PickQueryMetaWithData, PickQueryQ, PickQueryQAndBaseQuery, PickQueryQAndInternal, PickQueryRelations, PickQueryRelationsWithData, PickQueryShapeResultSinglePrimaryKey, PickQueryShapeSinglePrimaryKey, PickQuerySinglePrimaryKey, PickQueryWindows, PickQueryWithData, PointColumn, PolygonColumn, Query, QueryAfterHook, QueryArraysResult, QueryBase, QueryBaseThen, QueryBeforeHook, QueryData, QueryDataJoinTo, QueryDefaultReturnData, QueryError, QueryErrorName, QueryGet, QueryGetSelf, QueryHelperResult, QueryHookSelect, QueryHooks, QueryLog, QueryLogObject, QueryLogOptions, QueryLogger, QueryMetaHasSelect, QueryMetaHasWhere, QueryMethods, QueryResult, QueryReturnsAll, QueryScopeData, QueryScopes, QuerySourceItem, QueryTransform, QueryTransformFn, QueryUpsertOrCreate, QueryWithComputed, QueryWithTable, RawSQL, RawSqlMethods, RealColumn, RelationConfigBase, RelationConfigDataForCreate, RelationJoinQuery, RelationQuery, RelationQueryBase, RelationsBase, RelationsChain, SearchArg, SearchMethods, SearchWeight, Select, SelectArg, SelectAs, SelectItem, SelectQueryData, SelectSubQueryResult, SelectableFromShape, SelectableOfType, SelectableOrExpression, SelectableOrExpressionOfType, SerialColumn, SerialColumnData, SetQueryKind, SetQueryReturnsAll, SetQueryReturnsAllKind, SetQueryReturnsColumnInfo, SetQueryReturnsColumnKind, SetQueryReturnsColumnOptional, SetQueryReturnsColumnOrThrow, SetQueryReturnsOne, SetQueryReturnsOneKind, SetQueryReturnsOneOptional, SetQueryReturnsPluck, SetQueryReturnsPluckColumn, SetQueryReturnsPluckColumnKind, SetQueryReturnsRowCount, SetQueryReturnsRows, SetQueryReturnsValueOptional, SetQueryReturnsValueOrThrow, SetQueryReturnsVoid, SetQueryReturnsVoidKind, SetQueryTableAlias, SetQueryWith, SimpleJoinItem, SimpleJoinItemNonSubQueryArgs, SingleColumnIndexOptions, SingleColumnIndexOptionsForColumn, SmallIntColumn, SmallSerialColumn, SortDir, StringColumn$1 as StringColumn, TableData, TextBaseColumn, TextColumn, TextColumnData, Then, TimeColumn, TimestampColumn, TimestampTZColumn, ToSQLCtx, ToSQLOptions, ToSQLQuery, Transaction, TransactionAdapter, TransactionOptions, TransformMethods, TruncateQueryData, TsQueryColumn, TsVectorColumn, TypeParsers, UUIDColumn, UnhandledTypeError, Union, UnionArg, UnionItem, UnionKind, UnknownColumn, Update, UpdateArg, UpdateCtx, UpdateData, UpdateQueryData, UpdateQueryDataItem, UpdateQueryDataObject, UpdateSelf, UpdatedAtDataInjector, UpsertArg, UpsertResult, UpsertThis, VarCharColumn, VirtualColumn, Where, WhereArg, WhereArgs, WhereInArg, WhereInColumn, WhereInItem, WhereInValues, WhereItem, WhereJsonPathEqualsItem, WhereNotArgs, WhereOnItem, WhereOnJoinItem, WhereQueryBuilder, WhereResult, WhereSearchItem, WhereSearchResult, WindowArg, WindowArgDeclaration, WindowDeclaration, WindowItem, With, WithDataBase, WithDataItem, WithDataItems, WithItem, WithOptions, WrapQueryArg, XMLColumn, _queryAfterSaveCommit, _queryAll, _queryAs, _queryChangeCounter, _queryCreate, _queryCreateFrom, _queryCreateMany, _queryCreateManyFrom, _queryCreateManyRaw, _queryCreateRaw, _queryDefaults, _queryDelete, _queryExec, _queryFindBy, _queryFindByOptional, _queryGet, _queryGetOptional, _queryHookAfterCreate, _queryHookAfterCreateCommit, _queryHookAfterDelete, _queryHookAfterDeleteCommit, _queryHookAfterQuery, _queryHookAfterSave, _queryHookAfterUpdate, _queryHookAfterUpdateCommit, _queryHookBeforeCreate, _queryHookBeforeDelete, _queryHookBeforeQuery, _queryHookBeforeSave, _queryHookBeforeUpdate, _queryInsert, _queryInsertFrom, _queryInsertMany, _queryInsertManyFrom, _queryInsertManyRaw, _queryInsertRaw, _queryJoinOn, _queryJoinOnJsonPathEquals, _queryJoinOrOn, _queryOr, _queryOrNot, _queryRows, _querySelect, _queryTake, _queryTakeOptional, _queryUpdate, _queryUpdateOrThrow, _queryUpdateRaw, _queryWhere, _queryWhereExists, _queryWhereIn, _queryWhereNot, _queryWhereNotSql, _queryWhereSql, addComputedColumns, addParserForRawExpression, addParserForSelectItem, addQueryOn, anyShape, checkIfASimpleQuery, cloneQuery, cloneQueryBaseUnscoped, columnCheckToCode, columnCode, columnForeignKeysToCode, columnIndexesToCode, columnsShapeToCode, constraintPropsToCode, constraintToCode, copyTableData, countSelect, createDb, defaultSchemaConfig, extendQuery, foreignKeyArgumentToCode, getClonedQueryData, getColumnInfo, getColumnTypes, getConstraintKind, getQueryAs, getShapeFromSelect, getTableData, handleResult, identityToCode, indexToCode, instantiateColumn, isDefaultTimeStamp, isQueryReturnsAll, isSelectingCount, joinSubQuery, logColors, logParamToLogObject, makeColumnTypes, makeColumnsByType, makeExpression, makeFnExpression, makeRegexToFindInSql, makeSQL, newTableData, parseRecord, parseResult, primaryKeyToCode, processSelectArg, pushLimitSQL, pushQueryArray, pushQueryOn, pushQueryOrOn, pushQueryValue, queryFrom, queryFromSql, queryJson, queryMethodByReturnType, queryTypeWithLimitOne, queryWrap, quote, quoteString, raw, referencesArgsToCode, resetTableData, resolveSubQueryCallback, saveSearchAlias, setParserForSelectedString, setQueryObjectValue, setQueryOperators, simplifyColumnDefault, sqlQueryArgsToExpression, templateLiteralToSQL, testTransaction, throwIfNoWhere, toSQL, toSQLCacheKey };
|
|
7350
|
+
export { Adapter, AdapterConfig, AdapterOptions, AddQueryDefaults, AddQuerySelect, AddQueryWith, AfterHook, AggregateMethods, AggregateOptions, AliasOrTable, ArrayColumn, ArrayColumnValue, ArrayData, AsMethods, AsQueryArg, BaseOperators, BigIntColumn, BigSerialColumn, BitColumn, BitVaryingColumn, BooleanColumn, BooleanQueryColumn, BoxColumn, ByteaColumn, CharColumn, CidrColumn, CircleColumn, CitextColumn, Clear, ClearStatement, CloneSelfKeys, ColumnData, ColumnExpression, ColumnFromDbParams, ColumnInfoQueryData, ColumnOperators, ColumnRefExpression, ColumnType, ColumnsByType, ColumnsShape, ColumnsShapeToNullableObject, ColumnsShapeToObject, ColumnsShapeToObjectArray, ColumnsShapeToPluck, CommonQueryData, ComputedColumnsBase, CopyOptions, CopyQueryData, Create, CreateColumn, CreateCtx, CreateData, CreateKind, CreateMethodsNames, CreateRelationsData, CreateRelationsDataOmittingFKeys, CreateSelf, CustomTypeColumn, DateBaseColumn, DateColumn, DateColumnInput, DateTimeBaseClass, DateTimeTzBaseClass, Db, DbDomainArg, DbDomainArgRecord, DbExtension, DbOptions, DbResult, DbSharedOptions, DbTableConstructor, DbTableOptionScopes, DbTableOptions, DecimalColumn, DecimalColumnData, DefaultColumnTypes, DefaultSchemaConfig, Delete, DeleteArgs, DeleteMethodsNames, DeleteQueryData, DeleteResult, DomainColumn, DoublePrecisionColumn, DropMode, DynamicRawSQL, EnumColumn, ExpressionOutput, FnExpression, FnExpressionArgs, FnExpressionArgsPairs, FnExpressionArgsValue, For, ForeignKey, ForeignKeyAction, ForeignKeyMatch, ForeignKeyOptions, From, FromArg, FromArgOptions, FromQuerySelf, FromResult, GetArg, GetColumnInfo, GetQueryResult, GetResult, GetResultOptional, GetStringArg, GroupArg, Having, HavingItem, HookAction, HookSelect, IdentityColumn, IndexColumnOptions, IndexColumnOptionsForColumn, IndexOptions, InetColumn, InsertQueryData, IntegerBaseColumn, IntegerColumn, IntervalColumn, IsolationLevel, JSONColumn, JSONTextColumn, Join, JoinArgs, JoinCallback, JoinFirstArg, JoinItem, JoinItemArgs, JoinLateralCallback, JoinLateralItem, JoinLateralResult, JoinOverrides, JoinQueryBuilder, JoinQueryMethod, JoinResult, JoinedParsers, JoinedShapes, JsonItem, JsonMethods, JsonModifiers, LimitedTextBaseColumn, LineColumn, LsegColumn, MacAddr8Column, MacAddrColumn, MapTableScopesOption, MergeQuery, MergeQueryMethods, MoneyColumn, MoreThanOneRowError, NoPrimaryKeyOption, NotFoundError, NumberAsStringBaseColumn, NumberBaseColumn, NumberColumnData, OnConflictItem, OnConflictMergeUpdate, OnConflictQueryBuilder, OnMethods, Operator, Operators, OperatorsAny, OperatorsArray, OperatorsBoolean, OperatorsDate, OperatorsJson, OperatorsNumber, OperatorsText, OperatorsTime, OrCreateArg, OrchidOrmError, OrchidOrmInternalError, OrderArg, OrderArgSelf, OrderArgs, OrderItem, OrderTsQueryConfig, Over, PathColumn, PickColumnData, PickQueryBaseQuery, PickQueryDataShapeAndJoinedShapes, PickQueryInternal, PickQueryMetaRelations, PickQueryMetaResultRelations, PickQueryMetaResultRelationsWindows, PickQueryMetaResultRelationsWindowsColumnTypes, PickQueryMetaResultRelationsWithDataReturnType, PickQueryMetaResultRelationsWithDataReturnTypeShape, PickQueryMetaResultReturnTypeWithDataWindows, PickQueryMetaResultReturnTypeWithDataWindowsTable, PickQueryMetaShapeRelationsWithData, PickQueryMetaTable, PickQueryMetaTableShape, PickQueryMetaTableShapeReturnTypeWithData, PickQueryMetaWithData, PickQueryQ, PickQueryQAndBaseQuery, PickQueryQAndInternal, PickQueryRelations, PickQueryRelationsWithData, PickQueryShapeResultSinglePrimaryKey, PickQueryShapeSinglePrimaryKey, PickQuerySinglePrimaryKey, PickQueryWindows, PickQueryWithData, PointColumn, PolygonColumn, Query, QueryAfterHook, QueryArraysResult, QueryBase, QueryBaseThen, QueryBeforeHook, QueryData, QueryDataJoinTo, QueryDefaultReturnData, QueryError, QueryErrorName, QueryGet, QueryGetSelf, QueryHelperResult, QueryHookSelect, QueryHooks, QueryInternal, QueryLog, QueryLogObject, QueryLogOptions, QueryLogger, QueryMetaHasSelect, QueryMetaHasWhere, QueryMethods, QueryResult, QueryReturnsAll, QueryScopeData, QueryScopes, QuerySourceItem, QueryTransform, QueryTransformFn, QueryUpsertOrCreate, QueryWithComputed, QueryWithTable, RawSQL, RawSqlMethods, RealColumn, RelationConfigBase, RelationConfigDataForCreate, RelationJoinQuery, RelationQuery, RelationQueryBase, RelationsBase, RelationsChain, SearchArg, SearchMethods, SearchWeight, Select, SelectArg, SelectAs, SelectItem, SelectQueryData, SelectSubQueryResult, SelectableFromShape, SelectableOfType, SelectableOrExpression, SelectableOrExpressionOfType, SerialColumn, SerialColumnData, SetQueryKind, SetQueryReturnsAll, SetQueryReturnsAllKind, SetQueryReturnsColumnInfo, SetQueryReturnsColumnKind, SetQueryReturnsColumnOptional, SetQueryReturnsColumnOrThrow, SetQueryReturnsOne, SetQueryReturnsOneKind, SetQueryReturnsOneOptional, SetQueryReturnsPluck, SetQueryReturnsPluckColumn, SetQueryReturnsPluckColumnKind, SetQueryReturnsRowCount, SetQueryReturnsRows, SetQueryReturnsValueOptional, SetQueryReturnsValueOrThrow, SetQueryReturnsVoid, SetQueryReturnsVoidKind, SetQueryTableAlias, SetQueryWith, SimpleJoinItem, SimpleJoinItemNonSubQueryArgs, SingleColumnIndexOptions, SingleColumnIndexOptionsForColumn, SmallIntColumn, SmallSerialColumn, SortDir, StringColumn$1 as StringColumn, TableData, TextBaseColumn, TextColumn, TextColumnData, Then, TimeColumn, TimestampColumn, TimestampTZColumn, ToSQLCtx, ToSQLOptions, ToSQLQuery, Transaction, TransactionAdapter, TransactionOptions, TransformMethods, TruncateQueryData, TsQueryColumn, TsVectorColumn, TypeParsers, UUIDColumn, UnhandledTypeError, Union, UnionArg, UnionItem, UnionKind, UnknownColumn, Update, UpdateArg, UpdateCtx, UpdateData, UpdateQueryData, UpdateQueryDataItem, UpdateQueryDataObject, UpdateSelf, UpdatedAtDataInjector, UpsertArg, UpsertResult, UpsertThis, VarCharColumn, VirtualColumn, Where, WhereArg, WhereArgs, WhereInArg, WhereInColumn, WhereInItem, WhereInValues, WhereItem, WhereJsonPathEqualsItem, WhereNotArgs, WhereOnItem, WhereOnJoinItem, WhereQueryBuilder, WhereResult, WhereSearchItem, WhereSearchResult, WindowArg, WindowArgDeclaration, WindowDeclaration, WindowItem, With, WithDataBase, WithDataItem, WithDataItems, WithItem, WithOptions, WrapQueryArg, XMLColumn, _initQueryBuilder, _queryAfterSaveCommit, _queryAll, _queryAs, _queryChangeCounter, _queryCreate, _queryCreateFrom, _queryCreateMany, _queryCreateManyFrom, _queryCreateManyRaw, _queryCreateRaw, _queryDefaults, _queryDelete, _queryExec, _queryFindBy, _queryFindByOptional, _queryGet, _queryGetOptional, _queryHookAfterCreate, _queryHookAfterCreateCommit, _queryHookAfterDelete, _queryHookAfterDeleteCommit, _queryHookAfterQuery, _queryHookAfterSave, _queryHookAfterUpdate, _queryHookAfterUpdateCommit, _queryHookBeforeCreate, _queryHookBeforeDelete, _queryHookBeforeQuery, _queryHookBeforeSave, _queryHookBeforeUpdate, _queryInsert, _queryInsertFrom, _queryInsertMany, _queryInsertManyFrom, _queryInsertManyRaw, _queryInsertRaw, _queryJoinOn, _queryJoinOnJsonPathEquals, _queryJoinOrOn, _queryOr, _queryOrNot, _queryRows, _querySelect, _queryTake, _queryTakeOptional, _queryUpdate, _queryUpdateOrThrow, _queryUpdateRaw, _queryWhere, _queryWhereExists, _queryWhereIn, _queryWhereNot, _queryWhereNotSql, _queryWhereSql, addComputedColumns, addParserForRawExpression, addParserForSelectItem, addQueryOn, anyShape, checkIfASimpleQuery, cloneQuery, cloneQueryBaseUnscoped, columnCheckToCode, columnCode, columnForeignKeysToCode, columnIndexesToCode, columnsShapeToCode, constraintInnerToCode, constraintPropsToCode, constraintToCode, copyTableData, countSelect, createDb, defaultSchemaConfig, extendQuery, foreignKeyArgumentToCode, getClonedQueryData, getColumnInfo, getColumnTypes, getConstraintKind, getQueryAs, getShapeFromSelect, getTableData, handleResult, identityToCode, indexInnerToCode, indexToCode, instantiateColumn, isDefaultTimeStamp, isQueryReturnsAll, isSelectingCount, joinSubQuery, logColors, logParamToLogObject, makeColumnTypes, makeColumnsByType, makeExpression, makeFnExpression, makeRegexToFindInSql, makeSQL, newTableData, parseRecord, parseResult, primaryKeyInnerToCode, primaryKeyToCode, processSelectArg, pushLimitSQL, pushQueryArray, pushQueryOn, pushQueryOrOn, pushQueryValue, queryFrom, queryFromSql, queryJson, queryMethodByReturnType, queryTypeWithLimitOne, queryWrap, quote, quoteString, raw, referencesArgsToCode, resetTableData, resolveSubQueryCallback, saveSearchAlias, setParserForSelectedString, setQueryObjectValue, setQueryOperators, simplifyColumnDefault, sqlQueryArgsToExpression, templateLiteralToSQL, testTransaction, throwIfNoWhere, toSQL, toSQLCacheKey };
|