pqb 0.51.1 → 0.51.3
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 +51 -21
- package/dist/index.js +85 -50
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +85 -50
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/index.mjs
CHANGED
|
@@ -446,8 +446,7 @@ const simplifyColumnDefault = (value) => {
|
|
|
446
446
|
}
|
|
447
447
|
return;
|
|
448
448
|
};
|
|
449
|
-
const
|
|
450
|
-
const column = typeFn();
|
|
449
|
+
const assignDbDataToColumn = (column, params) => {
|
|
451
450
|
const { dateTimePrecision } = params;
|
|
452
451
|
Object.assign(column.data, {
|
|
453
452
|
...params,
|
|
@@ -3054,7 +3053,8 @@ const applyComputedColumns = (q, fn) => {
|
|
|
3054
3053
|
q.computeBatchAtRuntime = computeBatchAtRuntime;
|
|
3055
3054
|
const computed = fn(q);
|
|
3056
3055
|
for (const key in computed) {
|
|
3057
|
-
|
|
3056
|
+
let item = computed[key];
|
|
3057
|
+
if (typeof item === "function") item = item.call(computed);
|
|
3058
3058
|
if (item instanceof ComputedColumn) {
|
|
3059
3059
|
q.q.computeds = {
|
|
3060
3060
|
...q.q.computeds,
|
|
@@ -3367,9 +3367,13 @@ const then = async (q, adapter, trx, beforeHooks, afterHooks, afterCommitHooks,
|
|
|
3367
3367
|
let renames;
|
|
3368
3368
|
if (hookSelect) {
|
|
3369
3369
|
for (const column of hookSelect.keys()) {
|
|
3370
|
-
const as = hookSelect.get(column)
|
|
3371
|
-
if (as)
|
|
3372
|
-
|
|
3370
|
+
const { as, temp } = hookSelect.get(column);
|
|
3371
|
+
if (as) {
|
|
3372
|
+
(renames ?? (renames = {}))[column] = as;
|
|
3373
|
+
}
|
|
3374
|
+
if (temp) {
|
|
3375
|
+
(tempColumns ?? (tempColumns = /* @__PURE__ */ new Set()))?.add(temp);
|
|
3376
|
+
}
|
|
3373
3377
|
}
|
|
3374
3378
|
if (renames) {
|
|
3375
3379
|
for (const record of result) {
|
|
@@ -3436,9 +3440,11 @@ const then = async (q, adapter, trx, beforeHooks, afterHooks, afterCommitHooks,
|
|
|
3436
3440
|
}
|
|
3437
3441
|
if (hookSelect || tempReturnType !== returnType) {
|
|
3438
3442
|
if (renames) {
|
|
3439
|
-
for (const
|
|
3440
|
-
for (const
|
|
3443
|
+
for (const a in renames) {
|
|
3444
|
+
for (const record of result) {
|
|
3445
|
+
const value = record[a];
|
|
3441
3446
|
record[a] = record[renames[a]];
|
|
3447
|
+
record[renames[a]] = value;
|
|
3442
3448
|
}
|
|
3443
3449
|
}
|
|
3444
3450
|
}
|
|
@@ -3481,7 +3487,8 @@ const then = async (q, adapter, trx, beforeHooks, afterHooks, afterCommitHooks,
|
|
|
3481
3487
|
if (log && sql) {
|
|
3482
3488
|
log.onError(error, sql, logData);
|
|
3483
3489
|
}
|
|
3484
|
-
return reject
|
|
3490
|
+
if (reject) return reject(error);
|
|
3491
|
+
throw error;
|
|
3485
3492
|
}
|
|
3486
3493
|
};
|
|
3487
3494
|
const execQuery = (adapter, method, sql) => {
|
|
@@ -3904,7 +3911,7 @@ const addParsersForSelectJoined = (q, arg, as = arg) => {
|
|
|
3904
3911
|
);
|
|
3905
3912
|
}
|
|
3906
3913
|
};
|
|
3907
|
-
const addParserForSelectItem = (q, as, key, arg, joinQuery) => {
|
|
3914
|
+
const addParserForSelectItem = (q, as, key, arg, columnAlias, joinQuery) => {
|
|
3908
3915
|
if (typeof arg === "object" || typeof arg === "function") {
|
|
3909
3916
|
const { q: query } = arg;
|
|
3910
3917
|
if (query.batchParsers) {
|
|
@@ -4076,7 +4083,13 @@ const addParserForSelectItem = (q, as, key, arg, joinQuery) => {
|
|
|
4076
4083
|
}
|
|
4077
4084
|
return arg;
|
|
4078
4085
|
}
|
|
4079
|
-
return setParserForSelectedString(
|
|
4086
|
+
return setParserForSelectedString(
|
|
4087
|
+
q,
|
|
4088
|
+
arg,
|
|
4089
|
+
as,
|
|
4090
|
+
key,
|
|
4091
|
+
columnAlias
|
|
4092
|
+
);
|
|
4080
4093
|
};
|
|
4081
4094
|
const collectNestedSelectBatches = (batches, rows, path, last) => {
|
|
4082
4095
|
const stack = rows.map(
|
|
@@ -4168,15 +4181,18 @@ const processSelectArg = (q, as, arg, columnAs) => {
|
|
|
4168
4181
|
as,
|
|
4169
4182
|
key,
|
|
4170
4183
|
value,
|
|
4184
|
+
key,
|
|
4171
4185
|
joinQuery
|
|
4172
4186
|
);
|
|
4173
4187
|
}
|
|
4174
4188
|
return { selectAs };
|
|
4175
4189
|
};
|
|
4176
|
-
const setParserForSelectedString = (query, arg, as, columnAs) => {
|
|
4190
|
+
const setParserForSelectedString = (query, arg, as, columnAs, columnAlias) => {
|
|
4177
4191
|
const { q } = query;
|
|
4178
4192
|
const index = arg.indexOf(".");
|
|
4179
|
-
if (index === -1)
|
|
4193
|
+
if (index === -1) {
|
|
4194
|
+
return selectColumn(query, q, arg, columnAs, columnAlias);
|
|
4195
|
+
}
|
|
4180
4196
|
const table = getFullColumnTable(query, arg, index, as);
|
|
4181
4197
|
const column = arg.slice(index + 1);
|
|
4182
4198
|
if (column === "*") {
|
|
@@ -4184,7 +4200,7 @@ const setParserForSelectedString = (query, arg, as, columnAs) => {
|
|
|
4184
4200
|
return table === as ? column : arg;
|
|
4185
4201
|
}
|
|
4186
4202
|
if (table === as) {
|
|
4187
|
-
return selectColumn(query, q, column, columnAs);
|
|
4203
|
+
return selectColumn(query, q, column, columnAs, columnAlias);
|
|
4188
4204
|
}
|
|
4189
4205
|
const parser = q.joinedParsers?.[table]?.[column];
|
|
4190
4206
|
if (parser) setParserToQuery(q, columnAs || column, parser);
|
|
@@ -4213,24 +4229,24 @@ const setParserForSelectedString = (query, arg, as, columnAs) => {
|
|
|
4213
4229
|
}
|
|
4214
4230
|
return arg;
|
|
4215
4231
|
};
|
|
4216
|
-
const selectColumn = (query, q, key, columnAs) => {
|
|
4232
|
+
const selectColumn = (query, q, key, columnAs, columnAlias) => {
|
|
4217
4233
|
if (columnAs && q.parsers) {
|
|
4218
4234
|
const parser = q.parsers[key];
|
|
4219
4235
|
if (parser) setObjectValueImmutable(q, "parsers", columnAs, parser);
|
|
4220
4236
|
}
|
|
4221
|
-
|
|
4222
|
-
|
|
4223
|
-
const
|
|
4224
|
-
|
|
4225
|
-
|
|
4226
|
-
const map = q.q.hookSelect = new Map(q.q.hookSelect);
|
|
4227
|
-
for (const column2 of computed.deps) {
|
|
4228
|
-
map.set(column2, { select: column2 });
|
|
4237
|
+
if (q.computeds?.[key]) {
|
|
4238
|
+
const computed = q.computeds[key];
|
|
4239
|
+
const map = query.q.hookSelect = new Map(query.q.hookSelect);
|
|
4240
|
+
for (const key2 of computed.deps) {
|
|
4241
|
+
map.set(key2, { select: key2 });
|
|
4229
4242
|
}
|
|
4230
|
-
|
|
4243
|
+
query.q.selectedComputeds = {
|
|
4244
|
+
...query.q.selectedComputeds,
|
|
4245
|
+
[columnAlias || key]: computed
|
|
4246
|
+
};
|
|
4231
4247
|
return;
|
|
4232
4248
|
}
|
|
4233
|
-
return
|
|
4249
|
+
return key;
|
|
4234
4250
|
};
|
|
4235
4251
|
const getShapeFromSelect = (q, isSubQuery) => {
|
|
4236
4252
|
const query = q.q;
|
|
@@ -4250,7 +4266,9 @@ const getShapeFromSelect = (q, isSubQuery) => {
|
|
|
4250
4266
|
result = {};
|
|
4251
4267
|
for (const key in shape) {
|
|
4252
4268
|
const column = shape[key];
|
|
4253
|
-
|
|
4269
|
+
if (!column.data.explicitSelect) {
|
|
4270
|
+
result[key] = column.data.name ? setColumnData(column, "name", void 0) : column;
|
|
4271
|
+
}
|
|
4254
4272
|
}
|
|
4255
4273
|
} else {
|
|
4256
4274
|
result = shape;
|
|
@@ -4310,10 +4328,12 @@ const addColumnToShapeFromSelect = (q, arg, shape, query, result, isSubQuery, ke
|
|
|
4310
4328
|
}
|
|
4311
4329
|
} else if (arg === "*") {
|
|
4312
4330
|
for (const key2 in shape) {
|
|
4313
|
-
|
|
4314
|
-
|
|
4315
|
-
|
|
4316
|
-
|
|
4331
|
+
if (!shape[key2].data.explicitSelect) {
|
|
4332
|
+
result[key2] = mapSubSelectColumn(
|
|
4333
|
+
shape[key2],
|
|
4334
|
+
isSubQuery
|
|
4335
|
+
);
|
|
4336
|
+
}
|
|
4317
4337
|
}
|
|
4318
4338
|
} else {
|
|
4319
4339
|
result[key || arg] = mapSubSelectColumn(
|
|
@@ -4832,6 +4852,7 @@ const selectToSql = (ctx, table, query, quotedAs, hookSelect = query.hookSelect,
|
|
|
4832
4852
|
return query.inCTE.selectNum || !select ? select ? "0, " + select : "0" : select;
|
|
4833
4853
|
}
|
|
4834
4854
|
let selected;
|
|
4855
|
+
let selectedAs;
|
|
4835
4856
|
const list = [];
|
|
4836
4857
|
if (query.select) {
|
|
4837
4858
|
for (const item of query.select) {
|
|
@@ -4840,8 +4861,10 @@ const selectToSql = (ctx, table, query, quotedAs, hookSelect = query.hookSelect,
|
|
|
4840
4861
|
if (item === "*") {
|
|
4841
4862
|
if (hookSelect) {
|
|
4842
4863
|
selected ?? (selected = {});
|
|
4843
|
-
|
|
4864
|
+
selectedAs ?? (selectedAs = {});
|
|
4865
|
+
for (const key in query.selectAllShape) {
|
|
4844
4866
|
selected[key] = quotedAs;
|
|
4867
|
+
selectedAs[key] = key;
|
|
4845
4868
|
}
|
|
4846
4869
|
}
|
|
4847
4870
|
sql = selectAllSql(query, quotedAs, jsonList);
|
|
@@ -4852,6 +4875,7 @@ const selectToSql = (ctx, table, query, quotedAs, hookSelect = query.hookSelect,
|
|
|
4852
4875
|
const key = item.slice(index + 1);
|
|
4853
4876
|
if (hookSelect?.get(key)) {
|
|
4854
4877
|
(selected ?? (selected = {}))[key] = `"${tableName}"`;
|
|
4878
|
+
(selectedAs ?? (selectedAs = {}))[key] = key;
|
|
4855
4879
|
}
|
|
4856
4880
|
sql = tableColumnToSqlWithAs(
|
|
4857
4881
|
ctx,
|
|
@@ -4865,7 +4889,10 @@ const selectToSql = (ctx, table, query, quotedAs, hookSelect = query.hookSelect,
|
|
|
4865
4889
|
jsonList
|
|
4866
4890
|
);
|
|
4867
4891
|
} else {
|
|
4868
|
-
if (hookSelect?.get(item))
|
|
4892
|
+
if (hookSelect?.get(item)) {
|
|
4893
|
+
(selected ?? (selected = {}))[item] = quotedAs;
|
|
4894
|
+
(selectedAs ?? (selectedAs = {}))[item] = item;
|
|
4895
|
+
}
|
|
4869
4896
|
sql = ownColumnToSqlWithAs(
|
|
4870
4897
|
ctx,
|
|
4871
4898
|
table.q,
|
|
@@ -4883,7 +4910,9 @@ const selectToSql = (ctx, table, query, quotedAs, hookSelect = query.hookSelect,
|
|
|
4883
4910
|
if ("selectAs" in item) {
|
|
4884
4911
|
const obj = item.selectAs;
|
|
4885
4912
|
for (const as in obj) {
|
|
4886
|
-
if (hookSelect)
|
|
4913
|
+
if (hookSelect) {
|
|
4914
|
+
(selected ?? (selected = {}))[as] = true;
|
|
4915
|
+
}
|
|
4887
4916
|
const value = obj[as];
|
|
4888
4917
|
if (typeof value === "object") {
|
|
4889
4918
|
if (isExpression(value)) {
|
|
@@ -4899,6 +4928,9 @@ const selectToSql = (ctx, table, query, quotedAs, hookSelect = query.hookSelect,
|
|
|
4899
4928
|
}
|
|
4900
4929
|
}
|
|
4901
4930
|
} else if (value) {
|
|
4931
|
+
if (hookSelect) {
|
|
4932
|
+
(selectedAs ?? (selectedAs = {}))[value] = as;
|
|
4933
|
+
}
|
|
4902
4934
|
list.push(
|
|
4903
4935
|
columnToSqlWithAs(
|
|
4904
4936
|
ctx,
|
|
@@ -4955,9 +4987,17 @@ const selectToSql = (ctx, table, query, quotedAs, hookSelect = query.hookSelect,
|
|
|
4955
4987
|
let i = 2;
|
|
4956
4988
|
while (selected[name = `${column}${i}`]) i++;
|
|
4957
4989
|
item.as = name;
|
|
4990
|
+
item.temp = name;
|
|
4958
4991
|
sql += ` "${name}"`;
|
|
4959
|
-
} else if (
|
|
4960
|
-
|
|
4992
|
+
} else if (selectedAs?.[columnName]) {
|
|
4993
|
+
item.as = selectedAs[columnName];
|
|
4994
|
+
item.temp = columnName;
|
|
4995
|
+
continue;
|
|
4996
|
+
} else {
|
|
4997
|
+
if (col?.data.name || typeof select === "object") {
|
|
4998
|
+
sql += ` "${columnName}"`;
|
|
4999
|
+
}
|
|
5000
|
+
item.temp = columnName;
|
|
4961
5001
|
}
|
|
4962
5002
|
if (jsonList) jsonList[name] = col;
|
|
4963
5003
|
list.push(sql);
|
|
@@ -4971,7 +5011,7 @@ function selectedObjectToSQL(ctx, quotedAs, item) {
|
|
|
4971
5011
|
}
|
|
4972
5012
|
const selectAllSql = (query, quotedAs, jsonList) => {
|
|
4973
5013
|
if (jsonList) {
|
|
4974
|
-
Object.assign(jsonList, query.
|
|
5014
|
+
Object.assign(jsonList, query.selectAllShape);
|
|
4975
5015
|
}
|
|
4976
5016
|
return query.join?.length ? query.selectAllColumns?.map((item) => `${quotedAs}.${item}`).join(", ") || `${quotedAs}.*` : query.selectAllColumns?.join(", ") || "*";
|
|
4977
5017
|
};
|
|
@@ -11771,7 +11811,7 @@ class ExpressionMethods {
|
|
|
11771
11811
|
column(name) {
|
|
11772
11812
|
const column = this.shape[name];
|
|
11773
11813
|
return new ColumnRefExpression(
|
|
11774
|
-
column,
|
|
11814
|
+
column || UnknownColumn.instance,
|
|
11775
11815
|
name
|
|
11776
11816
|
);
|
|
11777
11817
|
}
|
|
@@ -11813,12 +11853,12 @@ class ExpressionMethods {
|
|
|
11813
11853
|
if (table === as) {
|
|
11814
11854
|
column = shape[col];
|
|
11815
11855
|
} else {
|
|
11816
|
-
column = q.q.joinedShapes[table][col];
|
|
11856
|
+
column = q.q.joinedShapes?.[table][col];
|
|
11817
11857
|
}
|
|
11818
11858
|
} else {
|
|
11819
11859
|
column = shape[arg];
|
|
11820
11860
|
}
|
|
11821
|
-
return new RefExpression(column, q, arg);
|
|
11861
|
+
return new RefExpression(column || UnknownColumn.instance, q, arg);
|
|
11822
11862
|
}
|
|
11823
11863
|
val(value) {
|
|
11824
11864
|
return new ValExpression(value);
|
|
@@ -12698,7 +12738,7 @@ const parseIndexOrExclude = (item) => {
|
|
|
12698
12738
|
|
|
12699
12739
|
const anyShape = {};
|
|
12700
12740
|
class Db extends QueryMethods {
|
|
12701
|
-
constructor(adapter, queryBuilder, table = void 0, shape = anyShape, columnTypes, transactionStorage, options, tableData =
|
|
12741
|
+
constructor(adapter, queryBuilder, table = void 0, shape = anyShape, columnTypes, transactionStorage, options, tableData = {}) {
|
|
12702
12742
|
super();
|
|
12703
12743
|
this.adapter = adapter;
|
|
12704
12744
|
this.queryBuilder = queryBuilder;
|
|
@@ -12792,26 +12832,21 @@ class Db extends QueryMethods {
|
|
|
12792
12832
|
);
|
|
12793
12833
|
this.columns = columns;
|
|
12794
12834
|
if (options.computed) applyComputedColumns(this, options.computed);
|
|
12795
|
-
const selectableShape = this.q.selectableShape = {};
|
|
12796
12835
|
if (prepareSelectAll) {
|
|
12836
|
+
const selectAllShape = this.q.selectAllShape = {};
|
|
12797
12837
|
const list = [];
|
|
12798
12838
|
for (const key in shape) {
|
|
12799
12839
|
const column = shape[key];
|
|
12800
|
-
if (!column.data.explicitSelect
|
|
12840
|
+
if (!column.data.explicitSelect) {
|
|
12801
12841
|
list.push(
|
|
12802
12842
|
column.data.name ? `"${column.data.name}" "${key}"` : `"${key}"`
|
|
12803
12843
|
);
|
|
12804
|
-
|
|
12844
|
+
selectAllShape[key] = column;
|
|
12805
12845
|
}
|
|
12806
12846
|
}
|
|
12807
12847
|
this.q.selectAllColumns = list;
|
|
12808
12848
|
} else {
|
|
12809
|
-
|
|
12810
|
-
const column = shape[key];
|
|
12811
|
-
if (column instanceof VirtualColumn) {
|
|
12812
|
-
selectableShape[key] = column;
|
|
12813
|
-
}
|
|
12814
|
-
}
|
|
12849
|
+
this.q.selectAllShape = shape;
|
|
12815
12850
|
}
|
|
12816
12851
|
if (modifyQuery) {
|
|
12817
12852
|
for (const cb of modifyQuery) {
|
|
@@ -13167,5 +13202,5 @@ function copyTableData(query, arg) {
|
|
|
13167
13202
|
return q;
|
|
13168
13203
|
}
|
|
13169
13204
|
|
|
13170
|
-
export { Adapter, AfterCommitError, AggregateMethods, ArrayColumn, AsMethods, BigIntColumn, BigSerialColumn, BitColumn, BitVaryingColumn, BooleanColumn, BoxColumn, ByteaColumn, CidrColumn, CircleColumn, CitextColumn, Clear, ColumnRefExpression, ColumnType, ComputedColumn, Create, CustomTypeColumn, DateBaseColumn, DateColumn, DateTimeBaseClass, DateTimeTzBaseClass, Db, DecimalColumn, Delete, DomainColumn, DoublePrecisionColumn, DynamicRawSQL, EnumColumn, ExpressionMethods, FnExpression, For, FromMethods, Having, InetColumn, IntegerBaseColumn, IntegerColumn, IntervalColumn, JSONColumn, JSONTextColumn, Join, JsonMethods, LimitedTextBaseColumn, LineColumn, LsegColumn, MacAddr8Column, MacAddrColumn, MergeQueryMethods, MoneyColumn, MoreThanOneRowError, NotFoundError, NumberAsStringBaseColumn, NumberBaseColumn, OnConflictQueryBuilder, OnMethods, Operators, OrExpression, OrchidOrmError, OrchidOrmInternalError, PathColumn, PointColumn, PolygonColumn, PostgisGeographyPointColumn, QueryError, QueryGet, QueryHooks, QueryLog, QueryMethods, QueryUpsertOrCreate, RawSQL, RealColumn, RefExpression, SearchMethods, Select, SerialColumn, SmallIntColumn, SmallSerialColumn, SqlMethod, StringColumn, TextBaseColumn, TextColumn, Then, TimeColumn, TimestampColumn, TimestampTZColumn, Transaction, TransactionAdapter, TransformMethods, TsQueryColumn, TsVectorColumn, UUIDColumn, UnhandledTypeError, Union, UnknownColumn, Update, VarCharColumn, VirtualColumn, Where, WithMethods, XMLColumn, _afterCommitError, _clone, _getSelectableColumn, _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, _queryResolveAlias, _queryRows, _querySelect, _queryTake, _queryTakeOptional, _queryUnion, _queryUpdate, _queryUpdateOrThrow, _queryUpdateRaw, _queryWhere, _queryWhereExists, _queryWhereIn, _queryWhereNot, _queryWhereNotOneOf, _queryWhereNotSql, _queryWhereOneOf, _queryWhereSql, addColumnParserToQuery, addParserForRawExpression, addParserForSelectItem, addQueryOn, anyShape, applyComputedColumns, checkIfASimpleQuery, cloneQueryBaseUnscoped, columnCheckToCode, columnCode, columnExcludesToCode, columnForeignKeysToCode, columnIndexesToCode, columnsShapeToCode, commitSql$1 as commitSql, constraintInnerToCode, constraintToCode, copyTableData, countSelect, createDb, defaultSchemaConfig, escapeForLog, escapeForMigration, escapeString, excludeInnerToCode, excludeToCode, extendQuery, filterResult, foreignKeyArgumentToCode, getClonedQueryData, getColumnInfo, getColumnTypes, getFullColumnTable, getPrimaryKeys, getQueryAs, getShapeFromSelect, getSqlText, handleResult, identityToCode, indexInnerToCode, indexToCode,
|
|
13205
|
+
export { Adapter, AfterCommitError, AggregateMethods, ArrayColumn, AsMethods, BigIntColumn, BigSerialColumn, BitColumn, BitVaryingColumn, BooleanColumn, BoxColumn, ByteaColumn, CidrColumn, CircleColumn, CitextColumn, Clear, ColumnRefExpression, ColumnType, ComputedColumn, Create, CustomTypeColumn, DateBaseColumn, DateColumn, DateTimeBaseClass, DateTimeTzBaseClass, Db, DecimalColumn, Delete, DomainColumn, DoublePrecisionColumn, DynamicRawSQL, EnumColumn, ExpressionMethods, FnExpression, For, FromMethods, Having, InetColumn, IntegerBaseColumn, IntegerColumn, IntervalColumn, JSONColumn, JSONTextColumn, Join, JsonMethods, LimitedTextBaseColumn, LineColumn, LsegColumn, MacAddr8Column, MacAddrColumn, MergeQueryMethods, MoneyColumn, MoreThanOneRowError, NotFoundError, NumberAsStringBaseColumn, NumberBaseColumn, OnConflictQueryBuilder, OnMethods, Operators, OrExpression, OrchidOrmError, OrchidOrmInternalError, PathColumn, PointColumn, PolygonColumn, PostgisGeographyPointColumn, QueryError, QueryGet, QueryHooks, QueryLog, QueryMethods, QueryUpsertOrCreate, RawSQL, RealColumn, RefExpression, SearchMethods, Select, SerialColumn, SmallIntColumn, SmallSerialColumn, SqlMethod, StringColumn, TextBaseColumn, TextColumn, Then, TimeColumn, TimestampColumn, TimestampTZColumn, Transaction, TransactionAdapter, TransformMethods, TsQueryColumn, TsVectorColumn, UUIDColumn, UnhandledTypeError, Union, UnknownColumn, Update, VarCharColumn, VirtualColumn, Where, WithMethods, XMLColumn, _afterCommitError, _clone, _getSelectableColumn, _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, _queryResolveAlias, _queryRows, _querySelect, _queryTake, _queryTakeOptional, _queryUnion, _queryUpdate, _queryUpdateOrThrow, _queryUpdateRaw, _queryWhere, _queryWhereExists, _queryWhereIn, _queryWhereNot, _queryWhereNotOneOf, _queryWhereNotSql, _queryWhereOneOf, _queryWhereSql, addColumnParserToQuery, addParserForRawExpression, addParserForSelectItem, addQueryOn, anyShape, applyComputedColumns, assignDbDataToColumn, checkIfASimpleQuery, cloneQueryBaseUnscoped, columnCheckToCode, columnCode, columnExcludesToCode, columnForeignKeysToCode, columnIndexesToCode, columnsShapeToCode, commitSql$1 as commitSql, constraintInnerToCode, constraintToCode, copyTableData, countSelect, createDb, defaultSchemaConfig, escapeForLog, escapeForMigration, escapeString, excludeInnerToCode, excludeToCode, extendQuery, filterResult, foreignKeyArgumentToCode, getClonedQueryData, getColumnInfo, getColumnTypes, getFullColumnTable, getPrimaryKeys, getQueryAs, getShapeFromSelect, getSqlText, handleResult, identityToCode, indexInnerToCode, indexToCode, isDefaultTimeStamp, isQueryReturnsAll, isSelectingCount, joinSubQuery, logParamToLogObject, makeColumnTypes, makeColumnsByType, makeFnExpression, makeRegexToFindInSql, parseRecord, parseTableData, parseTableDataInput, postgisTypmodToSql, primaryKeyInnerToCode, processComputedBatches, processComputedResult, processSelectArg, pushLimitSQL, pushQueryArrayImmutable, pushQueryOn, pushQueryOnForOuter, pushQueryOrOn, pushQueryValueImmutable, pushTableDataCode, queryFrom, queryFromSql, queryJson, queryMethodByReturnType, queryTypeWithLimitOne, queryWrap, raw, referencesArgsToCode, resolveSubQueryCallbackV2, rollbackSql$1 as rollbackSql, saveSearchAlias, setColumnDefaultParse, setColumnEncode, setColumnParse, setColumnParseNull, setParserForSelectedString, setQueryObjectValueImmutable, setQueryOperators, simplifyColumnDefault, sqlFn, sqlQueryArgsToExpression, tableDataMethods, templateLiteralToSQL, testTransaction, throwIfJoinLateral, throwIfNoWhere, toSQL };
|
|
13171
13206
|
//# sourceMappingURL=index.mjs.map
|