tempest-db-js 0.6.0 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -641,7 +641,8 @@ declare class InsertBuilder<Full, Ins, Ret = number> {
641
641
  * @param rows One row, or an array of rows.
642
642
  * @returns A builder carrying the rows.
643
643
  * @throws ValidationError When a value is not a column value the dialect can
644
- * bind (see the `sql` helpers for writing an expression instead).
644
+ * bind (see the `sql` helpers for writing an expression instead), or when the
645
+ * rows of a multi-row insert disagree about a column that has a default.
645
646
  */
646
647
  values(rows: WriteValues<Ins> | readonly WriteValues<Ins>[]): InsertBuilder<Full, Ins, Ret>;
647
648
  /**
@@ -1331,8 +1332,14 @@ declare class NodeSqliteDriver implements SyncDriver {
1331
1332
  */
1332
1333
  private readonly statements;
1333
1334
  constructor(database: any);
1334
- /** Open a `node:sqlite` database at the given path (or `:memory:`). */
1335
- static open(path: string): NodeSqliteDriver;
1335
+ /**
1336
+ * Open a `node:sqlite` database at the given path (or `:memory:`).
1337
+ *
1338
+ * @param path The database file, or `":memory:"`.
1339
+ * @param options Passed straight to `DatabaseSync` (`readOnly`, `timeout`, …).
1340
+ * @returns A driver over the open handle.
1341
+ */
1342
+ static open(path: string, options?: Readonly<Record<string, unknown>>): NodeSqliteDriver;
1336
1343
  /** Return the cached prepared statement for `sql`, preparing it on first use. */
1337
1344
  private prepare;
1338
1345
  execute(sql: string, params: readonly unknown[]): DriverResult;
@@ -1550,6 +1557,12 @@ interface PoolOptions {
1550
1557
  /** Give up acquiring a connection after this long (ms). */
1551
1558
  readonly connectTimeoutMs?: number;
1552
1559
  }
1560
+ /**
1561
+ * A server-side notice (a PostgreSQL `NOTICE`). The shape is the driver's own —
1562
+ * passed through untouched rather than normalized, since what is useful in it
1563
+ * differs per database.
1564
+ */
1565
+ type NoticeLogger = (notice: Record<string, unknown>) => void;
1553
1566
  /** Options shared by both engine flavors. */
1554
1567
  interface EngineOptions {
1555
1568
  /** Override the driver detected from the URL (e.g. `"better-sqlite3"`). */
@@ -1561,6 +1574,34 @@ interface EngineOptions {
1561
1574
  * query logging/tracing. Thrown errors are swallowed so it never breaks a query.
1562
1575
  */
1563
1576
  readonly onQuery?: QueryLogger;
1577
+ /**
1578
+ * Called for every server-side notice (`CREATE TABLE IF NOT EXISTS` on an
1579
+ * existing table, `DROP ... IF EXISTS` on a missing one, and so on).
1580
+ *
1581
+ * **Without this, notices are silenced.** postgres.js defaults to printing them
1582
+ * with `console.log`, which drops a nine-line object into the host service's
1583
+ * stdout in the middle of its structured log — on every boot, since a migration
1584
+ * runner is usually the first thing to run. Writing to the host's stdout is the
1585
+ * application's decision, not a library's, so the default is to say nothing and
1586
+ * let you route them:
1587
+ *
1588
+ * ```ts
1589
+ * createEngine(url, { onNotice: (n) => logger.debug({ pg: n }, "postgres notice") });
1590
+ * ```
1591
+ *
1592
+ * Thrown errors are swallowed, like `onQuery`.
1593
+ */
1594
+ readonly onNotice?: NoticeLogger;
1595
+ /**
1596
+ * Options passed straight to the underlying driver, applied **last** so they
1597
+ * win over everything this layer derives (`pool`, `onNotice`).
1598
+ *
1599
+ * The escape hatch for what the typed surface does not model and is not going
1600
+ * to — postgres.js `connection`/`types`/`transform`/`ssl`, mysql2's own
1601
+ * settings, `node:sqlite`'s `readOnly` — so a gap need not become a feature
1602
+ * request.
1603
+ */
1604
+ readonly driverOptions?: Readonly<Record<string, unknown>>;
1564
1605
  }
1565
1606
  /** A synchronous engine (SQLite only). */
1566
1607
  declare class SyncEngine {
@@ -2318,9 +2359,22 @@ type ColValue<Col> = Col extends Column<infer T, infer F> ? F extends {
2318
2359
  type HasDefault<Col> = Col extends Column<unknown, infer F> ? F extends {
2319
2360
  hasDefault: true;
2320
2361
  } ? true : false : false;
2321
- /** Keys of the model whose columns are optional on insert. */
2362
+ /** True when a column accepts NULL neither `notNull` nor a primary key. */
2363
+ type IsNullable<Col> = Col extends Column<unknown, infer F> ? F extends {
2364
+ notNull: true;
2365
+ } | {
2366
+ primaryKey: true;
2367
+ } ? false : true : false;
2368
+ /**
2369
+ * Keys of the model whose columns may be omitted on insert.
2370
+ *
2371
+ * A column is optional when it has a default **or** when it accepts NULL: SQL
2372
+ * applies `NULL` to an omitted column that declares no other default, so
2373
+ * requiring the caller to write `note: null` adds noise that reads like a
2374
+ * deliberate decision to blank the column. Passing `null` explicitly still works.
2375
+ */
2322
2376
  type OptionalInsertKeys<I> = {
2323
- [K in ColumnKeys<I>]: HasDefault<I[K]> extends true ? K : never;
2377
+ [K in ColumnKeys<I>]: HasDefault<I[K]> extends true ? K : IsNullable<I[K]> extends true ? K : never;
2324
2378
  }[ColumnKeys<I>];
2325
2379
  /**
2326
2380
  * Infer the SELECT row shape from a model class: every column field becomes its
@@ -2331,7 +2385,9 @@ type InferModel<C extends ModelClass> = {
2331
2385
  [K in ColumnKeys<InstanceType<C>>]: ColValue<InstanceType<C>[K]>;
2332
2386
  };
2333
2387
  /**
2334
- * Infer the INSERT shape: columns with a default (or PK) are optional; the rest
2388
+ * Infer the INSERT shape: a column is optional when it has a default (or is a PK)
2389
+ * **or** when it is nullable — matching SQL, where an omitted column with no
2390
+ * `DEFAULT` clause is written as `NULL`. Only `notNull` columns without a default
2335
2391
  * are required. Nullability is preserved on both sides.
2336
2392
  */
2337
2393
  type InferInsert<C extends ModelClass> = Simplify<{
@@ -2340,4 +2396,4 @@ type InferInsert<C extends ModelClass> = Simplify<{
2340
2396
  [K in Exclude<ColumnKeys<InstanceType<C>>, OptionalInsertKeys<InstanceType<C>>>]: ColValue<InstanceType<C>[K]>;
2341
2397
  }>;
2342
2398
 
2343
- export { ActiveRecord, type ActiveRecordManager, Agg, type AggregateTerm, type AsyncDriver, AsyncEngine, AsyncResult, AsyncSession, BaseDialect, BaseRepository, type BelongsTo, type ColRef, type ColType, Column, type ColumnFlags, type ColumnType, type ColumnTypeKind, type ColumnTypeMeta, type CompiledQuery, type CondNode, type Condition, type DefaultValue, DeleteBuilder, type DeleteNode, type Dialect, type DriverResult, type EngineOptions, type Executable, type ExprNode, Expression, type FkAction, type ForeignKeyOptions, type ForeignKeyRef, type HasMany, type InferInsert, type InferModel, InsertBuilder, type InsertNode, InvalidDatabaseUrl, JoinBuilder, type JoinClause, type JoinNode, type JoinOn, type JoinSelection, type JoinWhereInput, type LockClause, type LockOptions, Model, type ModelClass, MysqlDialect, type NameMap, type NamingStrategy, NoResultError, NodeSqliteDriver, OPERATORS, type OnConflict, type OnConflictOptions, type OnConflictUpdateOptions, type Operator, type OperatorsFor, type OrderTerm, type PaginationFilter, type PaginationResult, Params, type ParsedDatabaseUrl, type PoolOptions, type PortableExpression, PostgresDialect, QueryExecutionError, type QueryLogger, type QueryNode, RecordNotFound, type Relation, type RelationValue, type ReservedAsyncDriver, type Returning, type RowOf, SelectBuilder, type SelectNode, type SortDirection, type Sources, type SqlExpression, SqliteDialect, type Subquery, type SyncDriver, SyncEngine, SyncResult, SyncSession, type TableConstraint, UpdateBuilder, type UpdateNode, ValidationError, type WhereArg, type WhereInput, type WithRelations, type WritePatch, type WriteValues, activeRecord, and, avg, belongsTo, col, column, columnNamesOf, columnPropsOf, columnsOf, count, createEngine, createSyncEngine, dbColumn, del, detectDialect, fn, foreignKey, fromDict, getDialect, hasMany, insert, isCondition, isExpression, isSqlExpression, isSubquery, join, loadRelations, max, min, not, or, parse, parseDatabaseUrl, select, sql, stringify, sum, toAsyncDriver, toCondNode, toDict, toJSON, toSnakeCase, unique, update, val };
2399
+ export { ActiveRecord, type ActiveRecordManager, Agg, type AggregateTerm, type AsyncDriver, AsyncEngine, AsyncResult, AsyncSession, BaseDialect, BaseRepository, type BelongsTo, type ColRef, type ColType, Column, type ColumnFlags, type ColumnType, type ColumnTypeKind, type ColumnTypeMeta, type CompiledQuery, type CondNode, type Condition, type DefaultValue, DeleteBuilder, type DeleteNode, type Dialect, type DriverResult, type EngineOptions, type Executable, type ExprNode, Expression, type FkAction, type ForeignKeyOptions, type ForeignKeyRef, type HasMany, type InferInsert, type InferModel, InsertBuilder, type InsertNode, InvalidDatabaseUrl, JoinBuilder, type JoinClause, type JoinNode, type JoinOn, type JoinSelection, type JoinWhereInput, type LockClause, type LockOptions, Model, type ModelClass, MysqlDialect, type NameMap, type NamingStrategy, NoResultError, NodeSqliteDriver, type NoticeLogger, OPERATORS, type OnConflict, type OnConflictOptions, type OnConflictUpdateOptions, type Operator, type OperatorsFor, type OrderTerm, type PaginationFilter, type PaginationResult, Params, type ParsedDatabaseUrl, type PoolOptions, type PortableExpression, PostgresDialect, QueryExecutionError, type QueryLogger, type QueryNode, RecordNotFound, type Relation, type RelationValue, type ReservedAsyncDriver, type Returning, type RowOf, SelectBuilder, type SelectNode, type SortDirection, type Sources, type SqlExpression, SqliteDialect, type Subquery, type SyncDriver, SyncEngine, SyncResult, SyncSession, type TableConstraint, UpdateBuilder, type UpdateNode, ValidationError, type WhereArg, type WhereInput, type WithRelations, type WritePatch, type WriteValues, activeRecord, and, avg, belongsTo, col, column, columnNamesOf, columnPropsOf, columnsOf, count, createEngine, createSyncEngine, dbColumn, del, detectDialect, fn, foreignKey, fromDict, getDialect, hasMany, insert, isCondition, isExpression, isSqlExpression, isSubquery, join, loadRelations, max, min, not, or, parse, parseDatabaseUrl, select, sql, stringify, sum, toAsyncDriver, toCondNode, toDict, toJSON, toSnakeCase, unique, update, val };
package/dist/index.d.ts CHANGED
@@ -641,7 +641,8 @@ declare class InsertBuilder<Full, Ins, Ret = number> {
641
641
  * @param rows One row, or an array of rows.
642
642
  * @returns A builder carrying the rows.
643
643
  * @throws ValidationError When a value is not a column value the dialect can
644
- * bind (see the `sql` helpers for writing an expression instead).
644
+ * bind (see the `sql` helpers for writing an expression instead), or when the
645
+ * rows of a multi-row insert disagree about a column that has a default.
645
646
  */
646
647
  values(rows: WriteValues<Ins> | readonly WriteValues<Ins>[]): InsertBuilder<Full, Ins, Ret>;
647
648
  /**
@@ -1331,8 +1332,14 @@ declare class NodeSqliteDriver implements SyncDriver {
1331
1332
  */
1332
1333
  private readonly statements;
1333
1334
  constructor(database: any);
1334
- /** Open a `node:sqlite` database at the given path (or `:memory:`). */
1335
- static open(path: string): NodeSqliteDriver;
1335
+ /**
1336
+ * Open a `node:sqlite` database at the given path (or `:memory:`).
1337
+ *
1338
+ * @param path The database file, or `":memory:"`.
1339
+ * @param options Passed straight to `DatabaseSync` (`readOnly`, `timeout`, …).
1340
+ * @returns A driver over the open handle.
1341
+ */
1342
+ static open(path: string, options?: Readonly<Record<string, unknown>>): NodeSqliteDriver;
1336
1343
  /** Return the cached prepared statement for `sql`, preparing it on first use. */
1337
1344
  private prepare;
1338
1345
  execute(sql: string, params: readonly unknown[]): DriverResult;
@@ -1550,6 +1557,12 @@ interface PoolOptions {
1550
1557
  /** Give up acquiring a connection after this long (ms). */
1551
1558
  readonly connectTimeoutMs?: number;
1552
1559
  }
1560
+ /**
1561
+ * A server-side notice (a PostgreSQL `NOTICE`). The shape is the driver's own —
1562
+ * passed through untouched rather than normalized, since what is useful in it
1563
+ * differs per database.
1564
+ */
1565
+ type NoticeLogger = (notice: Record<string, unknown>) => void;
1553
1566
  /** Options shared by both engine flavors. */
1554
1567
  interface EngineOptions {
1555
1568
  /** Override the driver detected from the URL (e.g. `"better-sqlite3"`). */
@@ -1561,6 +1574,34 @@ interface EngineOptions {
1561
1574
  * query logging/tracing. Thrown errors are swallowed so it never breaks a query.
1562
1575
  */
1563
1576
  readonly onQuery?: QueryLogger;
1577
+ /**
1578
+ * Called for every server-side notice (`CREATE TABLE IF NOT EXISTS` on an
1579
+ * existing table, `DROP ... IF EXISTS` on a missing one, and so on).
1580
+ *
1581
+ * **Without this, notices are silenced.** postgres.js defaults to printing them
1582
+ * with `console.log`, which drops a nine-line object into the host service's
1583
+ * stdout in the middle of its structured log — on every boot, since a migration
1584
+ * runner is usually the first thing to run. Writing to the host's stdout is the
1585
+ * application's decision, not a library's, so the default is to say nothing and
1586
+ * let you route them:
1587
+ *
1588
+ * ```ts
1589
+ * createEngine(url, { onNotice: (n) => logger.debug({ pg: n }, "postgres notice") });
1590
+ * ```
1591
+ *
1592
+ * Thrown errors are swallowed, like `onQuery`.
1593
+ */
1594
+ readonly onNotice?: NoticeLogger;
1595
+ /**
1596
+ * Options passed straight to the underlying driver, applied **last** so they
1597
+ * win over everything this layer derives (`pool`, `onNotice`).
1598
+ *
1599
+ * The escape hatch for what the typed surface does not model and is not going
1600
+ * to — postgres.js `connection`/`types`/`transform`/`ssl`, mysql2's own
1601
+ * settings, `node:sqlite`'s `readOnly` — so a gap need not become a feature
1602
+ * request.
1603
+ */
1604
+ readonly driverOptions?: Readonly<Record<string, unknown>>;
1564
1605
  }
1565
1606
  /** A synchronous engine (SQLite only). */
1566
1607
  declare class SyncEngine {
@@ -2318,9 +2359,22 @@ type ColValue<Col> = Col extends Column<infer T, infer F> ? F extends {
2318
2359
  type HasDefault<Col> = Col extends Column<unknown, infer F> ? F extends {
2319
2360
  hasDefault: true;
2320
2361
  } ? true : false : false;
2321
- /** Keys of the model whose columns are optional on insert. */
2362
+ /** True when a column accepts NULL neither `notNull` nor a primary key. */
2363
+ type IsNullable<Col> = Col extends Column<unknown, infer F> ? F extends {
2364
+ notNull: true;
2365
+ } | {
2366
+ primaryKey: true;
2367
+ } ? false : true : false;
2368
+ /**
2369
+ * Keys of the model whose columns may be omitted on insert.
2370
+ *
2371
+ * A column is optional when it has a default **or** when it accepts NULL: SQL
2372
+ * applies `NULL` to an omitted column that declares no other default, so
2373
+ * requiring the caller to write `note: null` adds noise that reads like a
2374
+ * deliberate decision to blank the column. Passing `null` explicitly still works.
2375
+ */
2322
2376
  type OptionalInsertKeys<I> = {
2323
- [K in ColumnKeys<I>]: HasDefault<I[K]> extends true ? K : never;
2377
+ [K in ColumnKeys<I>]: HasDefault<I[K]> extends true ? K : IsNullable<I[K]> extends true ? K : never;
2324
2378
  }[ColumnKeys<I>];
2325
2379
  /**
2326
2380
  * Infer the SELECT row shape from a model class: every column field becomes its
@@ -2331,7 +2385,9 @@ type InferModel<C extends ModelClass> = {
2331
2385
  [K in ColumnKeys<InstanceType<C>>]: ColValue<InstanceType<C>[K]>;
2332
2386
  };
2333
2387
  /**
2334
- * Infer the INSERT shape: columns with a default (or PK) are optional; the rest
2388
+ * Infer the INSERT shape: a column is optional when it has a default (or is a PK)
2389
+ * **or** when it is nullable — matching SQL, where an omitted column with no
2390
+ * `DEFAULT` clause is written as `NULL`. Only `notNull` columns without a default
2335
2391
  * are required. Nullability is preserved on both sides.
2336
2392
  */
2337
2393
  type InferInsert<C extends ModelClass> = Simplify<{
@@ -2340,4 +2396,4 @@ type InferInsert<C extends ModelClass> = Simplify<{
2340
2396
  [K in Exclude<ColumnKeys<InstanceType<C>>, OptionalInsertKeys<InstanceType<C>>>]: ColValue<InstanceType<C>[K]>;
2341
2397
  }>;
2342
2398
 
2343
- export { ActiveRecord, type ActiveRecordManager, Agg, type AggregateTerm, type AsyncDriver, AsyncEngine, AsyncResult, AsyncSession, BaseDialect, BaseRepository, type BelongsTo, type ColRef, type ColType, Column, type ColumnFlags, type ColumnType, type ColumnTypeKind, type ColumnTypeMeta, type CompiledQuery, type CondNode, type Condition, type DefaultValue, DeleteBuilder, type DeleteNode, type Dialect, type DriverResult, type EngineOptions, type Executable, type ExprNode, Expression, type FkAction, type ForeignKeyOptions, type ForeignKeyRef, type HasMany, type InferInsert, type InferModel, InsertBuilder, type InsertNode, InvalidDatabaseUrl, JoinBuilder, type JoinClause, type JoinNode, type JoinOn, type JoinSelection, type JoinWhereInput, type LockClause, type LockOptions, Model, type ModelClass, MysqlDialect, type NameMap, type NamingStrategy, NoResultError, NodeSqliteDriver, OPERATORS, type OnConflict, type OnConflictOptions, type OnConflictUpdateOptions, type Operator, type OperatorsFor, type OrderTerm, type PaginationFilter, type PaginationResult, Params, type ParsedDatabaseUrl, type PoolOptions, type PortableExpression, PostgresDialect, QueryExecutionError, type QueryLogger, type QueryNode, RecordNotFound, type Relation, type RelationValue, type ReservedAsyncDriver, type Returning, type RowOf, SelectBuilder, type SelectNode, type SortDirection, type Sources, type SqlExpression, SqliteDialect, type Subquery, type SyncDriver, SyncEngine, SyncResult, SyncSession, type TableConstraint, UpdateBuilder, type UpdateNode, ValidationError, type WhereArg, type WhereInput, type WithRelations, type WritePatch, type WriteValues, activeRecord, and, avg, belongsTo, col, column, columnNamesOf, columnPropsOf, columnsOf, count, createEngine, createSyncEngine, dbColumn, del, detectDialect, fn, foreignKey, fromDict, getDialect, hasMany, insert, isCondition, isExpression, isSqlExpression, isSubquery, join, loadRelations, max, min, not, or, parse, parseDatabaseUrl, select, sql, stringify, sum, toAsyncDriver, toCondNode, toDict, toJSON, toSnakeCase, unique, update, val };
2399
+ export { ActiveRecord, type ActiveRecordManager, Agg, type AggregateTerm, type AsyncDriver, AsyncEngine, AsyncResult, AsyncSession, BaseDialect, BaseRepository, type BelongsTo, type ColRef, type ColType, Column, type ColumnFlags, type ColumnType, type ColumnTypeKind, type ColumnTypeMeta, type CompiledQuery, type CondNode, type Condition, type DefaultValue, DeleteBuilder, type DeleteNode, type Dialect, type DriverResult, type EngineOptions, type Executable, type ExprNode, Expression, type FkAction, type ForeignKeyOptions, type ForeignKeyRef, type HasMany, type InferInsert, type InferModel, InsertBuilder, type InsertNode, InvalidDatabaseUrl, JoinBuilder, type JoinClause, type JoinNode, type JoinOn, type JoinSelection, type JoinWhereInput, type LockClause, type LockOptions, Model, type ModelClass, MysqlDialect, type NameMap, type NamingStrategy, NoResultError, NodeSqliteDriver, type NoticeLogger, OPERATORS, type OnConflict, type OnConflictOptions, type OnConflictUpdateOptions, type Operator, type OperatorsFor, type OrderTerm, type PaginationFilter, type PaginationResult, Params, type ParsedDatabaseUrl, type PoolOptions, type PortableExpression, PostgresDialect, QueryExecutionError, type QueryLogger, type QueryNode, RecordNotFound, type Relation, type RelationValue, type ReservedAsyncDriver, type Returning, type RowOf, SelectBuilder, type SelectNode, type SortDirection, type Sources, type SqlExpression, SqliteDialect, type Subquery, type SyncDriver, SyncEngine, SyncResult, SyncSession, type TableConstraint, UpdateBuilder, type UpdateNode, ValidationError, type WhereArg, type WhereInput, type WithRelations, type WritePatch, type WriteValues, activeRecord, and, avg, belongsTo, col, column, columnNamesOf, columnPropsOf, columnsOf, count, createEngine, createSyncEngine, dbColumn, del, detectDialect, fn, foreignKey, fromDict, getDialect, hasMany, insert, isCondition, isExpression, isSqlExpression, isSubquery, join, loadRelations, max, min, not, or, parse, parseDatabaseUrl, select, sql, stringify, sum, toAsyncDriver, toCondNode, toDict, toJSON, toSnakeCase, unique, update, val };
package/dist/index.js CHANGED
@@ -1,3 +1,3 @@
1
- export { ActiveRecord, Agg, AsyncEngine, AsyncResult, AsyncSession, BaseDialect, BaseRepository, Column, DeleteBuilder, Expression, InsertBuilder, InvalidDatabaseUrl, JoinBuilder, Model, MysqlDialect, NoResultError, NodeSqliteDriver, OPERATORS, Params, PostgresDialect, QueryExecutionError, RecordNotFound, SelectBuilder, SqliteDialect, SyncEngine, SyncResult, SyncSession, UpdateBuilder, ValidationError, activeRecord, and, avg, belongsTo, col, column, columnNamesOf, columnPropsOf, columnsOf, count, createEngine, createSyncEngine, dbColumn, del, detectDialect, fn, foreignKey, fromDict, getDialect, hasMany, insert, isCondition, isExpression, isSqlExpression, isSubquery, join, loadRelations, max, min, not, or, parse, parseDatabaseUrl, select, sql, stringify, sum, toAsyncDriver, toCondNode, toDict, toJSON, toSnakeCase, unique, update, val } from './chunk-G7O5DCCC.js';
1
+ export { ActiveRecord, Agg, AsyncEngine, AsyncResult, AsyncSession, BaseDialect, BaseRepository, Column, DeleteBuilder, Expression, InsertBuilder, InvalidDatabaseUrl, JoinBuilder, Model, MysqlDialect, NoResultError, NodeSqliteDriver, OPERATORS, Params, PostgresDialect, QueryExecutionError, RecordNotFound, SelectBuilder, SqliteDialect, SyncEngine, SyncResult, SyncSession, UpdateBuilder, ValidationError, activeRecord, and, avg, belongsTo, col, column, columnNamesOf, columnPropsOf, columnsOf, count, createEngine, createSyncEngine, dbColumn, del, detectDialect, fn, foreignKey, fromDict, getDialect, hasMany, insert, isCondition, isExpression, isSqlExpression, isSubquery, join, loadRelations, max, min, not, or, parse, parseDatabaseUrl, select, sql, stringify, sum, toAsyncDriver, toCondNode, toDict, toJSON, toSnakeCase, unique, update, val } from './chunk-4AWUP7BM.js';
2
2
  //# sourceMappingURL=index.js.map
3
3
  //# sourceMappingURL=index.js.map