drizzle-orm 0.28.2-02b522c → 0.28.2-07400cc
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.
Potentially problematic release.
This version of drizzle-orm might be problematic. Click here for more details.
- package/alias-3f5ac719.cjs.map +1 -1
- package/alias-7164ff43.mjs.map +1 -1
- package/aws-data-api/pg/index.d.ts +4 -4
- package/aws-data-api/pg/migrator.d.ts +4 -4
- package/better-sqlite3/index.cjs +5 -5
- package/better-sqlite3/index.cjs.map +1 -1
- package/better-sqlite3/index.d.ts +8 -7
- package/better-sqlite3/index.mjs +5 -5
- package/better-sqlite3/index.mjs.map +1 -1
- package/better-sqlite3/migrator.d.ts +5 -5
- package/bun-sqlite/index.cjs +5 -5
- package/bun-sqlite/index.cjs.map +1 -1
- package/bun-sqlite/index.d.ts +8 -7
- package/bun-sqlite/index.mjs +5 -5
- package/bun-sqlite/index.mjs.map +1 -1
- package/bun-sqlite/migrator.d.ts +5 -5
- package/{column.d-04875079.d.ts → column.d-0072c23e.d.ts} +2 -3
- package/d1/index.cjs +5 -5
- package/d1/index.cjs.map +1 -1
- package/d1/index.d.ts +8 -7
- package/d1/index.mjs +5 -5
- package/d1/index.mjs.map +1 -1
- package/d1/migrator.d.ts +5 -5
- package/{driver.d-07cde05a.d.ts → driver.d-09405d21.d.ts} +2 -2
- package/{driver.d-fb641fd3.d.ts → driver.d-1f0faf37.d.ts} +2 -2
- package/{driver.d-e1832789.d.ts → driver.d-437e1622.d.ts} +2 -2
- package/{driver.d-bcbe737b.d.ts → driver.d-6ee93d17.d.ts} +2 -2
- package/{driver.d-8b85e3b3.d.ts → driver.d-b45b047e.d.ts} +2 -2
- package/{driver.d-a60f3981.d.ts → driver.d-e85787bf.d.ts} +2 -2
- package/index.d.ts +4 -4
- package/knex/index.d.ts +1 -1
- package/kysely/index.d.ts +1 -1
- package/libsql/index.cjs +5 -5
- package/libsql/index.cjs.map +1 -1
- package/libsql/index.d.ts +8 -7
- package/libsql/index.mjs +5 -5
- package/libsql/index.mjs.map +1 -1
- 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-31db3408.d.ts → query-promise.d-49950161.d.ts} +1 -1
- package/{select.types.d-f5caa4d6.d.ts → select.types.d-1cf648f8.d.ts} +2 -2
- package/{select.types.d-b0925107.d.ts → select.types.d-339b50dc.d.ts} +3 -3
- package/{select.types.d-7da7fae0.d.ts → select.types.d-78623505.d.ts} +73 -71
- package/{select.types.d-3ce070d1.d.ts → select.types.d-7ea09ac5.d.ts} +3 -3
- package/{session-16f863cd.mjs → session-0a4e6e7d.mjs} +84 -64
- package/session-0a4e6e7d.mjs.map +1 -0
- package/{session-e9306785.cjs → session-cb0ac850.cjs} +99 -73
- package/session-cb0ac850.cjs.map +1 -0
- package/sql-js/index.cjs +7 -7
- package/sql-js/index.cjs.map +1 -1
- package/sql-js/index.d.ts +9 -8
- package/sql-js/index.mjs +7 -7
- package/sql-js/index.mjs.map +1 -1
- package/sql-js/migrator.d.ts +5 -5
- package/sqlite-core/index.cjs +3 -1
- package/sqlite-core/index.cjs.map +1 -1
- package/sqlite-core/index.d.ts +6 -6
- package/sqlite-core/index.mjs +2 -2
- package/sqlite-proxy/index.cjs +5 -5
- package/sqlite-proxy/index.cjs.map +1 -1
- package/sqlite-proxy/index.d.ts +9 -8
- package/sqlite-proxy/index.mjs +5 -5
- package/sqlite-proxy/index.mjs.map +1 -1
- 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/session-16f863cd.mjs.map +0 -1
- package/session-e9306785.cjs.map +0 -1
package/libsql/index.cjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var index = require('../index.cjs');
|
|
4
4
|
var alias = require('../alias-3f5ac719.cjs');
|
|
5
|
-
var session = require('../session-
|
|
5
|
+
var session = require('../session-cb0ac850.cjs');
|
|
6
6
|
|
|
7
7
|
var _a, _b, _c;
|
|
8
8
|
class LibSQLSession extends session.SQLiteSession {
|
|
@@ -14,8 +14,8 @@ class LibSQLSession extends session.SQLiteSession {
|
|
|
14
14
|
this.tx = tx;
|
|
15
15
|
this.logger = options.logger ?? new index.NoopLogger();
|
|
16
16
|
}
|
|
17
|
-
prepareQuery(query, fields, customResultMapper) {
|
|
18
|
-
return new PreparedQuery(this.client, query.sql, query.params, this.logger, fields, this.tx, customResultMapper);
|
|
17
|
+
prepareQuery(query, fields, executeMethod, customResultMapper) {
|
|
18
|
+
return new PreparedQuery(this.client, query.sql, query.params, this.logger, fields, this.tx, executeMethod, customResultMapper);
|
|
19
19
|
}
|
|
20
20
|
/*override */ batch(queries) {
|
|
21
21
|
const builtQueries = queries.map((query) => {
|
|
@@ -61,8 +61,8 @@ class LibSQLTransaction extends session.SQLiteTransaction {
|
|
|
61
61
|
_b = alias.entityKind;
|
|
62
62
|
LibSQLTransaction[_b] = 'LibSQLTransaction';
|
|
63
63
|
class PreparedQuery extends session.PreparedQuery {
|
|
64
|
-
constructor(client, queryString, params, logger, fields, tx, customResultMapper) {
|
|
65
|
-
super();
|
|
64
|
+
constructor(client, queryString, params, logger, fields, tx, executeMethod, customResultMapper) {
|
|
65
|
+
super('async', executeMethod);
|
|
66
66
|
this.client = client;
|
|
67
67
|
this.queryString = queryString;
|
|
68
68
|
this.params = params;
|
package/libsql/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":["../../src/libsql/session.ts","../../src/libsql/driver.ts"],"sourcesContent":[null,null],"names":["SQLiteSession","NoopLogger","entityKind","SQLiteTransaction","sql","PreparedQueryBase","fillPlaceholders","mapResultRow","SQLiteAsyncDialect","DefaultLogger","extractTablesRelationalConfig","createTableRelationsHelpers","session","BaseSQLiteDatabase"],"mappings":";;;;;;;
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../src/libsql/session.ts","../../src/libsql/driver.ts"],"sourcesContent":[null,null],"names":["SQLiteSession","NoopLogger","entityKind","SQLiteTransaction","sql","PreparedQueryBase","fillPlaceholders","mapResultRow","SQLiteAsyncDialect","DefaultLogger","extractTablesRelationalConfig","createTableRelationsHelpers","session","BaseSQLiteDatabase"],"mappings":";;;;;;;AAuBM,MAAO,aAGX,SAAQA,qBAAuD,CAAA;IAKhE,WACS,CAAA,MAAc,EACtB,OAA2B,EACnB,MAAmD,EACnD,OAA6B,EAC7B,EAA2B,EAAA;QAEnC,KAAK,CAAC,OAAO,CAAC,CAAC;QANP,IAAM,CAAA,MAAA,GAAN,MAAM,CAAQ;QAEd,IAAM,CAAA,MAAA,GAAN,MAAM,CAA6C;QACnD,IAAO,CAAA,OAAA,GAAP,OAAO,CAAsB;QAC7B,IAAE,CAAA,EAAA,GAAF,EAAE,CAAyB;QAGnC,IAAI,CAAC,MAAM,GAAG,OAAO,CAAC,MAAM,IAAI,IAAIC,gBAAU,EAAE,CAAC;KACjD;AAED,IAAA,YAAY,CACX,KAAY,EACZ,MAAyC,EACzC,aAAkC,EAClC,kBAAmD,EAAA;AAEnD,QAAA,OAAO,IAAI,aAAa,CACvB,IAAI,CAAC,MAAM,EACX,KAAK,CAAC,GAAG,EACT,KAAK,CAAC,MAAM,EACZ,IAAI,CAAC,MAAM,EACX,MAAM,EACN,IAAI,CAAC,EAAE,EACP,aAAa,EACb,kBAAkB,CAClB,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EAAE,CAAC;AAC7B,KAAA;AAAM,SAAA,IAAI,MAAM,CAAC,MAAM,KAAK,KAAK,EAAE;AACnC,QAAA,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC;AACvB,KAAA;AAED,IAAA,IAAI,MAAkE,CAAC;IACvE,IAAI,MAAM,CAAC,MAAM,EAAE;QAClB,MAAM,YAAY,GAAGC,mCAA6B,CACjD,MAAM,CAAC,MAAM,EACbC,iCAA2B,CAC3B,CAAC;AACF,QAAA,MAAM,GAAG;YACR,UAAU,EAAE,MAAM,CAAC,MAAM;YACzB,MAAM,EAAE,YAAY,CAAC,MAAM;YAC3B,aAAa,EAAE,YAAY,CAAC,aAAa;SACzC,CAAC;AACF,KAAA;AAED,IAAA,MAAMC,SAAO,GAAG,IAAI,aAAa,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,MAAM,EAAE,EAAE,SAAS,CAAC,CAAC;IAClF,OAAO,IAAIC,0BAAkB,CAAC,OAAO,EAAE,OAAO,EAAED,SAAO,EAAE,MAAM,CAA4B,CAAC;AAC7F;;;;;;;"}
|
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-e85787bf.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,
|
|
6
|
-
import '../select.types.d-
|
|
3
|
+
import { L as Logger, e as entityKind, Q as Query, a as SQL } from '../column.d-0072c23e.js';
|
|
4
|
+
import { T as TablesRelationalConfig, R as RelationalSchemaConfig } from '../query-promise.d-49950161.js';
|
|
5
|
+
import { S as SQLiteSession, g as SQLiteAsyncDialect, b as SelectedFieldsOrdered, c as SQLiteExecuteMethod, d as SQLiteTransactionConfig, e as SQLiteTransaction, P as PreparedQuery$1, f as PreparedQueryConfig$1 } from '../select.types.d-78623505.js';
|
|
6
|
+
import '../select.types.d-1cf648f8.js';
|
|
7
7
|
import '../migrator.js';
|
|
8
8
|
|
|
9
9
|
interface LibSQLSessionOptions {
|
|
@@ -18,7 +18,7 @@ declare class LibSQLSession<TFullSchema extends Record<string, unknown>, TSchema
|
|
|
18
18
|
static readonly [entityKind]: string;
|
|
19
19
|
private logger;
|
|
20
20
|
constructor(client: Client, dialect: SQLiteAsyncDialect, schema: RelationalSchemaConfig<TSchema> | undefined, options: LibSQLSessionOptions, tx: Transaction | undefined);
|
|
21
|
-
prepareQuery<T extends Omit<PreparedQueryConfig, 'run'>>(query: Query, fields: SelectedFieldsOrdered, customResultMapper?: (rows: unknown[][]) => unknown): PreparedQuery<T>;
|
|
21
|
+
prepareQuery<T extends Omit<PreparedQueryConfig, 'run'>>(query: Query, fields: SelectedFieldsOrdered | undefined, executeMethod: SQLiteExecuteMethod, customResultMapper?: (rows: unknown[][]) => unknown): PreparedQuery<T>;
|
|
22
22
|
batch(queries: SQL[]): Promise<ResultSet[]>;
|
|
23
23
|
transaction<T>(transaction: (db: LibSQLTransaction<TFullSchema, TSchema>) => T | Promise<T>, _config?: SQLiteTransactionConfig): Promise<T>;
|
|
24
24
|
}
|
|
@@ -32,6 +32,7 @@ declare class PreparedQuery<T extends PreparedQueryConfig = PreparedQueryConfig>
|
|
|
32
32
|
all: T['all'];
|
|
33
33
|
get: T['get'];
|
|
34
34
|
values: T['values'];
|
|
35
|
+
execute: T['execute'];
|
|
35
36
|
}> {
|
|
36
37
|
private client;
|
|
37
38
|
private queryString;
|
|
@@ -41,7 +42,7 @@ declare class PreparedQuery<T extends PreparedQueryConfig = PreparedQueryConfig>
|
|
|
41
42
|
private tx;
|
|
42
43
|
private customResultMapper?;
|
|
43
44
|
static readonly [entityKind]: string;
|
|
44
|
-
constructor(client: Client, queryString: string, params: unknown[], logger: Logger, fields: SelectedFieldsOrdered | undefined, tx: Transaction | undefined, customResultMapper?: ((rows: unknown[][], mapColumnValue?: ((value: unknown) => unknown) | undefined) => unknown) | undefined);
|
|
45
|
+
constructor(client: Client, queryString: string, params: unknown[], logger: Logger, fields: SelectedFieldsOrdered | undefined, tx: Transaction | undefined, executeMethod: SQLiteExecuteMethod, customResultMapper?: ((rows: unknown[][], mapColumnValue?: ((value: unknown) => unknown) | undefined) => unknown) | undefined);
|
|
45
46
|
run(placeholderValues?: Record<string, unknown>): Promise<ResultSet>;
|
|
46
47
|
all(placeholderValues?: Record<string, unknown>): Promise<T['all']>;
|
|
47
48
|
get(placeholderValues?: Record<string, unknown>): Promise<T['get']>;
|
package/libsql/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { NoopLogger, DefaultLogger } from '../index.mjs';
|
|
2
2
|
import { e as entityKind, s as sql, f as fillPlaceholders, m as mapResultRow, a as extractTablesRelationalConfig, c as createTableRelationsHelpers } from '../alias-7164ff43.mjs';
|
|
3
|
-
import { S as SQLiteSession, a as SQLiteTransaction, P as PreparedQuery$1, B as BaseSQLiteDatabase, c as SQLiteAsyncDialect } from '../session-
|
|
3
|
+
import { S as SQLiteSession, a as SQLiteTransaction, P as PreparedQuery$1, B as BaseSQLiteDatabase, c as SQLiteAsyncDialect } from '../session-0a4e6e7d.mjs';
|
|
4
4
|
|
|
5
5
|
class LibSQLSession extends SQLiteSession {
|
|
6
6
|
client;
|
|
@@ -17,8 +17,8 @@ class LibSQLSession extends SQLiteSession {
|
|
|
17
17
|
this.tx = tx;
|
|
18
18
|
this.logger = options.logger ?? new NoopLogger();
|
|
19
19
|
}
|
|
20
|
-
prepareQuery(query, fields, customResultMapper) {
|
|
21
|
-
return new PreparedQuery(this.client, query.sql, query.params, this.logger, fields, this.tx, customResultMapper);
|
|
20
|
+
prepareQuery(query, fields, executeMethod, customResultMapper) {
|
|
21
|
+
return new PreparedQuery(this.client, query.sql, query.params, this.logger, fields, this.tx, executeMethod, customResultMapper);
|
|
22
22
|
}
|
|
23
23
|
/*override */ batch(queries) {
|
|
24
24
|
const builtQueries = queries.map((query) => {
|
|
@@ -69,8 +69,8 @@ class PreparedQuery extends PreparedQuery$1 {
|
|
|
69
69
|
tx;
|
|
70
70
|
customResultMapper;
|
|
71
71
|
static [entityKind] = 'LibSQLPreparedQuery';
|
|
72
|
-
constructor(client, queryString, params, logger, fields, tx, customResultMapper) {
|
|
73
|
-
super();
|
|
72
|
+
constructor(client, queryString, params, logger, fields, tx, executeMethod, customResultMapper) {
|
|
73
|
+
super('async', executeMethod);
|
|
74
74
|
this.client = client;
|
|
75
75
|
this.queryString = queryString;
|
|
76
76
|
this.params = params;
|
package/libsql/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":["../../src/libsql/session.ts","../../src/libsql/driver.ts"],"sourcesContent":[null,null],"names":["PreparedQueryBase"],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../src/libsql/session.ts","../../src/libsql/driver.ts"],"sourcesContent":[null,null],"names":["PreparedQueryBase"],"mappings":";;;;AAuBM,MAAO,aAGX,SAAQ,aAAuD,CAAA;AAMvD,IAAA,MAAA,CAAA;AAEA,IAAA,MAAA,CAAA;AACA,IAAA,OAAA,CAAA;AACA,IAAA,EAAA,CAAA;AATT,IAAA,QAAiB,UAAU,IAAY,eAAe,CAAC;AAE/C,IAAA,MAAM,CAAS;IAEvB,WACS,CAAA,MAAc,EACtB,OAA2B,EACnB,MAAmD,EACnD,OAA6B,EAC7B,EAA2B,EAAA;QAEnC,KAAK,CAAC,OAAO,CAAC,CAAC;QANP,IAAM,CAAA,MAAA,GAAN,MAAM,CAAQ;QAEd,IAAM,CAAA,MAAA,GAAN,MAAM,CAA6C;QACnD,IAAO,CAAA,OAAA,GAAP,OAAO,CAAsB;QAC7B,IAAE,CAAA,EAAA,GAAF,EAAE,CAAyB;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C,KAAK,CAAC,CAAC;AACvC,SAAA;AACD,QAAA,MAAM,IAAI,KAAK,CAAC,qFAAqF,CAAC,CAAC;AACvG,KAAA;AACD,IAAA,OAAO,KAAK,CAAC;AACd;;SC3MgB,OAAO,CAErB,MAAc,EAAE,SAAiC,EAAE,EAAA;AACpD,IAAA,MAAM,OAAO,GAAG,IAAI,kBAAkB,EAAE,CAAC;AACzC,IAAA,IAAI,MAAM,CAAC;AACX,IAAA,IAAI,MAAM,CAAC,MAAM,KAAK,IAAI,EAAE;AAC3B,QAAA,MAAM,GAAG,IAAI,aAAa,EAAE,CAAC;AAC7B,KAAA;AAAM,SAAA,IAAI,MAAM,CAAC,MAAM,KAAK,KAAK,EAAE;AACnC,QAAA,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC;AACvB,KAAA;AAED,IAAA,IAAI,MAAkE,CAAC;IACvE,IAAI,MAAM,CAAC,MAAM,EAAE;QAClB,MAAM,YAAY,GAAG,6BAA6B,CACjD,MAAM,CAAC,MAAM,EACb,2BAA2B,CAC3B,CAAC;AACF,QAAA,MAAM,GAAG;YACR,UAAU,EAAE,MAAM,CAAC,MAAM;YACzB,MAAM,EAAE,YAAY,CAAC,MAAM;YAC3B,aAAa,EAAE,YAAY,CAAC,aAAa;SACzC,CAAC;AACF,KAAA;AAED,IAAA,MAAM,OAAO,GAAG,IAAI,aAAa,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,MAAM,EAAE,EAAE,SAAS,CAAC,CAAC;IAClF,OAAO,IAAI,kBAAkB,CAAC,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,CAA4B,CAAC;AAC7F;;;;"}
|
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-e85787bf.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-78623505.js';
|
|
5
|
+
import '../column.d-0072c23e.js';
|
|
6
|
+
import '../select.types.d-1cf648f8.js';
|
|
7
|
+
import '../query-promise.d-49950161.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, 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-
|
|
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-339b50dc.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-339b50dc.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-0072c23e.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-0072c23e.js';
|
|
5
|
+
import '../select.types.d-1cf648f8.js';
|
|
6
|
+
import '../query-promise.d-49950161.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-0072c23e.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-339b50dc.js';
|
|
4
|
+
import { T as TablesRelationalConfig, R as RelationalSchemaConfig } from '../query-promise.d-49950161.js';
|
|
5
5
|
import { Pool, Connection, ResultSetHeader, FieldPacket, RowDataPacket, OkPacket } from 'mysql2/promise';
|
|
6
|
-
import '../select.types.d-
|
|
6
|
+
import '../select.types.d-1cf648f8.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-0072c23e.js';
|
|
5
|
+
import '../select.types.d-339b50dc.js';
|
|
6
|
+
import '../select.types.d-1cf648f8.js';
|
|
7
|
+
import '../query-promise.d-49950161.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-0072c23e.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-7ea09ac5.js';
|
|
3
|
+
import { T as TablesRelationalConfig, R as RelationalSchemaConfig } from '../query-promise.d-49950161.js';
|
|
4
4
|
import { FullQueryResults, QueryRows } from '@neondatabase/serverless';
|
|
5
|
-
import '../select.types.d-
|
|
5
|
+
import '../select.types.d-1cf648f8.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-0072c23e.js';
|
|
4
|
+
import '../select.types.d-7ea09ac5.js';
|
|
5
|
+
import '../select.types.d-1cf648f8.js';
|
|
6
|
+
import '../query-promise.d-49950161.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-0072c23e.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-7ea09ac5.js';
|
|
3
|
+
import { T as TablesRelationalConfig, R as RelationalSchemaConfig } from '../query-promise.d-49950161.js';
|
|
4
4
|
import { Pool, PoolClient, Client, QueryResult, QueryResultRow } from '@neondatabase/serverless';
|
|
5
|
-
import '../select.types.d-
|
|
5
|
+
import '../select.types.d-1cf648f8.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-0072c23e.js';
|
|
4
|
+
import '../select.types.d-7ea09ac5.js';
|
|
5
|
+
import '../select.types.d-1cf648f8.js';
|
|
6
|
+
import '../query-promise.d-49950161.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-0072c23e.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-7ea09ac5.js';
|
|
3
|
+
import { T as TablesRelationalConfig, R as RelationalSchemaConfig } from '../query-promise.d-49950161.js';
|
|
4
4
|
import pg, { PoolClient, Client, QueryResult, QueryResultRow } from 'pg';
|
|
5
|
-
import '../select.types.d-
|
|
5
|
+
import '../select.types.d-1cf648f8.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-0072c23e.js';
|
|
4
|
+
import '../select.types.d-7ea09ac5.js';
|
|
5
|
+
import '../select.types.d-1cf648f8.js';
|
|
6
|
+
import '../query-promise.d-49950161.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, 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-
|
|
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-7ea09ac5.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-7ea09ac5.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-0072c23e.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-0072c23e.js';
|
|
5
|
+
import '../select.types.d-1cf648f8.js';
|
|
6
|
+
import '../query-promise.d-49950161.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-0072c23e.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-339b50dc.js';
|
|
4
|
+
import { T as TablesRelationalConfig, R as RelationalSchemaConfig } from '../query-promise.d-49950161.js';
|
|
5
|
+
import '../select.types.d-1cf648f8.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-0072c23e.js';
|
|
5
|
+
import '../select.types.d-339b50dc.js';
|
|
6
|
+
import '../select.types.d-1cf648f8.js';
|
|
7
|
+
import '../query-promise.d-49950161.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-7ea09ac5.js';
|
|
3
|
+
import { e as entityKind, L as Logger, Q as Query, av as Assume, D as DrizzleConfig } from '../column.d-0072c23e.js';
|
|
4
|
+
import { T as TablesRelationalConfig, R as RelationalSchemaConfig } from '../query-promise.d-49950161.js';
|
|
5
|
+
import '../select.types.d-1cf648f8.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-7ea09ac5.js';
|
|
5
|
+
import '../column.d-0072c23e.js';
|
|
6
|
+
import '../select.types.d-1cf648f8.js';
|
|
7
|
+
import '../query-promise.d-49950161.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, 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-
|
|
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-0072c23e.js';
|
|
2
2
|
|
|
3
3
|
declare function bindIfParam(value: unknown, column: SQLWrapper): SQLChunk;
|
|
4
4
|
interface BinaryOperator {
|
|
@@ -1,4 +1,4 @@
|
|
|
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-
|
|
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-0072c23e.js';
|
|
2
2
|
|
|
3
3
|
declare abstract class TypedQueryBuilder<TSelection, TResult = unknown> implements SQLWrapper {
|
|
4
4
|
static readonly [entityKind]: string;
|
|
@@ -52,7 +52,7 @@ type AppendToNullabilityMap<TJoinsNotNull extends Record<string, JoinNullability
|
|
|
52
52
|
type TableLike = Table | Subquery | View | SQL;
|
|
53
53
|
type GetSelectTableName<TTable extends TableLike> = TTable extends Table ? TTable['_']['name'] : TTable extends Subquery ? TTable['_']['alias'] : TTable extends View ? TTable['_']['name'] : TTable extends SQL ? undefined : never;
|
|
54
54
|
type GetSelectTableSelection<TTable extends TableLike> = TTable extends Table ? TTable['_']['columns'] : TTable extends Subquery | View ? Assume<TTable['_']['selectedFields'], ColumnsSelection> : TTable extends SQL ? {} : never;
|
|
55
|
-
type SelectResultField<T, TDeep extends boolean = true> = T extends DrizzleTypeError<any> ? T : T extends Table ? Equal<TDeep, true> extends true ? SelectResultField<T['_']['columns'], false> : never : T extends Column ? GetColumnData<T> : T extends SQL | SQL.Aliased ? T['_']['type'] : T extends Record<string, any> ? SelectResultFields<T, true> : never;
|
|
55
|
+
type SelectResultField<T, TDeep extends boolean = true> = T extends DrizzleTypeError<any> ? T : T extends Table ? Equal<TDeep, true> extends true ? SelectResultField<T['_']['columns'], false> : never : T extends Column<any> ? GetColumnData<T> : T extends SQL | SQL.Aliased ? T['_']['type'] : T extends Record<string, any> ? SelectResultFields<T, true> : never;
|
|
56
56
|
type SelectResultFields<TSelectedFields, TDeep extends boolean = true> = {
|
|
57
57
|
[Key in keyof TSelectedFields & string]: SelectResultField<TSelectedFields[Key], TDeep>;
|
|
58
58
|
} & {};
|
|
@@ -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-0072c23e.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-1cf648f8.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-49950161.js';
|
|
4
4
|
import { ResultSetHeader } from 'mysql2/promise';
|
|
5
5
|
import { MigrationMeta, MigrationConfig } from './migrator.js';
|
|
6
6
|
|