drizzle-orm 0.28.0 → 0.28.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/aws-data-api/pg/index.d.ts +4 -4
- package/aws-data-api/pg/migrator.d.ts +4 -4
- package/better-sqlite3/index.d.ts +5 -5
- package/better-sqlite3/migrator.d.ts +5 -5
- package/bun-sqlite/index.d.ts +5 -5
- package/bun-sqlite/migrator.d.ts +5 -5
- package/{column.d-9d2f4045.d.ts → column.d-04875079.d.ts} +2 -2
- package/d1/index.d.ts +5 -5
- package/d1/migrator.d.ts +5 -5
- package/{driver.d-ab0f126f.d.ts → driver.d-0f130b7c.d.ts} +2 -2
- package/{driver.d-c4dd56f7.d.ts → driver.d-2ad90781.d.ts} +2 -2
- package/{driver.d-20707624.d.ts → driver.d-42f77b47.d.ts} +2 -2
- package/{driver.d-eb654ed5.d.ts → driver.d-65958e7e.d.ts} +2 -2
- package/{driver.d-055d4782.d.ts → driver.d-8dc765e9.d.ts} +2 -2
- package/{driver.d-b8dd753f.d.ts → driver.d-ff7259fa.d.ts} +2 -2
- package/index.d.ts +6 -6
- package/knex/index.d.ts +1 -1
- package/kysely/index.d.ts +1 -1
- package/libsql/index.d.ts +5 -5
- package/libsql/migrator.d.ts +5 -5
- package/mysql-core/index.d.ts +6 -6
- package/mysql2/index.d.ts +4 -4
- package/mysql2/migrator.d.ts +4 -4
- package/neon-http/index.d.ts +4 -4
- package/neon-http/migrator.d.ts +4 -4
- package/neon-serverless/index.d.ts +4 -4
- package/neon-serverless/migrator.d.ts +4 -4
- package/node-postgres/index.d.ts +4 -4
- package/node-postgres/migrator.d.ts +4 -4
- package/package.json +1 -1
- package/pg-core/index.d.ts +6 -6
- package/planetscale-serverless/index.d.ts +4 -4
- package/planetscale-serverless/migrator.d.ts +4 -4
- package/postgres-js/index.d.ts +4 -4
- package/postgres-js/migrator.d.ts +4 -4
- package/{query-promise.d-bc96befc.d.ts → query-promise.d-31db3408.d.ts} +2 -2
- package/{select.types.d-d0a10728.d.ts → select.types.d-3ce070d1.d.ts} +3 -3
- package/{select.types.d-73209a67.d.ts → select.types.d-b0925107.d.ts} +3 -3
- package/{select.types.d-570dd25a.d.ts → select.types.d-df017dea.d.ts} +3 -3
- package/{select.types.d-a3c4c974.d.ts → select.types.d-f5caa4d6.d.ts} +1 -1
- package/sql-js/index.d.ts +5 -5
- package/sql-js/migrator.d.ts +5 -5
- package/sqlite-core/index.d.ts +6 -6
- package/sqlite-proxy/index.d.ts +6 -6
- package/sqlite-proxy/migrator.d.ts +5 -5
- package/vercel-postgres/index.d.ts +4 -4
- package/vercel-postgres/migrator.d.ts +4 -4
- package/version.cjs +1 -1
- package/version.d.ts +1 -1
- package/version.mjs +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { e as entityKind, W as QueryTypingsValue, L as Logger, Q as Query, a as SQL, D as DrizzleConfig } from '../../column.d-
|
|
2
|
-
import { G as PreparedQueryConfig, H as PreparedQuery, u as SelectedFieldsOrdered, K as PgSession, f as PgDialect, I as PgTransactionConfig, M as PgTransaction, N as QueryResultHKT, e as PgDatabase } from '../../select.types.d-
|
|
1
|
+
import { e as entityKind, W as QueryTypingsValue, L as Logger, Q as Query, a as SQL, D as DrizzleConfig } from '../../column.d-04875079.js';
|
|
2
|
+
import { G as PreparedQueryConfig, H as PreparedQuery, u as SelectedFieldsOrdered, K as PgSession, f as PgDialect, I as PgTransactionConfig, M as PgTransaction, N as QueryResultHKT, e as PgDatabase } from '../../select.types.d-3ce070d1.js';
|
|
3
3
|
import { RDSDataClient, ExecuteStatementCommandOutput } from '@aws-sdk/client-rds-data';
|
|
4
|
-
import { T as TablesRelationalConfig, R as RelationalSchemaConfig } from '../../query-promise.d-
|
|
5
|
-
import '../../select.types.d-
|
|
4
|
+
import { T as TablesRelationalConfig, R as RelationalSchemaConfig } from '../../query-promise.d-31db3408.js';
|
|
5
|
+
import '../../select.types.d-f5caa4d6.js';
|
|
6
6
|
import '../../migrator.js';
|
|
7
7
|
|
|
8
8
|
type AwsDataApiClient = RDSDataClient;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { MigrationConfig } from '../../migrator.js';
|
|
2
2
|
import { AwsDataApiPgDatabase } from './index.js';
|
|
3
|
-
import '../../column.d-
|
|
4
|
-
import '../../select.types.d-
|
|
5
|
-
import '../../select.types.d-
|
|
6
|
-
import '../../query-promise.d-
|
|
3
|
+
import '../../column.d-04875079.js';
|
|
4
|
+
import '../../select.types.d-3ce070d1.js';
|
|
5
|
+
import '../../select.types.d-f5caa4d6.js';
|
|
6
|
+
import '../../query-promise.d-31db3408.js';
|
|
7
7
|
import '@aws-sdk/client-rds-data';
|
|
8
8
|
|
|
9
9
|
declare function migrate<TSchema extends Record<string, unknown>>(db: AwsDataApiPgDatabase<TSchema>, config: string | MigrationConfig): Promise<void>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { B as BetterSQLite3Database, d as drizzle } from '../driver.d-
|
|
1
|
+
export { B as BetterSQLite3Database, d as drizzle } from '../driver.d-0f130b7c.js';
|
|
2
2
|
import { RunResult, Database, Statement } from 'better-sqlite3';
|
|
3
|
-
import { L as Logger, e as entityKind, Q as Query } from '../column.d-
|
|
4
|
-
import { T as TablesRelationalConfig, R as RelationalSchemaConfig } from '../query-promise.d-
|
|
5
|
-
import { S as SQLiteSession, a as SQLiteSyncDialect, b as SelectedFieldsOrdered, c as SQLiteTransactionConfig, d as SQLiteTransaction, P as PreparedQuery$1, e as PreparedQueryConfig$1 } from '../select.types.d-
|
|
6
|
-
import '../select.types.d-
|
|
3
|
+
import { L as Logger, e as entityKind, Q as Query } from '../column.d-04875079.js';
|
|
4
|
+
import { T as TablesRelationalConfig, R as RelationalSchemaConfig } from '../query-promise.d-31db3408.js';
|
|
5
|
+
import { S as SQLiteSession, a as SQLiteSyncDialect, b as SelectedFieldsOrdered, c as SQLiteTransactionConfig, d as SQLiteTransaction, P as PreparedQuery$1, e as PreparedQueryConfig$1 } from '../select.types.d-df017dea.js';
|
|
6
|
+
import '../select.types.d-f5caa4d6.js';
|
|
7
7
|
import '../migrator.js';
|
|
8
8
|
|
|
9
9
|
interface BetterSQLiteSessionOptions {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { MigrationConfig } from '../migrator.js';
|
|
2
|
-
import { B as BetterSQLite3Database } from '../driver.d-
|
|
2
|
+
import { B as BetterSQLite3Database } from '../driver.d-0f130b7c.js';
|
|
3
3
|
import 'better-sqlite3';
|
|
4
|
-
import '../select.types.d-
|
|
5
|
-
import '../column.d-
|
|
6
|
-
import '../select.types.d-
|
|
7
|
-
import '../query-promise.d-
|
|
4
|
+
import '../select.types.d-df017dea.js';
|
|
5
|
+
import '../column.d-04875079.js';
|
|
6
|
+
import '../select.types.d-f5caa4d6.js';
|
|
7
|
+
import '../query-promise.d-31db3408.js';
|
|
8
8
|
|
|
9
9
|
declare function migrate<TSchema extends Record<string, unknown>>(db: BetterSQLite3Database<TSchema>, config: string | MigrationConfig): void;
|
|
10
10
|
|
package/bun-sqlite/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/// <reference types="bun-types" />
|
|
2
|
-
export { B as BunSQLiteDatabase, d as drizzle } from '../driver.d-
|
|
2
|
+
export { B as BunSQLiteDatabase, d as drizzle } from '../driver.d-65958e7e.js';
|
|
3
3
|
import { Database, Statement as Statement$1 } from 'bun:sqlite';
|
|
4
|
-
import { L as Logger, e as entityKind, Q as Query } from '../column.d-
|
|
5
|
-
import { T as TablesRelationalConfig, R as RelationalSchemaConfig } from '../query-promise.d-
|
|
6
|
-
import { S as SQLiteSession, a as SQLiteSyncDialect, b as SelectedFieldsOrdered, c as SQLiteTransactionConfig, d as SQLiteTransaction, P as PreparedQuery$1, e as PreparedQueryConfig$1 } from '../select.types.d-
|
|
7
|
-
import '../select.types.d-
|
|
4
|
+
import { L as Logger, e as entityKind, Q as Query } from '../column.d-04875079.js';
|
|
5
|
+
import { T as TablesRelationalConfig, R as RelationalSchemaConfig } from '../query-promise.d-31db3408.js';
|
|
6
|
+
import { S as SQLiteSession, a as SQLiteSyncDialect, b as SelectedFieldsOrdered, c as SQLiteTransactionConfig, d as SQLiteTransaction, P as PreparedQuery$1, e as PreparedQueryConfig$1 } from '../select.types.d-df017dea.js';
|
|
7
|
+
import '../select.types.d-f5caa4d6.js';
|
|
8
8
|
import '../migrator.js';
|
|
9
9
|
|
|
10
10
|
interface SQLiteBunSessionOptions {
|
package/bun-sqlite/migrator.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { MigrationConfig } from '../migrator.js';
|
|
2
|
-
import { B as BunSQLiteDatabase } from '../driver.d-
|
|
2
|
+
import { B as BunSQLiteDatabase } from '../driver.d-65958e7e.js';
|
|
3
3
|
import 'bun:sqlite';
|
|
4
|
-
import '../select.types.d-
|
|
5
|
-
import '../column.d-
|
|
6
|
-
import '../select.types.d-
|
|
7
|
-
import '../query-promise.d-
|
|
4
|
+
import '../select.types.d-df017dea.js';
|
|
5
|
+
import '../column.d-04875079.js';
|
|
6
|
+
import '../select.types.d-f5caa4d6.js';
|
|
7
|
+
import '../query-promise.d-31db3408.js';
|
|
8
8
|
|
|
9
9
|
declare function migrate<TSchema extends Record<string, unknown>>(db: BunSQLiteDatabase<TSchema>, config: string | MigrationConfig): void;
|
|
10
10
|
|
|
@@ -1115,7 +1115,7 @@ type ColumnTypeConfig<T extends ColumnBaseConfig<ColumnDataType, string>, TTypeC
|
|
|
1115
1115
|
enumValues: T['enumValues'];
|
|
1116
1116
|
baseColumn: T extends {
|
|
1117
1117
|
baseColumn: infer U;
|
|
1118
|
-
} ? U :
|
|
1118
|
+
} ? U : unknown;
|
|
1119
1119
|
} & TTypeConfig;
|
|
1120
1120
|
type ColumnRuntimeConfig<TData, TRuntimeConfig extends object> = ColumnBuilderRuntimeConfig<TData, TRuntimeConfig>;
|
|
1121
1121
|
interface Column<T extends ColumnBaseConfig<ColumnDataType, string> = ColumnBaseConfig<ColumnDataType, string>, TRuntimeConfig extends object = object, TTypeConfig extends object = object> extends DriverValueMapper<T['data'], T['driverParam']>, SQLWrapper {
|
|
@@ -1148,4 +1148,4 @@ type InferColumnsDataTypes<TColumns extends Record<string, Column>> = {
|
|
|
1148
1148
|
[Key in keyof TColumns]: GetColumnData<TColumns[Key], 'query'>;
|
|
1149
1149
|
};
|
|
1150
1150
|
|
|
1151
|
-
export { $Type as $, AnyColumn as A, BuildColumn as B,
|
|
1151
|
+
export { $Type as $, AnyColumn as A, BuildColumn as B, Column as C, DrizzleConfig as D, SelectedFields as E, SelectedFieldsOrdered as F, GetColumnData as G, HasDefault as H, InferModel as I, FakePrimitiveParam as J, Chunk as K, Logger as L, MapColumnName as M, NotNull as N, OptionalKeyOnly as O, BuildQueryConfig as P, Query as Q, RequiredKeyOnly as R, Simplify as S, Table as T, UpdateColConfig as U, View as V, QueryTypingsValue as W, SQLWrapper as X, isSQLWrapper as Y, StringChunk as Z, GetDecoderResult as _, SQL as a, IndexConfig as a$, Name as a0, name as a1, DriverValueDecoder as a2, DriverValueEncoder as a3, isDriverValueEncoder as a4, noopDecoder as a5, noopEncoder as a6, DriverValueMapper as a7, noopMapper as a8, Param as a9, IfThenElse as aA, PromiseOf as aB, Writable as aC, getTableColumns as aD, ColumnsWithTable$3 as aE, KnownKeysOnly as aF, iife as aG, IsAny as aH, ViewBaseConfig as aI, ColumnsSelection as aJ, SQLiteColumnBuilder as aK, SQLiteColumn as aL, AnySQLiteTable as aM, Index as aN, ForeignKey as aO, Check as aP, PrimaryKey as aQ, UniqueConstraint as aR, SQLiteTable as aS, CheckBuilder as aT, check as aU, ReferenceConfig as aV, AnySQLiteColumn as aW, UpdateDeleteAction as aX, Reference as aY, ForeignKeyBuilder as aZ, foreignKey as a_, param as aa, SQLChunk as ab, sql as ac, Placeholder as ad, placeholder as ae, fillPlaceholders as af, SubqueryConfig as ag, Subquery as ah, WithSubquery as ai, SelectionProxyHandler as aj, TableConfig$3 as ak, UpdateTableConfig as al, isTable as am, AnyTable as an, getTableName as ao, InferModelFromColumns as ap, UpdateSet as aq, OneOrMany as ar, Update as as, SimplifyMappedType as at, ShallowRecord as au, Assume as av, Equal as aw, DrizzleTypeError as ax, ValueOrArray as ay, Or as az, ColumnBaseConfig as b, TableConfig$2 as b$, IndexColumn as b0, IndexBuilderOn as b1, IndexBuilder as b2, index as b3, uniqueIndex as b4, primaryKey as b5, PrimaryKeyBuilder as b6, SQLiteTableExtraConfig as b7, TableConfig as b8, SQLiteTableWithColumns as b9, Check$2 as bA, PrimaryKey$2 as bB, UniqueConstraint$2 as bC, CheckBuilder$2 as bD, check$2 as bE, ReferenceConfig$2 as bF, MySqlColumnWithAutoIncrementConfig as bG, UpdateDeleteAction$2 as bH, Reference$2 as bI, ForeignKeyBuilder$2 as bJ, AnyForeignKeyBuilder$1 as bK, GetColumnsTable as bL, foreignKey$2 as bM, IndexColumn$2 as bN, IndexBuilderOn$2 as bO, AnyIndexBuilder$1 as bP, IndexBuilder$2 as bQ, GetColumnsTableName$1 as bR, index$2 as bS, uniqueIndex$2 as bT, primaryKey$2 as bU, PrimaryKeyBuilder$2 as bV, unique$2 as bW, uniqueKeyName$2 as bX, UniqueConstraintBuilder$2 as bY, UniqueOnConstraintBuilder$2 as bZ, MySqlTableExtraConfig as b_, SQLiteTableFn as ba, sqliteTable as bb, sqliteTableCreator as bc, uniqueKeyName as bd, unique as be, UniqueConstraintBuilder as bf, UniqueOnConstraintBuilder as bg, AnyMySqlTable as bh, AnyMySqlColumn as bi, MySqlColumnBuilder as bj, MySqlTable as bk, MySqlTableWithColumns as bl, AnyPgTable as bm, AnyPgColumn as bn, PgColumn as bo, IndexColumn$1 as bp, PgColumnBuilder as bq, AnyPgColumnBuilder as br, PgTable as bs, PgTableWithColumns as bt, MySqlColumnBuilderWithAutoIncrement as bu, MySqlColumnWithAutoIncrement as bv, MySqlColumn as bw, MySqlTableFn as bx, Index$2 as by, ForeignKey$2 as bz, ColumnTypeConfig as c, mysqlTableWithSchema as c0, mysqlTable as c1, mysqlTableCreator as c2, PgTableFn as c3, Index$1 as c4, ForeignKey$1 as c5, Check$1 as c6, PrimaryKey$1 as c7, UniqueConstraint$1 as c8, CheckBuilder$1 as c9, check$1 as ca, PgArrayBuilder as cb, PgArray as cc, ReferenceConfig$1 as cd, UpdateDeleteAction$1 as ce, Reference$1 as cf, ForeignKeyBuilder$1 as cg, AnyForeignKeyBuilder as ch, foreignKey$1 as ci, IndexBuilderOn$1 as cj, AnyIndexBuilder as ck, IndexBuilder$1 as cl, GetColumnsTableName as cm, index$1 as cn, uniqueIndex$1 as co, primaryKey$1 as cp, PrimaryKeyBuilder$1 as cq, unique$1 as cr, uniqueKeyName$1 as cs, UniqueConstraintBuilder$1 as ct, UniqueOnConstraintBuilder$1 as cu, PgTableExtraConfig as cv, TableConfig$1 as cw, pgTable as cx, pgTableCreator as cy, ColumnRuntimeConfig as d, entityKind as e, InferColumnsDataTypes as f, ColumnDataType as g, Dialect as h, ColumnBuilderBaseConfig as i, MakeColumnConfig as j, ColumnBuilderTypeConfig as k, ColumnBuilderRuntimeConfig as l, ColumnBuilderExtraConfig as m, ColumnBuilder as n, BuildColumns as o, ChangeColumnTableName as p, hasOwnEntityKind as q, DrizzleEntity as r, DrizzleEntityClass as s, is as t, LogWriter as u, ConsoleLogWriter as v, DefaultLogger as w, NoopLogger as x, SelectedFieldsFlat as y, SelectedFieldsFlatFull as z };
|
package/d1/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/// <reference types="@cloudflare/workers-types" />
|
|
2
|
-
export { D as DrizzleD1Database, d as drizzle } from '../driver.d-
|
|
3
|
-
import { L as Logger, e as entityKind, Q as Query } from '../column.d-
|
|
4
|
-
import { T as TablesRelationalConfig, R as RelationalSchemaConfig } from '../query-promise.d-
|
|
5
|
-
import { S as SQLiteSession, f as SQLiteAsyncDialect, b as SelectedFieldsOrdered, c as SQLiteTransactionConfig, d as SQLiteTransaction, P as PreparedQuery$1, e as PreparedQueryConfig$1 } from '../select.types.d-
|
|
6
|
-
import '../select.types.d-
|
|
2
|
+
export { D as DrizzleD1Database, d as drizzle } from '../driver.d-8dc765e9.js';
|
|
3
|
+
import { L as Logger, e as entityKind, Q as Query } from '../column.d-04875079.js';
|
|
4
|
+
import { T as TablesRelationalConfig, R as RelationalSchemaConfig } from '../query-promise.d-31db3408.js';
|
|
5
|
+
import { S as SQLiteSession, f as SQLiteAsyncDialect, b as SelectedFieldsOrdered, c as SQLiteTransactionConfig, d as SQLiteTransaction, P as PreparedQuery$1, e as PreparedQueryConfig$1 } from '../select.types.d-df017dea.js';
|
|
6
|
+
import '../select.types.d-f5caa4d6.js';
|
|
7
7
|
import '../migrator.js';
|
|
8
8
|
|
|
9
9
|
interface SQLiteD1SessionOptions {
|
package/d1/migrator.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { MigrationConfig } from '../migrator.js';
|
|
2
|
-
import { D as DrizzleD1Database } from '../driver.d-
|
|
3
|
-
import '../select.types.d-
|
|
4
|
-
import '../column.d-
|
|
5
|
-
import '../select.types.d-
|
|
6
|
-
import '../query-promise.d-
|
|
2
|
+
import { D as DrizzleD1Database } from '../driver.d-8dc765e9.js';
|
|
3
|
+
import '../select.types.d-df017dea.js';
|
|
4
|
+
import '../column.d-04875079.js';
|
|
5
|
+
import '../select.types.d-f5caa4d6.js';
|
|
6
|
+
import '../query-promise.d-31db3408.js';
|
|
7
7
|
|
|
8
8
|
declare function migrate<TSchema extends Record<string, unknown>>(db: DrizzleD1Database<TSchema>, config: string | MigrationConfig): Promise<void>;
|
|
9
9
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { RunResult, Database } from 'better-sqlite3';
|
|
2
|
-
import { B as BaseSQLiteDatabase } from './select.types.d-
|
|
3
|
-
import { D as DrizzleConfig } from './column.d-
|
|
2
|
+
import { B as BaseSQLiteDatabase } from './select.types.d-df017dea.js';
|
|
3
|
+
import { D as DrizzleConfig } from './column.d-04875079.js';
|
|
4
4
|
|
|
5
5
|
type BetterSQLite3Database<TSchema extends Record<string, unknown> = Record<string, never>> = BaseSQLiteDatabase<'sync', RunResult, TSchema>;
|
|
6
6
|
declare function drizzle<TSchema extends Record<string, unknown> = Record<string, never>>(client: Database, config?: DrizzleConfig<TSchema>): BetterSQLite3Database<TSchema>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { B as BaseSQLiteDatabase } from './select.types.d-
|
|
2
|
-
import { D as DrizzleConfig } from './column.d-
|
|
1
|
+
import { B as BaseSQLiteDatabase } from './select.types.d-df017dea.js';
|
|
2
|
+
import { D as DrizzleConfig } from './column.d-04875079.js';
|
|
3
3
|
|
|
4
4
|
interface SqliteRemoteResult<T = unknown> {
|
|
5
5
|
rows?: T[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ResultSet, Client } from '@libsql/client';
|
|
2
|
-
import { B as BaseSQLiteDatabase } from './select.types.d-
|
|
3
|
-
import { D as DrizzleConfig } from './column.d-
|
|
2
|
+
import { B as BaseSQLiteDatabase } from './select.types.d-df017dea.js';
|
|
3
|
+
import { D as DrizzleConfig } from './column.d-04875079.js';
|
|
4
4
|
|
|
5
5
|
type LibSQLDatabase<TSchema extends Record<string, unknown> = Record<string, never>> = BaseSQLiteDatabase<'async', ResultSet, TSchema>;
|
|
6
6
|
declare function drizzle<TSchema extends Record<string, unknown> = Record<string, never>>(client: Client, config?: DrizzleConfig<TSchema>): LibSQLDatabase<TSchema>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="bun-types" />
|
|
2
2
|
import { Database } from 'bun:sqlite';
|
|
3
|
-
import { B as BaseSQLiteDatabase } from './select.types.d-
|
|
4
|
-
import { D as DrizzleConfig } from './column.d-
|
|
3
|
+
import { B as BaseSQLiteDatabase } from './select.types.d-df017dea.js';
|
|
4
|
+
import { D as DrizzleConfig } from './column.d-04875079.js';
|
|
5
5
|
|
|
6
6
|
type BunSQLiteDatabase<TSchema extends Record<string, unknown> = Record<string, never>> = BaseSQLiteDatabase<'sync', void, TSchema>;
|
|
7
7
|
declare function drizzle<TSchema extends Record<string, unknown> = Record<string, never>>(client: Database, config?: DrizzleConfig<TSchema>): BunSQLiteDatabase<TSchema>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="@cloudflare/workers-types" />
|
|
2
|
-
import { B as BaseSQLiteDatabase } from './select.types.d-
|
|
3
|
-
import { D as DrizzleConfig } from './column.d-
|
|
2
|
+
import { B as BaseSQLiteDatabase } from './select.types.d-df017dea.js';
|
|
3
|
+
import { D as DrizzleConfig } from './column.d-04875079.js';
|
|
4
4
|
|
|
5
5
|
type DrizzleD1Database<TSchema extends Record<string, unknown> = Record<string, never>> = BaseSQLiteDatabase<'async', D1Result, TSchema>;
|
|
6
6
|
declare function drizzle<TSchema extends Record<string, unknown> = Record<string, never>>(client: D1Database, config?: DrizzleConfig<TSchema>): DrizzleD1Database<TSchema>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Database } from 'sql.js';
|
|
2
|
-
import { B as BaseSQLiteDatabase } from './select.types.d-
|
|
3
|
-
import { D as DrizzleConfig } from './column.d-
|
|
2
|
+
import { B as BaseSQLiteDatabase } from './select.types.d-df017dea.js';
|
|
3
|
+
import { D as DrizzleConfig } from './column.d-04875079.js';
|
|
4
4
|
|
|
5
5
|
type SQLJsDatabase<TSchema extends Record<string, unknown> = Record<string, never>> = BaseSQLiteDatabase<'sync', void, TSchema>;
|
|
6
6
|
declare function drizzle<TSchema extends Record<string, unknown> = Record<string, never>>(client: Database, config?: DrizzleConfig<TSchema>): SQLJsDatabase<TSchema>;
|
package/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { $ as $Type, an as AnyTable, av as Assume, B as BuildColumn, o as BuildColumns, P as BuildQueryConfig, p as ChangeColumnTableName, K as Chunk,
|
|
3
|
-
import { a as Relation } from './query-promise.d-
|
|
4
|
-
export { B as BinaryOperator, V as BuildQueryResult, S as BuildRelationResult, a3 as BuildRelationalQueryResult, K as DBQueryConfig, C as ExtractObjectValues, D as ExtractRelationsFromTableExtraConfigSchema, E as ExtractTableRelationsFromSchema, N as ExtractTablesWithRelations, J as FindTableByDBName, M as Many, U as NonUndefinedKeysOnly, $ as NormalizedRelation, O as One, G as Operators, I as OrderByOperators, Q as QueryPromise, W as RelationConfig, R as RelationalSchemaConfig, z as Relations, P as ReturnTypeOrValue, L as TableRelationalConfig, a2 as TableRelationsHelpers, A as TableRelationsKeysOnly, T as TablesRelationalConfig, c as and, x as asc, r as between, b as bindIfParam, _ as createMany, Z as createOne, a1 as createTableRelationsHelpers, y as desc, e as eq, p as exists, X as extractTablesRelationalConfig, F as getOperators, H as getOrderByOperators, g as gt, f as gte, v as ilike, i as inArray, m as isNotNull, k as isNull, t as like, l as lt, h as lte, a4 as mapRelationalRow, n as ne, a0 as normalizeRelation, d as not, s as notBetween, q as notExists, w as notIlike, j as notInArray, u as notLike, o as or, Y as relations } from './query-promise.d-
|
|
1
|
+
import { C as Column, e as entityKind, T as Table, V as View, A as AnyColumn, a as SQL } from './column.d-04875079.js';
|
|
2
|
+
export { $ as $Type, an as AnyTable, av as Assume, B as BuildColumn, o as BuildColumns, P as BuildQueryConfig, p as ChangeColumnTableName, K as Chunk, b as ColumnBaseConfig, n as ColumnBuilder, i as ColumnBuilderBaseConfig, m as ColumnBuilderExtraConfig, l as ColumnBuilderRuntimeConfig, k as ColumnBuilderTypeConfig, g as ColumnDataType, d as ColumnRuntimeConfig, c as ColumnTypeConfig, aJ as ColumnsSelection, aE as ColumnsWithTable, v as ConsoleLogWriter, w as DefaultLogger, h as Dialect, a2 as DriverValueDecoder, a3 as DriverValueEncoder, a7 as DriverValueMapper, D as DrizzleConfig, r as DrizzleEntity, s as DrizzleEntityClass, ax as DrizzleTypeError, aw as Equal, J as FakePrimitiveParam, G as GetColumnData, _ as GetDecoderResult, H as HasDefault, aA as IfThenElse, f as InferColumnsDataTypes, I as InferModel, ap as InferModelFromColumns, aH as IsAny, aF as KnownKeysOnly, u as LogWriter, L as Logger, j as MakeColumnConfig, M as MapColumnName, a0 as Name, x as NoopLogger, N as NotNull, ar as OneOrMany, O as OptionalKeyOnly, az as Or, a9 as Param, ad as Placeholder, aB as PromiseOf, Q as Query, W as QueryTypingsValue, R as RequiredKeyOnly, ab as SQLChunk, X as SQLWrapper, E as SelectedFields, y as SelectedFieldsFlat, z as SelectedFieldsFlatFull, F as SelectedFieldsOrdered, aj as SelectionProxyHandler, au as ShallowRecord, S as Simplify, at as SimplifyMappedType, Z as StringChunk, ah as Subquery, ag as SubqueryConfig, ak as TableConfig, as as Update, U as UpdateColConfig, aq as UpdateSet, al as UpdateTableConfig, ay as ValueOrArray, aI as ViewBaseConfig, ai as WithSubquery, aC as Writable, af as fillPlaceholders, aD as getTableColumns, ao as getTableName, q as hasOwnEntityKind, aG as iife, t as is, a4 as isDriverValueEncoder, Y as isSQLWrapper, am as isTable, a1 as name, a5 as noopDecoder, a6 as noopEncoder, a8 as noopMapper, aa as param, ae as placeholder, ac as sql } from './column.d-04875079.js';
|
|
3
|
+
import { a as Relation } from './query-promise.d-31db3408.js';
|
|
4
|
+
export { B as BinaryOperator, V as BuildQueryResult, S as BuildRelationResult, a3 as BuildRelationalQueryResult, K as DBQueryConfig, C as ExtractObjectValues, D as ExtractRelationsFromTableExtraConfigSchema, E as ExtractTableRelationsFromSchema, N as ExtractTablesWithRelations, J as FindTableByDBName, M as Many, U as NonUndefinedKeysOnly, $ as NormalizedRelation, O as One, G as Operators, I as OrderByOperators, Q as QueryPromise, W as RelationConfig, R as RelationalSchemaConfig, z as Relations, P as ReturnTypeOrValue, L as TableRelationalConfig, a2 as TableRelationsHelpers, A as TableRelationsKeysOnly, T as TablesRelationalConfig, c as and, x as asc, r as between, b as bindIfParam, _ as createMany, Z as createOne, a1 as createTableRelationsHelpers, y as desc, e as eq, p as exists, X as extractTablesRelationalConfig, F as getOperators, H as getOrderByOperators, g as gt, f as gte, v as ilike, i as inArray, m as isNotNull, k as isNull, t as like, l as lt, h as lte, a4 as mapRelationalRow, n as ne, a0 as normalizeRelation, d as not, s as notBetween, q as notExists, w as notIlike, j as notInArray, u as notLike, o as or, Y as relations } from './query-promise.d-31db3408.js';
|
|
5
5
|
|
|
6
|
-
declare class ColumnAliasProxyHandler<TColumn extends
|
|
6
|
+
declare class ColumnAliasProxyHandler<TColumn extends Column> implements ProxyHandler<TColumn> {
|
|
7
7
|
private table;
|
|
8
8
|
static readonly [entityKind]: string;
|
|
9
9
|
constructor(table: Table | View);
|
|
@@ -38,4 +38,4 @@ declare class TransactionRollbackError extends DrizzleError {
|
|
|
38
38
|
constructor();
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
-
export { AnyColumn, ColumnAliasProxyHandler, DrizzleError, Relation, RelationTableAliasProxyHandler, SQL, Table, TableAliasProxyHandler, TransactionRollbackError, View, aliasedRelation, aliasedTable, aliasedTableColumn, entityKind, mapColumnsInAliasedSQLToAlias, mapColumnsInSQLToAlias };
|
|
41
|
+
export { AnyColumn, Column, ColumnAliasProxyHandler, DrizzleError, Relation, RelationTableAliasProxyHandler, SQL, Table, TableAliasProxyHandler, TransactionRollbackError, View, aliasedRelation, aliasedTable, aliasedTableColumn, entityKind, mapColumnsInAliasedSQLToAlias, mapColumnsInSQLToAlias };
|
package/knex/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Knex } from 'knex';
|
|
2
|
-
import { T as Table, I as InferModel } from '../column.d-
|
|
2
|
+
import { T as Table, I as InferModel } from '../column.d-04875079.js';
|
|
3
3
|
|
|
4
4
|
declare module 'knex/types/tables' {
|
|
5
5
|
type Knexify<T extends Table> = Knex.CompositeTableType<InferModel<T, 'select', {
|
package/kysely/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ColumnType } from 'kysely';
|
|
2
|
-
import { T as Table, S as Simplify, I as InferModel, M as MapColumnName } from '../column.d-
|
|
2
|
+
import { T as Table, S as Simplify, I as InferModel, M as MapColumnName } from '../column.d-04875079.js';
|
|
3
3
|
|
|
4
4
|
type Kyselify<T extends Table> = Simplify<{
|
|
5
5
|
[Key in keyof T['_']['columns'] & string as MapColumnName<Key, T['_']['columns'][Key], true>]: ColumnType<InferModel<T, 'select', {
|
package/libsql/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { L as LibSQLDatabase, d as drizzle } from '../driver.d-
|
|
1
|
+
export { L as LibSQLDatabase, d as drizzle } from '../driver.d-42f77b47.js';
|
|
2
2
|
import { ResultSet, Client, Transaction } from '@libsql/client';
|
|
3
|
-
import { L as Logger, e as entityKind, Q as Query, a as SQL } from '../column.d-
|
|
4
|
-
import { T as TablesRelationalConfig, R as RelationalSchemaConfig } from '../query-promise.d-
|
|
5
|
-
import { S as SQLiteSession, f as SQLiteAsyncDialect, b as SelectedFieldsOrdered, c as SQLiteTransactionConfig, d as SQLiteTransaction, P as PreparedQuery$1, e as PreparedQueryConfig$1 } from '../select.types.d-
|
|
6
|
-
import '../select.types.d-
|
|
3
|
+
import { L as Logger, e as entityKind, Q as Query, a as SQL } from '../column.d-04875079.js';
|
|
4
|
+
import { T as TablesRelationalConfig, R as RelationalSchemaConfig } from '../query-promise.d-31db3408.js';
|
|
5
|
+
import { S as SQLiteSession, f as SQLiteAsyncDialect, b as SelectedFieldsOrdered, c as SQLiteTransactionConfig, d as SQLiteTransaction, P as PreparedQuery$1, e as PreparedQueryConfig$1 } from '../select.types.d-df017dea.js';
|
|
6
|
+
import '../select.types.d-f5caa4d6.js';
|
|
7
7
|
import '../migrator.js';
|
|
8
8
|
|
|
9
9
|
interface LibSQLSessionOptions {
|
package/libsql/migrator.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { MigrationConfig } from '../migrator.js';
|
|
2
|
-
import { L as LibSQLDatabase } from '../driver.d-
|
|
2
|
+
import { L as LibSQLDatabase } from '../driver.d-42f77b47.js';
|
|
3
3
|
import '@libsql/client';
|
|
4
|
-
import '../select.types.d-
|
|
5
|
-
import '../column.d-
|
|
6
|
-
import '../select.types.d-
|
|
7
|
-
import '../query-promise.d-
|
|
4
|
+
import '../select.types.d-df017dea.js';
|
|
5
|
+
import '../column.d-04875079.js';
|
|
6
|
+
import '../select.types.d-f5caa4d6.js';
|
|
7
|
+
import '../query-promise.d-31db3408.js';
|
|
8
8
|
|
|
9
9
|
declare function migrate<TSchema extends Record<string, unknown>>(db: LibSQLDatabase<TSchema>, config: MigrationConfig): Promise<void>;
|
|
10
10
|
|
package/mysql-core/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { M as MySqlViewBase, B as BuildAliasTable, m as mysqlView, a as MySqlView } from '../select.types.d-
|
|
2
|
-
export { A as AnyMySqlInsertConfig, n as AnyMySqlSelect, J as Join, p as JoinFn, s as LockConfig, L as LockStrength, Y as ManualViewBuilder, D as Mode, b as MySqlDatabase, e as MySqlDelete, d as MySqlDeleteConfig, c as MySqlDialect, i as MySqlInsert, h as MySqlInsertBuilder, f as MySqlInsertConfig, g as MySqlInsertValue, l as MySqlSelect, j as MySqlSelectBuilder, o as MySqlSelectConfig, w as MySqlSelectHKT, t as MySqlSelectHKTBase, u as MySqlSelectKind, k as MySqlSelectQueryBuilder, v as MySqlSelectQueryBuilderHKT, N as MySqlSession, O as MySqlTransaction, K as MySqlTransactionConfig, C as MySqlUpdate, z as MySqlUpdateBuilder, x as MySqlUpdateConfig, y as MySqlUpdateSetSource, Z as MySqlViewConfig, _ as MySqlViewWithSelection, I as PreparedQuery, P as PreparedQueryConfig, G as PreparedQueryHKT, R as PreparedQueryHKTBase, H as PreparedQueryKind, Q as QueryBuilder, E as QueryResultHKT, F as QueryResultKind, q as SelectedFields, S as SelectedFieldsFlat, r as SelectedFieldsOrdered, T as SubqueryWithSelection, X as ViewBuilder, V as ViewBuilderConfig, U as ViewBuilderCore, W as WithSubqueryWithSelection } from '../select.types.d-
|
|
3
|
-
import { i as ColumnBuilderBaseConfig, bu as MySqlColumnBuilderWithAutoIncrement, e as entityKind,
|
|
4
|
-
export { bK as AnyForeignKeyBuilder, bP as AnyIndexBuilder, bi as AnyMySqlColumn, bD as CheckBuilder, bJ as ForeignKeyBuilder, bL as GetColumnsTable, bR as GetColumnsTableName, bQ as IndexBuilder, bO as IndexBuilderOn, bN as IndexColumn, bG as MySqlColumnWithAutoIncrementConfig, b_ as MySqlTableExtraConfig, bl as MySqlTableWithColumns, bV as PrimaryKeyBuilder, bI as Reference, bF as ReferenceConfig, b$ as TableConfig, bY as UniqueConstraintBuilder, bZ as UniqueOnConstraintBuilder, bH as UpdateDeleteAction, bE as check, bM as foreignKey, bS as index, c1 as mysqlTable, c2 as mysqlTableCreator, c0 as mysqlTableWithSchema, bU as primaryKey, bW as unique, bT as uniqueIndex, bX as uniqueKeyName } from '../column.d-
|
|
5
|
-
import '../select.types.d-
|
|
6
|
-
import '../query-promise.d-
|
|
1
|
+
import { M as MySqlViewBase, B as BuildAliasTable, m as mysqlView, a as MySqlView } from '../select.types.d-b0925107.js';
|
|
2
|
+
export { A as AnyMySqlInsertConfig, n as AnyMySqlSelect, J as Join, p as JoinFn, s as LockConfig, L as LockStrength, Y as ManualViewBuilder, D as Mode, b as MySqlDatabase, e as MySqlDelete, d as MySqlDeleteConfig, c as MySqlDialect, i as MySqlInsert, h as MySqlInsertBuilder, f as MySqlInsertConfig, g as MySqlInsertValue, l as MySqlSelect, j as MySqlSelectBuilder, o as MySqlSelectConfig, w as MySqlSelectHKT, t as MySqlSelectHKTBase, u as MySqlSelectKind, k as MySqlSelectQueryBuilder, v as MySqlSelectQueryBuilderHKT, N as MySqlSession, O as MySqlTransaction, K as MySqlTransactionConfig, C as MySqlUpdate, z as MySqlUpdateBuilder, x as MySqlUpdateConfig, y as MySqlUpdateSetSource, Z as MySqlViewConfig, _ as MySqlViewWithSelection, I as PreparedQuery, P as PreparedQueryConfig, G as PreparedQueryHKT, R as PreparedQueryHKTBase, H as PreparedQueryKind, Q as QueryBuilder, E as QueryResultHKT, F as QueryResultKind, q as SelectedFields, S as SelectedFieldsFlat, r as SelectedFieldsOrdered, T as SubqueryWithSelection, X as ViewBuilder, V as ViewBuilderConfig, U as ViewBuilderCore, W as WithSubqueryWithSelection } from '../select.types.d-b0925107.js';
|
|
3
|
+
import { i as ColumnBuilderBaseConfig, bu as MySqlColumnBuilderWithAutoIncrement, e as entityKind, b as ColumnBaseConfig, bv as MySqlColumnWithAutoIncrement, bj as MySqlColumnBuilder, bw as MySqlColumn, aC as Writable, bh as AnyMySqlTable, aw as Equal, a as SQL, N as NotNull, H as HasDefault, g as ColumnDataType, m as ColumnBuilderExtraConfig, bk as MySqlTable, bx as MySqlTableFn, by as Index, bz as ForeignKey, bA as Check, bB as PrimaryKey, bC as UniqueConstraint, E as SelectedFields, A as AnyColumn, T as Table, ak as TableConfig, C as Column } from '../column.d-04875079.js';
|
|
4
|
+
export { bK as AnyForeignKeyBuilder, bP as AnyIndexBuilder, bi as AnyMySqlColumn, bD as CheckBuilder, bJ as ForeignKeyBuilder, bL as GetColumnsTable, bR as GetColumnsTableName, bQ as IndexBuilder, bO as IndexBuilderOn, bN as IndexColumn, bG as MySqlColumnWithAutoIncrementConfig, b_ as MySqlTableExtraConfig, bl as MySqlTableWithColumns, bV as PrimaryKeyBuilder, bI as Reference, bF as ReferenceConfig, b$ as TableConfig, bY as UniqueConstraintBuilder, bZ as UniqueOnConstraintBuilder, bH as UpdateDeleteAction, bE as check, bM as foreignKey, bS as index, c1 as mysqlTable, c2 as mysqlTableCreator, c0 as mysqlTableWithSchema, bU as primaryKey, bW as unique, bT as uniqueIndex, bX as uniqueKeyName } from '../column.d-04875079.js';
|
|
5
|
+
import '../select.types.d-f5caa4d6.js';
|
|
6
|
+
import '../query-promise.d-31db3408.js';
|
|
7
7
|
import 'mysql2/promise';
|
|
8
8
|
import '../migrator.js';
|
|
9
9
|
|
package/mysql2/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Connection as Connection$1, Pool as Pool$1 } from 'mysql2';
|
|
2
|
-
import { e as entityKind, L as Logger, Q as Query, a as SQL, av as Assume, D as DrizzleConfig } from '../column.d-
|
|
3
|
-
import { P as PreparedQueryConfig, I as PreparedQuery, r as SelectedFieldsOrdered, D as Mode, N as MySqlSession, c as MySqlDialect, H as PreparedQueryKind, K as MySqlTransactionConfig, O as MySqlTransaction, E as QueryResultHKT, G as PreparedQueryHKT, b as MySqlDatabase } from '../select.types.d-
|
|
4
|
-
import { T as TablesRelationalConfig, R as RelationalSchemaConfig } from '../query-promise.d-
|
|
2
|
+
import { e as entityKind, L as Logger, Q as Query, a as SQL, av as Assume, D as DrizzleConfig } from '../column.d-04875079.js';
|
|
3
|
+
import { P as PreparedQueryConfig, I as PreparedQuery, r as SelectedFieldsOrdered, D as Mode, N as MySqlSession, c as MySqlDialect, H as PreparedQueryKind, K as MySqlTransactionConfig, O as MySqlTransaction, E as QueryResultHKT, G as PreparedQueryHKT, b as MySqlDatabase } from '../select.types.d-b0925107.js';
|
|
4
|
+
import { T as TablesRelationalConfig, R as RelationalSchemaConfig } from '../query-promise.d-31db3408.js';
|
|
5
5
|
import { Pool, Connection, ResultSetHeader, FieldPacket, RowDataPacket, OkPacket } from 'mysql2/promise';
|
|
6
|
-
import '../select.types.d-
|
|
6
|
+
import '../select.types.d-f5caa4d6.js';
|
|
7
7
|
import '../migrator.js';
|
|
8
8
|
|
|
9
9
|
type MySql2Client = Pool | Connection;
|
package/mysql2/migrator.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { MigrationConfig } from '../migrator.js';
|
|
2
2
|
import { MySql2Database } from './index.js';
|
|
3
3
|
import 'mysql2';
|
|
4
|
-
import '../column.d-
|
|
5
|
-
import '../select.types.d-
|
|
6
|
-
import '../select.types.d-
|
|
7
|
-
import '../query-promise.d-
|
|
4
|
+
import '../column.d-04875079.js';
|
|
5
|
+
import '../select.types.d-b0925107.js';
|
|
6
|
+
import '../select.types.d-f5caa4d6.js';
|
|
7
|
+
import '../query-promise.d-31db3408.js';
|
|
8
8
|
import 'mysql2/promise';
|
|
9
9
|
|
|
10
10
|
declare function migrate<TSchema extends Record<string, unknown>>(db: MySql2Database<TSchema>, config: MigrationConfig): Promise<void>;
|
package/neon-http/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { e as entityKind, L as Logger, Q as Query, av as Assume, D as DrizzleConfig } from '../column.d-
|
|
2
|
-
import { G as PreparedQueryConfig, H as PreparedQuery, u as SelectedFieldsOrdered, K as PgSession, f as PgDialect, I as PgTransactionConfig, M as PgTransaction, N as QueryResultHKT, e as PgDatabase } from '../select.types.d-
|
|
3
|
-
import { T as TablesRelationalConfig, R as RelationalSchemaConfig } from '../query-promise.d-
|
|
1
|
+
import { e as entityKind, L as Logger, Q as Query, av as Assume, D as DrizzleConfig } from '../column.d-04875079.js';
|
|
2
|
+
import { G as PreparedQueryConfig, H as PreparedQuery, u as SelectedFieldsOrdered, K as PgSession, f as PgDialect, I as PgTransactionConfig, M as PgTransaction, N as QueryResultHKT, e as PgDatabase } from '../select.types.d-3ce070d1.js';
|
|
3
|
+
import { T as TablesRelationalConfig, R as RelationalSchemaConfig } from '../query-promise.d-31db3408.js';
|
|
4
4
|
import { FullQueryResults, QueryRows } from '@neondatabase/serverless';
|
|
5
|
-
import '../select.types.d-
|
|
5
|
+
import '../select.types.d-f5caa4d6.js';
|
|
6
6
|
import '../migrator.js';
|
|
7
7
|
|
|
8
8
|
type NeonHttpClient = {
|
package/neon-http/migrator.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { MigrationConfig } from '../migrator.js';
|
|
2
2
|
import { NeonHttpDatabase } from './index.js';
|
|
3
|
-
import '../column.d-
|
|
4
|
-
import '../select.types.d-
|
|
5
|
-
import '../select.types.d-
|
|
6
|
-
import '../query-promise.d-
|
|
3
|
+
import '../column.d-04875079.js';
|
|
4
|
+
import '../select.types.d-3ce070d1.js';
|
|
5
|
+
import '../select.types.d-f5caa4d6.js';
|
|
6
|
+
import '../query-promise.d-31db3408.js';
|
|
7
7
|
import '@neondatabase/serverless';
|
|
8
8
|
|
|
9
9
|
/**
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { e as entityKind, L as Logger, Q as Query, av as Assume, D as DrizzleConfig } from '../column.d-
|
|
2
|
-
import { G as PreparedQueryConfig, H as PreparedQuery, u as SelectedFieldsOrdered, K as PgSession, f as PgDialect, I as PgTransactionConfig, M as PgTransaction, N as QueryResultHKT, e as PgDatabase } from '../select.types.d-
|
|
3
|
-
import { T as TablesRelationalConfig, R as RelationalSchemaConfig } from '../query-promise.d-
|
|
1
|
+
import { e as entityKind, L as Logger, Q as Query, av as Assume, D as DrizzleConfig } from '../column.d-04875079.js';
|
|
2
|
+
import { G as PreparedQueryConfig, H as PreparedQuery, u as SelectedFieldsOrdered, K as PgSession, f as PgDialect, I as PgTransactionConfig, M as PgTransaction, N as QueryResultHKT, e as PgDatabase } from '../select.types.d-3ce070d1.js';
|
|
3
|
+
import { T as TablesRelationalConfig, R as RelationalSchemaConfig } from '../query-promise.d-31db3408.js';
|
|
4
4
|
import { Pool, PoolClient, Client, QueryResult, QueryResultRow } from '@neondatabase/serverless';
|
|
5
|
-
import '../select.types.d-
|
|
5
|
+
import '../select.types.d-f5caa4d6.js';
|
|
6
6
|
import '../migrator.js';
|
|
7
7
|
|
|
8
8
|
type NeonClient = Pool | PoolClient | Client;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { MigrationConfig } from '../migrator.js';
|
|
2
2
|
import { NeonDatabase } from './index.js';
|
|
3
|
-
import '../column.d-
|
|
4
|
-
import '../select.types.d-
|
|
5
|
-
import '../select.types.d-
|
|
6
|
-
import '../query-promise.d-
|
|
3
|
+
import '../column.d-04875079.js';
|
|
4
|
+
import '../select.types.d-3ce070d1.js';
|
|
5
|
+
import '../select.types.d-f5caa4d6.js';
|
|
6
|
+
import '../query-promise.d-31db3408.js';
|
|
7
7
|
import '@neondatabase/serverless';
|
|
8
8
|
|
|
9
9
|
declare function migrate<TSchema extends Record<string, unknown>>(db: NeonDatabase<TSchema>, config: string | MigrationConfig): Promise<void>;
|
package/node-postgres/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { e as entityKind, L as Logger, Q as Query, av as Assume, D as DrizzleConfig } from '../column.d-
|
|
2
|
-
import { G as PreparedQueryConfig, H as PreparedQuery, u as SelectedFieldsOrdered, K as PgSession, f as PgDialect, I as PgTransactionConfig, M as PgTransaction, N as QueryResultHKT, e as PgDatabase } from '../select.types.d-
|
|
3
|
-
import { T as TablesRelationalConfig, R as RelationalSchemaConfig } from '../query-promise.d-
|
|
1
|
+
import { e as entityKind, L as Logger, Q as Query, av as Assume, D as DrizzleConfig } from '../column.d-04875079.js';
|
|
2
|
+
import { G as PreparedQueryConfig, H as PreparedQuery, u as SelectedFieldsOrdered, K as PgSession, f as PgDialect, I as PgTransactionConfig, M as PgTransaction, N as QueryResultHKT, e as PgDatabase } from '../select.types.d-3ce070d1.js';
|
|
3
|
+
import { T as TablesRelationalConfig, R as RelationalSchemaConfig } from '../query-promise.d-31db3408.js';
|
|
4
4
|
import pg, { PoolClient, Client, QueryResult, QueryResultRow } from 'pg';
|
|
5
|
-
import '../select.types.d-
|
|
5
|
+
import '../select.types.d-f5caa4d6.js';
|
|
6
6
|
import '../migrator.js';
|
|
7
7
|
|
|
8
8
|
type NodePgClient = pg.Pool | PoolClient | Client;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { MigrationConfig } from '../migrator.js';
|
|
2
2
|
import { NodePgDatabase } from './index.js';
|
|
3
|
-
import '../column.d-
|
|
4
|
-
import '../select.types.d-
|
|
5
|
-
import '../select.types.d-
|
|
6
|
-
import '../query-promise.d-
|
|
3
|
+
import '../column.d-04875079.js';
|
|
4
|
+
import '../select.types.d-3ce070d1.js';
|
|
5
|
+
import '../select.types.d-f5caa4d6.js';
|
|
6
|
+
import '../query-promise.d-31db3408.js';
|
|
7
7
|
import 'pg';
|
|
8
8
|
|
|
9
9
|
declare function migrate<TSchema extends Record<string, unknown>>(db: NodePgDatabase<TSchema>, config: string | MigrationConfig): Promise<void>;
|
package/package.json
CHANGED
package/pg-core/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { P as PgViewBase, B as BuildAliasTable, p as pgView, a as pgMaterializedView, b as PgView, V as ViewWithConfig, c as PgMaterializedView, d as PgMaterializedViewWithConfig } from '../select.types.d-
|
|
2
|
-
export { A as AnyPgSelect, T as DefaultViewBuilderCore, J as Join, s as JoinFn, v as LockConfig, L as LockStrength, _ as ManualMaterializedViewBuilder, X as ManualViewBuilder, Z as MaterializedViewBuilder, Y as MaterializedViewBuilderCore, e as PgDatabase, h as PgDelete, g as PgDeleteConfig, f as PgDialect, l as PgInsert, k as PgInsertBuilder, i as PgInsertConfig, j as PgInsertValue, a1 as PgMaterializedViewConfig, a2 as PgMaterializedViewWithSelection, m as PgRefreshMaterializedView, q as PgSelect, n as PgSelectBuilder, r as PgSelectConfig, z as PgSelectHKT, w as PgSelectHKTBase, x as PgSelectKind, o as PgSelectQueryBuilder, y as PgSelectQueryBuilderHKT, K as PgSession, M as PgTransaction, I as PgTransactionConfig, F as PgUpdate, E as PgUpdateBuilder, C as PgUpdateConfig, D as PgUpdateSetSource, $ as PgViewConfig, a0 as PgViewWithSelection, H as PreparedQuery, G as PreparedQueryConfig, Q as QueryBuilder, N as QueryResultHKT, O as QueryResultKind, t as SelectedFields, S as SelectedFieldsFlat, u as SelectedFieldsOrdered, R as SubqueryWithSelection, U as ViewBuilder, W as WithSubqueryWithSelection } from '../select.types.d-
|
|
3
|
-
import { i as ColumnBuilderBaseConfig, bq as PgColumnBuilder, e as entityKind,
|
|
4
|
-
export { ch as AnyForeignKeyBuilder, ck as AnyIndexBuilder, br as AnyPgColumnBuilder, c9 as CheckBuilder, cg as ForeignKeyBuilder, cm as GetColumnsTableName, cl as IndexBuilder, cj as IndexBuilderOn, bp as IndexColumn, cc as PgArray, cb as PgArrayBuilder, bs as PgTable, cv as PgTableExtraConfig, bt as PgTableWithColumns, cq as PrimaryKeyBuilder, cf as Reference, cd as ReferenceConfig, cw as TableConfig, ct as UniqueConstraintBuilder, cu as UniqueOnConstraintBuilder, ce as UpdateDeleteAction, ca as check, ci as foreignKey, cn as index, cx as pgTable, cy as pgTableCreator, cp as primaryKey, cr as unique, co as uniqueIndex, cs as uniqueKeyName } from '../column.d-
|
|
5
|
-
import '../select.types.d-
|
|
6
|
-
import '../query-promise.d-
|
|
1
|
+
import { P as PgViewBase, B as BuildAliasTable, p as pgView, a as pgMaterializedView, b as PgView, V as ViewWithConfig, c as PgMaterializedView, d as PgMaterializedViewWithConfig } from '../select.types.d-3ce070d1.js';
|
|
2
|
+
export { A as AnyPgSelect, T as DefaultViewBuilderCore, J as Join, s as JoinFn, v as LockConfig, L as LockStrength, _ as ManualMaterializedViewBuilder, X as ManualViewBuilder, Z as MaterializedViewBuilder, Y as MaterializedViewBuilderCore, e as PgDatabase, h as PgDelete, g as PgDeleteConfig, f as PgDialect, l as PgInsert, k as PgInsertBuilder, i as PgInsertConfig, j as PgInsertValue, a1 as PgMaterializedViewConfig, a2 as PgMaterializedViewWithSelection, m as PgRefreshMaterializedView, q as PgSelect, n as PgSelectBuilder, r as PgSelectConfig, z as PgSelectHKT, w as PgSelectHKTBase, x as PgSelectKind, o as PgSelectQueryBuilder, y as PgSelectQueryBuilderHKT, K as PgSession, M as PgTransaction, I as PgTransactionConfig, F as PgUpdate, E as PgUpdateBuilder, C as PgUpdateConfig, D as PgUpdateSetSource, $ as PgViewConfig, a0 as PgViewWithSelection, H as PreparedQuery, G as PreparedQueryConfig, Q as QueryBuilder, N as QueryResultHKT, O as QueryResultKind, t as SelectedFields, S as SelectedFieldsFlat, u as SelectedFieldsOrdered, R as SubqueryWithSelection, U as ViewBuilder, W as WithSubqueryWithSelection } from '../select.types.d-3ce070d1.js';
|
|
3
|
+
import { i as ColumnBuilderBaseConfig, bq as PgColumnBuilder, e as entityKind, b as ColumnBaseConfig, bo as PgColumn, N as NotNull, H as HasDefault, aC as Writable, bm as AnyPgTable, aw as Equal, a as SQL, g as ColumnDataType, c3 as PgTableFn, c4 as Index, c5 as ForeignKey, c6 as Check, c7 as PrimaryKey, c8 as UniqueConstraint, E as SelectedFields, A as AnyColumn, T as Table, ak as TableConfig, C as Column, bn as AnyPgColumn } from '../column.d-04875079.js';
|
|
4
|
+
export { ch as AnyForeignKeyBuilder, ck as AnyIndexBuilder, br as AnyPgColumnBuilder, c9 as CheckBuilder, cg as ForeignKeyBuilder, cm as GetColumnsTableName, cl as IndexBuilder, cj as IndexBuilderOn, bp as IndexColumn, cc as PgArray, cb as PgArrayBuilder, bs as PgTable, cv as PgTableExtraConfig, bt as PgTableWithColumns, cq as PrimaryKeyBuilder, cf as Reference, cd as ReferenceConfig, cw as TableConfig, ct as UniqueConstraintBuilder, cu as UniqueOnConstraintBuilder, ce as UpdateDeleteAction, ca as check, ci as foreignKey, cn as index, cx as pgTable, cy as pgTableCreator, cp as primaryKey, cr as unique, co as uniqueIndex, cs as uniqueKeyName } from '../column.d-04875079.js';
|
|
5
|
+
import '../select.types.d-f5caa4d6.js';
|
|
6
|
+
import '../query-promise.d-31db3408.js';
|
|
7
7
|
import '../migrator.js';
|
|
8
8
|
|
|
9
9
|
type PgBigInt53BuilderInitial<TName extends string> = PgBigInt53Builder<{
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Connection, Transaction, ExecutedQuery } from '@planetscale/database';
|
|
2
|
-
import { e as entityKind, L as Logger, Q as Query, a as SQL, av as Assume, D as DrizzleConfig } from '../column.d-
|
|
3
|
-
import { P as PreparedQueryConfig, I as PreparedQuery, r as SelectedFieldsOrdered, N as MySqlSession, c as MySqlDialect, O as MySqlTransaction, E as QueryResultHKT, G as PreparedQueryHKT, b as MySqlDatabase } from '../select.types.d-
|
|
4
|
-
import { T as TablesRelationalConfig, R as RelationalSchemaConfig } from '../query-promise.d-
|
|
5
|
-
import '../select.types.d-
|
|
2
|
+
import { e as entityKind, L as Logger, Q as Query, a as SQL, av as Assume, D as DrizzleConfig } from '../column.d-04875079.js';
|
|
3
|
+
import { P as PreparedQueryConfig, I as PreparedQuery, r as SelectedFieldsOrdered, N as MySqlSession, c as MySqlDialect, O as MySqlTransaction, E as QueryResultHKT, G as PreparedQueryHKT, b as MySqlDatabase } from '../select.types.d-b0925107.js';
|
|
4
|
+
import { T as TablesRelationalConfig, R as RelationalSchemaConfig } from '../query-promise.d-31db3408.js';
|
|
5
|
+
import '../select.types.d-f5caa4d6.js';
|
|
6
6
|
import 'mysql2/promise';
|
|
7
7
|
import '../migrator.js';
|
|
8
8
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { MigrationConfig } from '../migrator.js';
|
|
2
2
|
import { PlanetScaleDatabase } from './index.js';
|
|
3
3
|
import '@planetscale/database';
|
|
4
|
-
import '../column.d-
|
|
5
|
-
import '../select.types.d-
|
|
6
|
-
import '../select.types.d-
|
|
7
|
-
import '../query-promise.d-
|
|
4
|
+
import '../column.d-04875079.js';
|
|
5
|
+
import '../select.types.d-b0925107.js';
|
|
6
|
+
import '../select.types.d-f5caa4d6.js';
|
|
7
|
+
import '../query-promise.d-31db3408.js';
|
|
8
8
|
import 'mysql2/promise';
|
|
9
9
|
|
|
10
10
|
declare function migrate<TSchema extends Record<string, unknown>>(db: PlanetScaleDatabase<TSchema>, config: MigrationConfig): Promise<void>;
|
package/postgres-js/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Sql, RowList, Row, TransactionSql } from 'postgres';
|
|
2
|
-
import { G as PreparedQueryConfig, H as PreparedQuery, u as SelectedFieldsOrdered, K as PgSession, f as PgDialect, I as PgTransactionConfig, M as PgTransaction, N as QueryResultHKT, e as PgDatabase } from '../select.types.d-
|
|
3
|
-
import { e as entityKind, L as Logger, Q as Query, av as Assume, D as DrizzleConfig } from '../column.d-
|
|
4
|
-
import { T as TablesRelationalConfig, R as RelationalSchemaConfig } from '../query-promise.d-
|
|
5
|
-
import '../select.types.d-
|
|
2
|
+
import { G as PreparedQueryConfig, H as PreparedQuery, u as SelectedFieldsOrdered, K as PgSession, f as PgDialect, I as PgTransactionConfig, M as PgTransaction, N as QueryResultHKT, e as PgDatabase } from '../select.types.d-3ce070d1.js';
|
|
3
|
+
import { e as entityKind, L as Logger, Q as Query, av as Assume, D as DrizzleConfig } from '../column.d-04875079.js';
|
|
4
|
+
import { T as TablesRelationalConfig, R as RelationalSchemaConfig } from '../query-promise.d-31db3408.js';
|
|
5
|
+
import '../select.types.d-f5caa4d6.js';
|
|
6
6
|
import '../migrator.js';
|
|
7
7
|
|
|
8
8
|
declare class PostgresJsPreparedQuery<T extends PreparedQueryConfig> extends PreparedQuery<T> {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { MigrationConfig } from '../migrator.js';
|
|
2
2
|
import { PostgresJsDatabase } from './index.js';
|
|
3
3
|
import 'postgres';
|
|
4
|
-
import '../select.types.d-
|
|
5
|
-
import '../column.d-
|
|
6
|
-
import '../select.types.d-
|
|
7
|
-
import '../query-promise.d-
|
|
4
|
+
import '../select.types.d-3ce070d1.js';
|
|
5
|
+
import '../column.d-04875079.js';
|
|
6
|
+
import '../select.types.d-f5caa4d6.js';
|
|
7
|
+
import '../query-promise.d-31db3408.js';
|
|
8
8
|
|
|
9
9
|
declare function migrate<TSchema extends Record<string, unknown>>(db: PostgresJsDatabase<TSchema>, config: string | MigrationConfig): Promise<void>;
|
|
10
10
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { X as SQLWrapper, ab as SQLChunk,
|
|
1
|
+
import { X as SQLWrapper, ab as SQLChunk, C as Column, G as GetColumnData, a as SQL, ad as Placeholder, A as AnyColumn, T as Table, an as AnyTable, e as entityKind, ac as sql, S as Simplify, ay as ValueOrArray, av as Assume, aw as Equal, ap as InferModelFromColumns, aE as ColumnsWithTable, ak as TableConfig } from './column.d-04875079.js';
|
|
2
2
|
|
|
3
3
|
declare function bindIfParam(value: unknown, column: SQLWrapper): SQLChunk;
|
|
4
4
|
interface BinaryOperator {
|
|
@@ -526,7 +526,7 @@ type DBQueryConfig<TRelationType extends 'one' | 'many' = 'one' | 'many', TIsRoo
|
|
|
526
526
|
interface TableRelationalConfig {
|
|
527
527
|
tsName: string;
|
|
528
528
|
dbName: string;
|
|
529
|
-
columns: Record<string,
|
|
529
|
+
columns: Record<string, Column>;
|
|
530
530
|
relations: Record<string, Relation>;
|
|
531
531
|
primaryKey: AnyColumn[];
|
|
532
532
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { e as entityKind, bm as AnyPgTable, aF as KnownKeysOnly, Q as Query, aJ as ColumnsSelection, ah as Subquery, ai as WithSubquery, ax as DrizzleTypeError, bn as AnyPgColumn, X as SQLWrapper, a as SQL, aq as UpdateSet, a3 as DriverValueEncoder, W as QueryTypingsValue, bo as PgColumn, I as InferModel, G as GetColumnData, a9 as Param, ad as Placeholder, bp as IndexColumn, ay as ValueOrArray, bq as PgColumnBuilder, o as BuildColumns, br as AnyPgColumnBuilder, V as View, bs as PgTable, T as Table, bt as PgTableWithColumns, al as UpdateTableConfig, av as Assume, y as SelectedFieldsFlat$1, E as SelectedFields$1, F as SelectedFieldsOrdered$1 } from './column.d-
|
|
2
|
-
import { A as AddAliasToSelection, T as TypedQueryBuilder, f as SelectResultFields, G as GetSelectTableName, a as GetSelectTableSelection, S as SelectMode, J as JoinNullability, B as BuildSubquerySelection, b as SelectResult, c as JoinType, M as MapColumnsToTableAlias, d as AppendToResult, e as AppendToNullabilityMap } from './select.types.d-
|
|
3
|
-
import { T as TablesRelationalConfig, L as TableRelationalConfig, K as DBQueryConfig, V as BuildQueryResult, Q as QueryPromise, N as ExtractTablesWithRelations, R as RelationalSchemaConfig, a as Relation, a3 as BuildRelationalQueryResult } from './query-promise.d-
|
|
1
|
+
import { e as entityKind, bm as AnyPgTable, aF as KnownKeysOnly, Q as Query, aJ as ColumnsSelection, ah as Subquery, ai as WithSubquery, ax as DrizzleTypeError, bn as AnyPgColumn, X as SQLWrapper, a as SQL, aq as UpdateSet, a3 as DriverValueEncoder, W as QueryTypingsValue, bo as PgColumn, I as InferModel, G as GetColumnData, a9 as Param, ad as Placeholder, bp as IndexColumn, ay as ValueOrArray, bq as PgColumnBuilder, o as BuildColumns, br as AnyPgColumnBuilder, V as View, bs as PgTable, T as Table, bt as PgTableWithColumns, al as UpdateTableConfig, av as Assume, y as SelectedFieldsFlat$1, E as SelectedFields$1, F as SelectedFieldsOrdered$1 } from './column.d-04875079.js';
|
|
2
|
+
import { A as AddAliasToSelection, T as TypedQueryBuilder, f as SelectResultFields, G as GetSelectTableName, a as GetSelectTableSelection, S as SelectMode, J as JoinNullability, B as BuildSubquerySelection, b as SelectResult, c as JoinType, M as MapColumnsToTableAlias, d as AppendToResult, e as AppendToNullabilityMap } from './select.types.d-f5caa4d6.js';
|
|
3
|
+
import { T as TablesRelationalConfig, L as TableRelationalConfig, K as DBQueryConfig, V as BuildQueryResult, Q as QueryPromise, N as ExtractTablesWithRelations, R as RelationalSchemaConfig, a as Relation, a3 as BuildRelationalQueryResult } from './query-promise.d-31db3408.js';
|
|
4
4
|
import { MigrationMeta } from './migrator.js';
|
|
5
5
|
|
|
6
6
|
declare class RelationalQueryBuilder<TSchema extends TablesRelationalConfig, TFields extends TableRelationalConfig> {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as SQL, aq as UpdateSet, bh as AnyMySqlTable, G as GetColumnData, e as entityKind, X as SQLWrapper, Q as Query, av as Assume, a9 as Param, I as InferModel, ad as Placeholder, bi as AnyMySqlColumn, aF as KnownKeysOnly, aJ as ColumnsSelection, h as Dialect, ah as Subquery, ai as WithSubquery, ax as DrizzleTypeError, aw as Equal, ay as ValueOrArray, bj as MySqlColumnBuilder, o as BuildColumns, V as View, bk as MySqlTable, T as Table, bl as MySqlTableWithColumns, al as UpdateTableConfig, y as SelectedFieldsFlat$1, E as SelectedFields$1, F as SelectedFieldsOrdered$1 } from './column.d-
|
|
2
|
-
import { A as AddAliasToSelection, T as TypedQueryBuilder, G as GetSelectTableName, a as GetSelectTableSelection, S as SelectMode, J as JoinNullability, B as BuildSubquerySelection, b as SelectResult, c as JoinType, M as MapColumnsToTableAlias, d as AppendToResult, e as AppendToNullabilityMap } from './select.types.d-
|
|
3
|
-
import { Q as QueryPromise, T as TablesRelationalConfig, L as TableRelationalConfig, K as DBQueryConfig, a as Relation, a3 as BuildRelationalQueryResult, V as BuildQueryResult, N as ExtractTablesWithRelations, R as RelationalSchemaConfig } from './query-promise.d-
|
|
1
|
+
import { a as SQL, aq as UpdateSet, bh as AnyMySqlTable, G as GetColumnData, e as entityKind, X as SQLWrapper, Q as Query, av as Assume, a9 as Param, I as InferModel, ad as Placeholder, bi as AnyMySqlColumn, aF as KnownKeysOnly, aJ as ColumnsSelection, h as Dialect, ah as Subquery, ai as WithSubquery, ax as DrizzleTypeError, aw as Equal, ay as ValueOrArray, bj as MySqlColumnBuilder, o as BuildColumns, V as View, bk as MySqlTable, T as Table, bl as MySqlTableWithColumns, al as UpdateTableConfig, y as SelectedFieldsFlat$1, E as SelectedFields$1, F as SelectedFieldsOrdered$1 } from './column.d-04875079.js';
|
|
2
|
+
import { A as AddAliasToSelection, T as TypedQueryBuilder, G as GetSelectTableName, a as GetSelectTableSelection, S as SelectMode, J as JoinNullability, B as BuildSubquerySelection, b as SelectResult, c as JoinType, M as MapColumnsToTableAlias, d as AppendToResult, e as AppendToNullabilityMap } from './select.types.d-f5caa4d6.js';
|
|
3
|
+
import { Q as QueryPromise, T as TablesRelationalConfig, L as TableRelationalConfig, K as DBQueryConfig, a as Relation, a3 as BuildRelationalQueryResult, V as BuildQueryResult, N as ExtractTablesWithRelations, R as RelationalSchemaConfig } from './query-promise.d-31db3408.js';
|
|
4
4
|
import { ResultSetHeader } from 'mysql2/promise';
|
|
5
5
|
import { MigrationMeta, MigrationConfig } from './migrator.js';
|
|
6
6
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { e as entityKind, aM as AnySQLiteTable, aF as KnownKeysOnly, aJ as ColumnsSelection, ah as Subquery, ai as WithSubquery, ax as DrizzleTypeError, X as SQLWrapper, Q as Query, a as SQL, aq as UpdateSet, aS as SQLiteTable, aL as SQLiteColumn, I as InferModel, G as GetColumnData, a9 as Param, S as Simplify, ad as Placeholder, b0 as IndexColumn, ay as ValueOrArray, aK as SQLiteColumnBuilder, o as BuildColumns, V as View, T as Table, b9 as SQLiteTableWithColumns, al as UpdateTableConfig, av as Assume, y as SelectedFieldsFlat$1, E as SelectedFields$1, F as SelectedFieldsOrdered$1 } from './column.d-
|
|
2
|
-
import { A as AddAliasToSelection, T as TypedQueryBuilder, f as SelectResultFields, G as GetSelectTableName, a as GetSelectTableSelection, S as SelectMode, J as JoinNullability, B as BuildSubquerySelection, b as SelectResult, c as JoinType, M as MapColumnsToTableAlias, d as AppendToResult, e as AppendToNullabilityMap } from './select.types.d-
|
|
1
|
+
import { e as entityKind, aM as AnySQLiteTable, aF as KnownKeysOnly, aJ as ColumnsSelection, ah as Subquery, ai as WithSubquery, ax as DrizzleTypeError, X as SQLWrapper, Q as Query, a as SQL, aq as UpdateSet, aS as SQLiteTable, aL as SQLiteColumn, I as InferModel, G as GetColumnData, a9 as Param, S as Simplify, ad as Placeholder, b0 as IndexColumn, ay as ValueOrArray, aK as SQLiteColumnBuilder, o as BuildColumns, V as View, T as Table, b9 as SQLiteTableWithColumns, al as UpdateTableConfig, av as Assume, y as SelectedFieldsFlat$1, E as SelectedFields$1, F as SelectedFieldsOrdered$1 } from './column.d-04875079.js';
|
|
2
|
+
import { A as AddAliasToSelection, T as TypedQueryBuilder, f as SelectResultFields, G as GetSelectTableName, a as GetSelectTableSelection, S as SelectMode, J as JoinNullability, B as BuildSubquerySelection, b as SelectResult, c as JoinType, M as MapColumnsToTableAlias, d as AppendToResult, e as AppendToNullabilityMap } from './select.types.d-f5caa4d6.js';
|
|
3
3
|
import { MigrationMeta } from './migrator.js';
|
|
4
|
-
import { T as TablesRelationalConfig, L as TableRelationalConfig, K as DBQueryConfig, V as BuildQueryResult, Q as QueryPromise, N as ExtractTablesWithRelations, R as RelationalSchemaConfig, a as Relation, a3 as BuildRelationalQueryResult } from './query-promise.d-
|
|
4
|
+
import { T as TablesRelationalConfig, L as TableRelationalConfig, K as DBQueryConfig, V as BuildQueryResult, Q as QueryPromise, N as ExtractTablesWithRelations, R as RelationalSchemaConfig, a as Relation, a3 as BuildRelationalQueryResult } from './query-promise.d-31db3408.js';
|
|
5
5
|
|
|
6
6
|
declare class AsyncRelationalQueryBuilder<TFullSchema extends Record<string, unknown>, TSchema extends TablesRelationalConfig, TFields extends TableRelationalConfig> {
|
|
7
7
|
private fullSchema;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { X as SQLWrapper, e as entityKind, a as SQL, an as AnyTable,
|
|
1
|
+
import { X as SQLWrapper, e as entityKind, a as SQL, an as AnyTable, C as Column, A as AnyColumn, aJ as ColumnsSelection, h as Dialect, p as ChangeColumnTableName, av as Assume, S as Simplify, aH as IsAny, E as SelectedFields, T as Table, ax as DrizzleTypeError, ah as Subquery, V as View, aw as Equal, G as GetColumnData, U as UpdateColConfig } from './column.d-04875079.js';
|
|
2
2
|
|
|
3
3
|
declare abstract class TypedQueryBuilder<TSelection, TResult = unknown> implements SQLWrapper {
|
|
4
4
|
static readonly [entityKind]: string;
|
package/sql-js/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { S as SQLJsDatabase, d as drizzle } from '../driver.d-
|
|
1
|
+
export { S as SQLJsDatabase, d as drizzle } from '../driver.d-ff7259fa.js';
|
|
2
2
|
import { Database, Statement } from 'sql.js';
|
|
3
|
-
import { L as Logger, e as entityKind, Q as Query } from '../column.d-
|
|
4
|
-
import { T as TablesRelationalConfig, R as RelationalSchemaConfig } from '../query-promise.d-
|
|
5
|
-
import { S as SQLiteSession, a as SQLiteSyncDialect, b as SelectedFieldsOrdered, c as SQLiteTransactionConfig, d as SQLiteTransaction, P as PreparedQuery$1, e as PreparedQueryConfig$1 } from '../select.types.d-
|
|
6
|
-
import '../select.types.d-
|
|
3
|
+
import { L as Logger, e as entityKind, Q as Query } from '../column.d-04875079.js';
|
|
4
|
+
import { T as TablesRelationalConfig, R as RelationalSchemaConfig } from '../query-promise.d-31db3408.js';
|
|
5
|
+
import { S as SQLiteSession, a as SQLiteSyncDialect, b as SelectedFieldsOrdered, c as SQLiteTransactionConfig, d as SQLiteTransaction, P as PreparedQuery$1, e as PreparedQueryConfig$1 } from '../select.types.d-df017dea.js';
|
|
6
|
+
import '../select.types.d-f5caa4d6.js';
|
|
7
7
|
import '../migrator.js';
|
|
8
8
|
|
|
9
9
|
interface SQLJsSessionOptions {
|
package/sql-js/migrator.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { MigrationConfig } from '../migrator.js';
|
|
2
|
-
import { S as SQLJsDatabase } from '../driver.d-
|
|
2
|
+
import { S as SQLJsDatabase } from '../driver.d-ff7259fa.js';
|
|
3
3
|
import 'sql.js';
|
|
4
|
-
import '../select.types.d-
|
|
5
|
-
import '../column.d-
|
|
6
|
-
import '../select.types.d-
|
|
7
|
-
import '../query-promise.d-
|
|
4
|
+
import '../select.types.d-df017dea.js';
|
|
5
|
+
import '../column.d-04875079.js';
|
|
6
|
+
import '../select.types.d-f5caa4d6.js';
|
|
7
|
+
import '../query-promise.d-31db3408.js';
|
|
8
8
|
|
|
9
9
|
declare function migrate<TSchema extends Record<string, unknown>>(db: SQLJsDatabase<TSchema>, config: string | MigrationConfig): void;
|
|
10
10
|
|
package/sqlite-core/index.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
/// <reference types="bun-types" />
|
|
3
|
-
import { g as SQLiteView, h as SQLiteViewBase, i as BuildAliasTable } from '../select.types.d-
|
|
4
|
-
export { A as AnySQLiteSelect, B as BaseSQLiteDatabase, J as Join, u as JoinFn, M as ManualViewBuilder, P as PreparedQuery, e as PreparedQueryConfig, Q as QueryBuilder, R as Result, f as SQLiteAsyncDialect, l as SQLiteDelete, k as SQLiteDeleteConfig, j as SQLiteDialect, p as SQLiteInsert, o as SQLiteInsertBuilder, m as SQLiteInsertConfig, n as SQLiteInsertValue, s as SQLiteSelect, q as SQLiteSelectBuilder, t as SQLiteSelectConfig, C as SQLiteSelectHKT, x as SQLiteSelectHKTBase, y as SQLiteSelectKind, r as SQLiteSelectQueryBuilder, z as SQLiteSelectQueryBuilderHKT, S as SQLiteSession, a as SQLiteSyncDialect, d as SQLiteTransaction, c as SQLiteTransactionConfig, G as SQLiteUpdate, F as SQLiteUpdateBuilder, D as SQLiteUpdateConfig, E as SQLiteUpdateSetSource, L as SQLiteViewConfig, N as SQLiteViewWithSelection, w as SelectedFields, v as SelectedFieldsFlat, b as SelectedFieldsOrdered, H as SubqueryWithSelection, K as ViewBuilder, V as ViewBuilderConfig, I as ViewBuilderCore, W as WithSubqueryWithSelection, O as sqliteView, T as view } from '../select.types.d-
|
|
5
|
-
import { i as ColumnBuilderBaseConfig, aK as SQLiteColumnBuilder, e as entityKind,
|
|
6
|
-
export { aW as AnySQLiteColumn, aT as CheckBuilder, aZ as ForeignKeyBuilder, b2 as IndexBuilder, b1 as IndexBuilderOn, b0 as IndexColumn, a$ as IndexConfig, b6 as PrimaryKeyBuilder, aY as Reference, aV as ReferenceConfig, b7 as SQLiteTableExtraConfig, ba as SQLiteTableFn, b9 as SQLiteTableWithColumns, b8 as TableConfig, bf as UniqueConstraintBuilder, bg as UniqueOnConstraintBuilder, aX as UpdateDeleteAction, aU as check, a_ as foreignKey, b3 as index, b5 as primaryKey, bb as sqliteTable, bc as sqliteTableCreator, be as unique, b4 as uniqueIndex, bd as uniqueKeyName } from '../column.d-
|
|
7
|
-
import '../select.types.d-
|
|
3
|
+
import { g as SQLiteView, h as SQLiteViewBase, i as BuildAliasTable } from '../select.types.d-df017dea.js';
|
|
4
|
+
export { A as AnySQLiteSelect, B as BaseSQLiteDatabase, J as Join, u as JoinFn, M as ManualViewBuilder, P as PreparedQuery, e as PreparedQueryConfig, Q as QueryBuilder, R as Result, f as SQLiteAsyncDialect, l as SQLiteDelete, k as SQLiteDeleteConfig, j as SQLiteDialect, p as SQLiteInsert, o as SQLiteInsertBuilder, m as SQLiteInsertConfig, n as SQLiteInsertValue, s as SQLiteSelect, q as SQLiteSelectBuilder, t as SQLiteSelectConfig, C as SQLiteSelectHKT, x as SQLiteSelectHKTBase, y as SQLiteSelectKind, r as SQLiteSelectQueryBuilder, z as SQLiteSelectQueryBuilderHKT, S as SQLiteSession, a as SQLiteSyncDialect, d as SQLiteTransaction, c as SQLiteTransactionConfig, G as SQLiteUpdate, F as SQLiteUpdateBuilder, D as SQLiteUpdateConfig, E as SQLiteUpdateSetSource, L as SQLiteViewConfig, N as SQLiteViewWithSelection, w as SelectedFields, v as SelectedFieldsFlat, b as SelectedFieldsOrdered, H as SubqueryWithSelection, K as ViewBuilder, V as ViewBuilderConfig, I as ViewBuilderCore, W as WithSubqueryWithSelection, O as sqliteView, T as view } from '../select.types.d-df017dea.js';
|
|
5
|
+
import { i as ColumnBuilderBaseConfig, aK as SQLiteColumnBuilder, e as entityKind, b as ColumnBaseConfig, aL as SQLiteColumn, aw as Equal, aM as AnySQLiteTable, a as SQL, aN as Index, aO as ForeignKey, aP as Check, aQ as PrimaryKey, aR as UniqueConstraint, E as SelectedFields, A as AnyColumn, T as Table, ak as TableConfig, C as Column, g as ColumnDataType, H as HasDefault, N as NotNull, j as MakeColumnConfig, az as Or, aC as Writable, aS as SQLiteTable } from '../column.d-04875079.js';
|
|
6
|
+
export { aW as AnySQLiteColumn, aT as CheckBuilder, aZ as ForeignKeyBuilder, b2 as IndexBuilder, b1 as IndexBuilderOn, b0 as IndexColumn, a$ as IndexConfig, b6 as PrimaryKeyBuilder, aY as Reference, aV as ReferenceConfig, b7 as SQLiteTableExtraConfig, ba as SQLiteTableFn, b9 as SQLiteTableWithColumns, b8 as TableConfig, bf as UniqueConstraintBuilder, bg as UniqueOnConstraintBuilder, aX as UpdateDeleteAction, aU as check, a_ as foreignKey, b3 as index, b5 as primaryKey, bb as sqliteTable, bc as sqliteTableCreator, be as unique, b4 as uniqueIndex, bd as uniqueKeyName } from '../column.d-04875079.js';
|
|
7
|
+
import '../select.types.d-f5caa4d6.js';
|
|
8
8
|
import '../migrator.js';
|
|
9
|
-
import '../query-promise.d-
|
|
9
|
+
import '../query-promise.d-31db3408.js';
|
|
10
10
|
|
|
11
11
|
type BlobMode = 'buffer' | 'json' | 'bigint';
|
|
12
12
|
type SQLiteBigIntBuilderInitial<TName extends string> = SQLiteBigIntBuilder<{
|
package/sqlite-proxy/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { S as SqliteRemoteResult, R as RemoteCallback } from '../driver.d-
|
|
2
|
-
export { A as AsyncRemoteCallback, a as SqliteRemoteDatabase, d as drizzle } from '../driver.d-
|
|
3
|
-
import { L as Logger, e as entityKind, Q as Query } from '../column.d-
|
|
4
|
-
import { T as TablesRelationalConfig, R as RelationalSchemaConfig } from '../query-promise.d-
|
|
5
|
-
import { S as SQLiteSession, f as SQLiteAsyncDialect, b as SelectedFieldsOrdered, c as SQLiteTransactionConfig, d as SQLiteTransaction, P as PreparedQuery$1, e as PreparedQueryConfig$1 } from '../select.types.d-
|
|
6
|
-
import '../select.types.d-
|
|
1
|
+
import { S as SqliteRemoteResult, R as RemoteCallback } from '../driver.d-2ad90781.js';
|
|
2
|
+
export { A as AsyncRemoteCallback, a as SqliteRemoteDatabase, d as drizzle } from '../driver.d-2ad90781.js';
|
|
3
|
+
import { L as Logger, e as entityKind, Q as Query } from '../column.d-04875079.js';
|
|
4
|
+
import { T as TablesRelationalConfig, R as RelationalSchemaConfig } from '../query-promise.d-31db3408.js';
|
|
5
|
+
import { S as SQLiteSession, f as SQLiteAsyncDialect, b as SelectedFieldsOrdered, c as SQLiteTransactionConfig, d as SQLiteTransaction, P as PreparedQuery$1, e as PreparedQueryConfig$1 } from '../select.types.d-df017dea.js';
|
|
6
|
+
import '../select.types.d-f5caa4d6.js';
|
|
7
7
|
import '../migrator.js';
|
|
8
8
|
|
|
9
9
|
interface SQLiteRemoteSessionOptions {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { MigrationConfig } from '../migrator.js';
|
|
2
|
-
import { a as SqliteRemoteDatabase } from '../driver.d-
|
|
3
|
-
import '../select.types.d-
|
|
4
|
-
import '../column.d-
|
|
5
|
-
import '../select.types.d-
|
|
6
|
-
import '../query-promise.d-
|
|
2
|
+
import { a as SqliteRemoteDatabase } from '../driver.d-2ad90781.js';
|
|
3
|
+
import '../select.types.d-df017dea.js';
|
|
4
|
+
import '../column.d-04875079.js';
|
|
5
|
+
import '../select.types.d-f5caa4d6.js';
|
|
6
|
+
import '../query-promise.d-31db3408.js';
|
|
7
7
|
|
|
8
8
|
type ProxyMigrator = (migrationQueries: string[]) => Promise<void>;
|
|
9
9
|
declare function migrate<TSchema extends Record<string, unknown>>(db: SqliteRemoteDatabase<TSchema>, callback: ProxyMigrator, config: string | MigrationConfig): Promise<void>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { e as entityKind, L as Logger, Q as Query, av as Assume, D as DrizzleConfig } from '../column.d-
|
|
2
|
-
import { T as TablesRelationalConfig, R as RelationalSchemaConfig } from '../query-promise.d-
|
|
3
|
-
import { G as PreparedQueryConfig, H as PreparedQuery, u as SelectedFieldsOrdered, K as PgSession, f as PgDialect, I as PgTransactionConfig, M as PgTransaction, N as QueryResultHKT, e as PgDatabase } from '../select.types.d-
|
|
1
|
+
import { e as entityKind, L as Logger, Q as Query, av as Assume, D as DrizzleConfig } from '../column.d-04875079.js';
|
|
2
|
+
import { T as TablesRelationalConfig, R as RelationalSchemaConfig } from '../query-promise.d-31db3408.js';
|
|
3
|
+
import { G as PreparedQueryConfig, H as PreparedQuery, u as SelectedFieldsOrdered, K as PgSession, f as PgDialect, I as PgTransactionConfig, M as PgTransaction, N as QueryResultHKT, e as PgDatabase } from '../select.types.d-3ce070d1.js';
|
|
4
4
|
import { VercelPool, VercelClient, VercelPoolClient, QueryResult, QueryResultRow } from '@vercel/postgres';
|
|
5
|
-
import '../select.types.d-
|
|
5
|
+
import '../select.types.d-f5caa4d6.js';
|
|
6
6
|
import '../migrator.js';
|
|
7
7
|
|
|
8
8
|
type VercelPgClient = VercelPool | VercelClient | VercelPoolClient;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { MigrationConfig } from '../migrator.js';
|
|
2
2
|
import { VercelPgDatabase } from './index.js';
|
|
3
|
-
import '../column.d-
|
|
4
|
-
import '../query-promise.d-
|
|
5
|
-
import '../select.types.d-
|
|
6
|
-
import '../select.types.d-
|
|
3
|
+
import '../column.d-04875079.js';
|
|
4
|
+
import '../query-promise.d-31db3408.js';
|
|
5
|
+
import '../select.types.d-3ce070d1.js';
|
|
6
|
+
import '../select.types.d-f5caa4d6.js';
|
|
7
7
|
import '@vercel/postgres';
|
|
8
8
|
|
|
9
9
|
declare function migrate<TSchema extends Record<string, unknown>>(db: VercelPgDatabase<TSchema>, config: string | MigrationConfig): Promise<void>;
|
package/version.cjs
CHANGED
package/version.d.ts
CHANGED
package/version.mjs
CHANGED