pqb 0.25.0 → 0.25.1

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.mjs CHANGED
@@ -96,6 +96,9 @@ function raw(...args) {
96
96
  return isTemplateLiteralArgs(args) ? new RawSQL(args) : typeof args[0] === "function" ? new DynamicRawSQL(args[0]) : new RawSQL(args[0].raw, args[0].values);
97
97
  }
98
98
  const countSelect = [new RawSQL("count(*)")];
99
+ function sqlQueryArgsToExpression(args) {
100
+ return Array.isArray(args[0]) ? new RawSQL(args) : args[0];
101
+ }
99
102
 
100
103
  var __defProp$g = Object.defineProperty;
101
104
  var __defProps$a = Object.defineProperties;
@@ -2108,31 +2111,28 @@ class AsMethods {
2108
2111
  }
2109
2112
  }
2110
2113
 
2111
- function queryFrom(self, args) {
2112
- if (Array.isArray(args[0])) {
2113
- return queryFrom(self, [
2114
- new RawSQL(args)
2115
- ]);
2116
- }
2114
+ function queryFrom(self, arg, options) {
2117
2115
  const data = self.q;
2118
- if (typeof args[0] === "string") {
2119
- data.as || (data.as = args[0]);
2120
- } else if (!isExpression(args[0])) {
2121
- const q = args[0];
2116
+ if (typeof arg === "string") {
2117
+ data.as || (data.as = arg);
2118
+ } else if (!isExpression(arg)) {
2119
+ const q = arg;
2122
2120
  data.as || (data.as = q.q.as || q.table || "t");
2123
- data.shape = getShapeFromSelect(
2124
- args[0],
2125
- true
2126
- );
2121
+ data.shape = getShapeFromSelect(arg, true);
2127
2122
  data.parsers = q.q.parsers;
2128
2123
  } else {
2129
2124
  data.as || (data.as = "t");
2130
2125
  }
2131
- const options = args[1];
2132
2126
  if (options == null ? void 0 : options.only) {
2133
2127
  data.fromOnly = options.only;
2134
2128
  }
2135
- data.from = args[0];
2129
+ data.from = arg;
2130
+ return self;
2131
+ }
2132
+ function queryFromSql(self, args) {
2133
+ const data = self.q;
2134
+ data.as || (data.as = "t");
2135
+ data.from = sqlQueryArgsToExpression(args);
2136
2136
  return self;
2137
2137
  }
2138
2138
  class From {
@@ -2143,13 +2143,6 @@ class From {
2143
2143
  * // accepts sub-query:
2144
2144
  * db.table.from(Otherdb.table.select('foo', 'bar'));
2145
2145
  *
2146
- * // accepts raw sql by template literal:
2147
- * const value = 123;
2148
- * db.table.from`value = ${value}`;
2149
- *
2150
- * // accepts raw sql:
2151
- * db.table.from(db.table.sql`value = ${value}`);
2152
- *
2153
2146
  * // accepts alias of `WITH` expression:
2154
2147
  * q.with('foo', Otherdb.table.select('id', 'name')).from('foo');
2155
2148
  * ```
@@ -2162,10 +2155,29 @@ class From {
2162
2155
  * });
2163
2156
  * ```
2164
2157
  *
2165
- * @param args - query, raw SQL, name of CTE table, or a template string
2158
+ * @param arg - query or name of CTE table
2159
+ * @param options - { only: true } for SQL `ONLY` keyword
2166
2160
  */
2167
- from(...args) {
2161
+ from(arg, options) {
2168
2162
  return queryFrom(
2163
+ this.clone(),
2164
+ arg,
2165
+ options
2166
+ );
2167
+ }
2168
+ /**
2169
+ * Set the `FROM` value with custom SQL:
2170
+ *
2171
+ * ```ts
2172
+ * const value = 123;
2173
+ * db.table.from`value = ${value}`;
2174
+ * db.table.from(db.table.sql`value = ${value}`);
2175
+ * ```
2176
+ *
2177
+ * @param args - SQL expression
2178
+ */
2179
+ fromSql(...args) {
2180
+ return queryFromSql(
2169
2181
  this.clone(),
2170
2182
  args
2171
2183
  );
@@ -2173,7 +2185,7 @@ class From {
2173
2185
  }
2174
2186
 
2175
2187
  function queryWrap(self, query, as = "t") {
2176
- return _queryAs(queryFrom(query, [self]), as);
2188
+ return _queryAs(queryFrom(query, self), as);
2177
2189
  }
2178
2190
 
2179
2191
  function queryJson(self, coalesce) {
@@ -6165,12 +6177,6 @@ class Having {
6165
6177
  * // HAVING count(*) >= 10
6166
6178
  * ```
6167
6179
  *
6168
- * Alternatively, it accepts a raw SQL template:
6169
- *
6170
- * ```ts
6171
- * db.table.having`count(*) >= ${10}`;
6172
- * ```
6173
- *
6174
6180
  * Multiple having conditions will be combined with `AND`:
6175
6181
  *
6176
6182
  * ```ts
@@ -6216,11 +6222,23 @@ class Having {
6216
6222
  return pushQueryValue(
6217
6223
  q,
6218
6224
  "having",
6219
- "raw" in args[0] ? args : args.map(
6225
+ args.map(
6220
6226
  (arg) => arg(q).q.expr
6221
6227
  )
6222
6228
  );
6223
6229
  }
6230
+ /**
6231
+ * Provide SQL expression for the `HAVING` SQL statement:
6232
+ *
6233
+ * ```ts
6234
+ * db.table.having`count(*) >= ${10}`;
6235
+ * ```
6236
+ *
6237
+ * @param args - SQL expression
6238
+ */
6239
+ havingSql(...args) {
6240
+ return pushQueryValue(this.clone(), "having", args);
6241
+ }
6224
6242
  }
6225
6243
 
6226
6244
  const before = (q, key, cb) => pushQueryValue(q, `before${key}`, cb);
@@ -6473,29 +6491,29 @@ class QueryBase {
6473
6491
  }
6474
6492
 
6475
6493
  const _queryWhere = (q, args) => {
6476
- if (Array.isArray(args[0])) {
6477
- return pushQueryValue(
6478
- q,
6479
- "and",
6480
- new RawSQL(args)
6481
- );
6482
- }
6483
6494
  return pushQueryArray(
6484
6495
  q,
6485
6496
  "and",
6486
6497
  args
6487
6498
  );
6488
6499
  };
6500
+ const _queryWhereSql = (q, args) => {
6501
+ return pushQueryValue(
6502
+ q,
6503
+ "and",
6504
+ sqlQueryArgsToExpression(args)
6505
+ );
6506
+ };
6489
6507
  const _queryWhereNot = (q, args) => {
6490
- if (Array.isArray(args[0])) {
6491
- return pushQueryValue(q, "and", {
6492
- NOT: new RawSQL(args)
6493
- });
6494
- }
6495
6508
  return pushQueryValue(q, "and", {
6496
6509
  NOT: args
6497
6510
  });
6498
6511
  };
6512
+ const _queryWhereNotSql = (q, args) => {
6513
+ return pushQueryValue(q, "and", {
6514
+ NOT: sqlQueryArgsToExpression(args)
6515
+ });
6516
+ };
6499
6517
  const _queryOr = (q, args) => {
6500
6518
  return pushQueryArray(
6501
6519
  q,
@@ -6578,7 +6596,7 @@ class Where {
6578
6596
  * },
6579
6597
  *
6580
6598
  * // where column equals to raw SQL
6581
- * column: db.table.sql`raw expression`,
6599
+ * column: db.table.sql`sql expression`,
6582
6600
  * });
6583
6601
  * ```
6584
6602
  *
@@ -6627,9 +6645,6 @@ class Where {
6627
6645
  * `where` supports raw SQL:
6628
6646
  *
6629
6647
  * ```ts
6630
- * db.table.where`a = b`;
6631
- *
6632
- * // or
6633
6648
  * db.table.where(db.table.sql`a = b`);
6634
6649
  *
6635
6650
  * // or
@@ -6954,6 +6969,29 @@ class Where {
6954
6969
  args
6955
6970
  );
6956
6971
  }
6972
+ /**
6973
+ * Use a custom SQL expression in `WHERE` statement:
6974
+ *
6975
+ * ```ts
6976
+ * db.table.where`a = b`;
6977
+ *
6978
+ * // or
6979
+ * db.table.where(db.table.sql`a = b`);
6980
+ *
6981
+ * // or
6982
+ * import { raw } from 'orchid-orm';
6983
+ *
6984
+ * db.table.where(raw`a = b`);
6985
+ * ```
6986
+ *
6987
+ * @param args - SQL expression
6988
+ */
6989
+ whereSql(...args) {
6990
+ return _queryWhereSql(
6991
+ this.clone(),
6992
+ args
6993
+ );
6994
+ }
6957
6995
  /**
6958
6996
  * `whereNot` takes the same argument as `where`,
6959
6997
  * multiple conditions are combined with `AND`,
@@ -6975,6 +7013,18 @@ class Where {
6975
7013
  args
6976
7014
  );
6977
7015
  }
7016
+ /**
7017
+ * `whereNot` version accepting SQL expression:
7018
+ *
7019
+ * ```ts
7020
+ * db.table.whereNot`sql expression`
7021
+ * ```
7022
+ *
7023
+ * @param args - SQL expression
7024
+ */
7025
+ whereNotSql(...args) {
7026
+ return _queryWhereNotSql(this.clone(), args);
7027
+ }
6978
7028
  /**
6979
7029
  * `orWhere` is accepting the same arguments as {@link where}, joining arguments with `OR`.
6980
7030
  *
@@ -9012,12 +9062,10 @@ class Update {
9012
9062
  * @param args - raw SQL via a template string or by using a `sql` method
9013
9063
  */
9014
9064
  updateRaw(...args) {
9015
- const q = this.clone();
9016
- if (Array.isArray(args[0])) {
9017
- const sql = new RawSQL(args);
9018
- return _queryUpdateRaw(q, sql);
9019
- }
9020
- return _queryUpdateRaw(q, args[0]);
9065
+ return _queryUpdateRaw(
9066
+ this.clone(),
9067
+ sqlQueryArgsToExpression(args)
9068
+ );
9021
9069
  }
9022
9070
  /**
9023
9071
  * To make sure that at least one row was updated use `updateOrThrow`:
@@ -10059,7 +10107,7 @@ class QueryMethods {
10059
10107
  * The `find` method is available only for tables which has exactly one primary key.
10060
10108
  * And also it can accept raw SQL template literal, then the primary key is not required.
10061
10109
  *
10062
- * Find record by id, throw [NotFoundError](/guide/error-handling.html) if not found:
10110
+ * Finds a record by id, throws {@link NotFoundError} if not found:
10063
10111
  *
10064
10112
  * ```ts
10065
10113
  * await db.table.find(1);
@@ -10072,13 +10120,9 @@ class QueryMethods {
10072
10120
  * `;
10073
10121
  * ```
10074
10122
  *
10075
- * @param args - primary key value to find by, or a raw SQL
10123
+ * @param value - primary key value to find by
10076
10124
  */
10077
- find(...args) {
10078
- let [value] = args;
10079
- if (Array.isArray(value)) {
10080
- value = new RawSQL(args);
10081
- }
10125
+ find(value) {
10082
10126
  const q = this.clone();
10083
10127
  if (value === null || value === void 0) {
10084
10128
  throw new OrchidOrmInternalError(
@@ -10095,22 +10139,54 @@ class QueryMethods {
10095
10139
  );
10096
10140
  }
10097
10141
  /**
10098
- * Find a single record by the primary key (id), adds `LIMIT 1`, can accept a raw SQL.
10142
+ * Finds a single record with a given SQL, throws {@link NotFoundError} if not found:
10143
+ *
10144
+ * ```ts
10145
+ * await db.user.find`
10146
+ * age = ${age} AND
10147
+ * name = ${name}
10148
+ * `;
10149
+ * ```
10150
+ *
10151
+ * @param args - SQL expression
10152
+ */
10153
+ findBySql(...args) {
10154
+ const q = this.clone();
10155
+ return _queryTake(_queryWhereSql(q, args));
10156
+ }
10157
+ /**
10158
+ * Find a single record by the primary key (id), adds `LIMIT 1`.
10099
10159
  * Returns `undefined` when not found.
10100
10160
  *
10101
10161
  * ```ts
10102
10162
  * const result: TableType | undefined = await db.table.find(123);
10103
10163
  * ```
10104
10164
  *
10105
- * @param args - primary key value to find by, or a raw SQL
10165
+ * @param value - primary key value to find by, or a raw SQL
10106
10166
  */
10107
- findOptional(...args) {
10167
+ findOptional(value) {
10168
+ return _queryTakeOptional(this.find(value));
10169
+ }
10170
+ /**
10171
+ * Finds a single record with a given SQL.
10172
+ * Returns `undefined` when not found.
10173
+ *
10174
+ * ```ts
10175
+ * await db.user.find`
10176
+ * age = ${age} AND
10177
+ * name = ${name}
10178
+ * `;
10179
+ * ```
10180
+ *
10181
+ * @param args - SQL expression
10182
+ */
10183
+ findBySqlOptional(...args) {
10108
10184
  return _queryTakeOptional(
10109
- this.find(...args)
10185
+ this.findBySql(...args)
10110
10186
  );
10111
10187
  }
10112
10188
  /**
10113
- * The same as `where(conditions).take()`, it will filter records and add a `LIMIT 1`.
10189
+ * The same as `where(conditions).take()`, takes the same arguments as {@link Where.where}, it will filter records and add a `LIMIT 1`.
10114
10190
  * Throws `NotFoundError` if not found.
10115
10191
  *
10116
10192
  * ```ts
@@ -10244,7 +10320,7 @@ class QueryMethods {
10244
10320
  /**
10245
10321
  * Adds an order by clause to the query.
10246
10322
  *
10247
- * Takes one or more arguments, each argument can be a column name, an object, or a raw expression.
10323
+ * Takes one or more arguments, each argument can be a column name or an object.
10248
10324
  *
10249
10325
  * ```ts
10250
10326
  * db.table.order('id', 'name'); // ASC by default
@@ -10256,11 +10332,6 @@ class QueryMethods {
10256
10332
  * name: 'ASC NULLS FIRST',
10257
10333
  * age: 'DESC NULLS LAST',
10258
10334
  * });
10259
- *
10260
- * // order by raw SQL expression:
10261
- * db.table.order`raw sql`;
10262
- * // or
10263
- * db.table.order(db.table.sql`raw sql`);
10264
10335
  * ```
10265
10336
  *
10266
10337
  * `order` can refer to the values returned from `select` sub-queries (unlike `where` which cannot).
@@ -10279,22 +10350,35 @@ class QueryMethods {
10279
10350
  * });
10280
10351
  * ```
10281
10352
  *
10282
- * @param args - column name(s), raw SQL, or an object with column names and sort directions.
10353
+ * @param args - column name(s) or an object with column names and sort directions.
10283
10354
  */
10284
10355
  order(...args) {
10285
- if (Array.isArray(args[0])) {
10286
- return pushQueryValue(
10287
- this.clone(),
10288
- "order",
10289
- new RawSQL(args)
10290
- );
10291
- }
10292
10356
  return pushQueryArray(
10293
10357
  this.clone(),
10294
10358
  "order",
10295
10359
  args
10296
10360
  );
10297
10361
  }
10362
+ /**
10363
+ * Order by SQL expression
10364
+ *
10365
+ * Order by raw SQL expression.
10366
+ *
10367
+ * ```ts
10368
+ * db.table.order`raw sql`;
10369
+ * // or
10370
+ * db.table.order(db.table.sql`raw sql`);
10371
+ * ```
10372
+ *
10373
+ * @param args - SQL expression
10374
+ */
10375
+ orderSql(...args) {
10376
+ return pushQueryValue(
10377
+ this.clone(),
10378
+ "order",
10379
+ sqlQueryArgsToExpression(args)
10380
+ );
10381
+ }
10298
10382
  /**
10299
10383
  * Adds a limit clause to the query.
10300
10384
  *
@@ -10990,5 +11074,5 @@ function copyTableData(query, arg) {
10990
11074
  return q;
10991
11075
  }
10992
11076
 
10993
- export { Adapter, AggregateMethods, ArrayColumn, AsMethods, BigIntColumn, BigSerialColumn, BitColumn, BitVaryingColumn, BooleanColumn, BoxColumn, ByteaColumn, CharColumn, CidrColumn, CircleColumn, CitextColumn, Clear, ColumnRefExpression, ColumnType, Create, CustomTypeColumn, DateBaseColumn, DateColumn, DateTimeBaseClass, DateTimeTzBaseClass, Db, DecimalColumn, Delete, DomainColumn, DoublePrecisionColumn, DynamicRawSQL, EnumColumn, FnExpression, For, From, Having, InetColumn, IntegerBaseColumn, IntegerColumn, IntervalColumn, JSONColumn, JSONTextColumn, Join, JsonMethods, JsonModifiers, LimitedTextBaseColumn, LineColumn, LsegColumn, MacAddr8Column, MacAddrColumn, MergeQueryMethods, MoneyColumn, MoreThanOneRowError, NotFoundError, NumberAsStringBaseColumn, NumberBaseColumn, OnConflictQueryBuilder, OnQueryBuilder, Operators, OrchidOrmError, OrchidOrmInternalError, PathColumn, PointColumn, PolygonColumn, QueryBase, QueryError, QueryGet, QueryHooks, QueryLog, QueryMethods, QueryUpsertOrCreate, RawSQL, RawSqlMethods, RealColumn, SearchMethods, Select, SerialColumn, SmallIntColumn, SmallSerialColumn, StringColumn, TextBaseColumn, TextColumn, Then, TimeColumn, TimestampColumn, TimestampTZColumn, Transaction, TransactionAdapter, TransformMethods, TsQueryColumn, TsVectorColumn, UUIDColumn, UnhandledTypeError, Union, UnknownColumn, Update, VarCharColumn, VirtualColumn, Where, WhereQueryBase, With, 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, _queryWhereIn, _queryWhereNot, addComputedColumns, addParserForRawExpression, addParserForSelectItem, addQueryOn, anyShape, checkIfASimpleQuery, cloneQuery, columnCheckToCode, columnCode, columnForeignKeysToCode, columnIndexesToCode, columnsShapeToCode, constraintPropsToCode, constraintToCode, copyTableData, countSelect, createDb, defaultSchemaConfig, extendQuery, foreignKeyArgumentToCode, getClonedQueryData, getColumnInfo, getColumnTypes, getConstraintKind, getQueryAs, getShapeFromSelect, getTableData, handleResult, identityToCode, indexToCode, instantiateColumn, isQueryReturnsAll, isSelectingCount, joinSubQuery, logColors, logParamToLogObject, makeColumnTypes, makeColumnsByType, makeExpression, makeFnExpression, makeRegexToFindInSql, makeSQL, newTableData, parseRecord, parseResult, primaryKeyToCode, processSelectArg, pushLimitSQL, pushQueryArray, pushQueryOn, pushQueryOrOn, pushQueryValue, queryFrom, queryJson, queryMethodByReturnType, queryTypeWithLimitOne, queryWrap, quote, quoteString, raw, referencesArgsToCode, resetTableData, resolveSubQueryCallback, saveSearchAlias, setParserForSelectedString, setQueryObjectValue, setQueryOperators, simplifyColumnDefault, templateLiteralToSQL, testTransaction, throwIfNoWhere, toSQL, toSQLCacheKey };
11077
+ export { Adapter, AggregateMethods, ArrayColumn, AsMethods, BigIntColumn, BigSerialColumn, BitColumn, BitVaryingColumn, BooleanColumn, BoxColumn, ByteaColumn, CharColumn, CidrColumn, CircleColumn, CitextColumn, Clear, ColumnRefExpression, ColumnType, Create, CustomTypeColumn, DateBaseColumn, DateColumn, DateTimeBaseClass, DateTimeTzBaseClass, Db, DecimalColumn, Delete, DomainColumn, DoublePrecisionColumn, DynamicRawSQL, EnumColumn, FnExpression, For, From, Having, InetColumn, IntegerBaseColumn, IntegerColumn, IntervalColumn, JSONColumn, JSONTextColumn, Join, JsonMethods, JsonModifiers, LimitedTextBaseColumn, LineColumn, LsegColumn, MacAddr8Column, MacAddrColumn, MergeQueryMethods, MoneyColumn, MoreThanOneRowError, NotFoundError, NumberAsStringBaseColumn, NumberBaseColumn, OnConflictQueryBuilder, OnQueryBuilder, Operators, OrchidOrmError, OrchidOrmInternalError, PathColumn, PointColumn, PolygonColumn, QueryBase, QueryError, QueryGet, QueryHooks, QueryLog, QueryMethods, QueryUpsertOrCreate, RawSQL, RawSqlMethods, RealColumn, SearchMethods, Select, SerialColumn, SmallIntColumn, SmallSerialColumn, StringColumn, TextBaseColumn, TextColumn, Then, TimeColumn, TimestampColumn, TimestampTZColumn, Transaction, TransactionAdapter, TransformMethods, TsQueryColumn, TsVectorColumn, UUIDColumn, UnhandledTypeError, Union, UnknownColumn, Update, VarCharColumn, VirtualColumn, Where, WhereQueryBase, With, 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, _queryWhereIn, _queryWhereNot, _queryWhereNotSql, _queryWhereSql, addComputedColumns, addParserForRawExpression, addParserForSelectItem, addQueryOn, anyShape, checkIfASimpleQuery, cloneQuery, columnCheckToCode, columnCode, columnForeignKeysToCode, columnIndexesToCode, columnsShapeToCode, constraintPropsToCode, constraintToCode, copyTableData, countSelect, createDb, defaultSchemaConfig, extendQuery, foreignKeyArgumentToCode, getClonedQueryData, getColumnInfo, getColumnTypes, getConstraintKind, getQueryAs, getShapeFromSelect, getTableData, handleResult, identityToCode, indexToCode, instantiateColumn, 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 };
10994
11078
  //# sourceMappingURL=index.mjs.map