drizzle-orm 0.26.1-b6431a4 → 0.26.1-c8de0ba
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/aws-data-api/pg/index.cjs +2 -2
- package/aws-data-api/pg/index.mjs +2 -2
- package/aws-data-api/pg/migrator.cjs.map +1 -1
- package/aws-data-api/pg/migrator.d.ts +1 -1
- package/aws-data-api/pg/migrator.mjs.map +1 -1
- package/better-sqlite3/index.cjs +2 -2
- package/better-sqlite3/index.mjs +2 -2
- package/better-sqlite3/migrator.cjs.map +1 -1
- package/better-sqlite3/migrator.d.ts +1 -1
- package/better-sqlite3/migrator.mjs.map +1 -1
- package/bun-sqlite/index.cjs +2 -2
- package/bun-sqlite/index.mjs +2 -2
- package/bun-sqlite/migrator.cjs.map +1 -1
- package/bun-sqlite/migrator.d.ts +1 -1
- package/bun-sqlite/migrator.mjs.map +1 -1
- package/d1/index.cjs +2 -2
- package/d1/index.mjs +2 -2
- package/d1/migrator.cjs.map +1 -1
- package/d1/migrator.d.ts +1 -1
- package/d1/migrator.mjs.map +1 -1
- package/index.cjs +1 -1
- package/index.mjs +1 -1
- package/libsql/index.cjs +2 -2
- package/libsql/index.mjs +2 -2
- package/libsql/migrator.cjs.map +1 -1
- package/libsql/migrator.d.ts +1 -1
- package/libsql/migrator.mjs.map +1 -1
- package/mysql-core/index.cjs +2 -2
- package/mysql-core/index.mjs +3 -3
- package/mysql2/index.cjs +2 -2
- package/mysql2/index.mjs +2 -2
- package/mysql2/migrator.cjs.map +1 -1
- package/mysql2/migrator.d.ts +1 -1
- package/mysql2/migrator.mjs.map +1 -1
- package/neon-serverless/index.cjs +2 -2
- package/neon-serverless/index.mjs +2 -2
- package/neon-serverless/migrator.cjs.map +1 -1
- package/neon-serverless/migrator.d.ts +1 -1
- package/neon-serverless/migrator.mjs.map +1 -1
- package/node-postgres/index.cjs +2 -2
- package/node-postgres/index.mjs +2 -2
- package/node-postgres/migrator.cjs.map +1 -1
- package/node-postgres/migrator.d.ts +1 -1
- package/node-postgres/migrator.mjs.map +1 -1
- package/package.json +1 -1
- package/pg-core/index.cjs +2 -2
- package/pg-core/index.mjs +3 -3
- package/planetscale-serverless/index.cjs +2 -2
- package/planetscale-serverless/index.mjs +2 -2
- package/planetscale-serverless/migrator.cjs.map +1 -1
- package/planetscale-serverless/migrator.d.ts +1 -1
- package/planetscale-serverless/migrator.mjs.map +1 -1
- package/postgres-js/index.cjs +2 -2
- package/postgres-js/index.mjs +2 -2
- package/postgres-js/migrator.cjs.map +1 -1
- package/postgres-js/migrator.d.ts +1 -1
- package/postgres-js/migrator.mjs.map +1 -1
- package/{relations-d4a38dec.cjs → relations-23963f0c.cjs} +6 -3
- package/{relations-d4a38dec.cjs.map → relations-23963f0c.cjs.map} +1 -1
- package/{relations-7655bd23.mjs → relations-c9e54a8f.mjs} +6 -3
- package/{relations-7655bd23.mjs.map → relations-c9e54a8f.mjs.map} +1 -1
- package/{session-c1d30337.cjs → session-2deccd2c.cjs} +2 -2
- package/{session-c1d30337.cjs.map → session-2deccd2c.cjs.map} +1 -1
- package/{session-341aecf8.cjs → session-3ff31b4b.cjs} +2 -2
- package/{session-341aecf8.cjs.map → session-3ff31b4b.cjs.map} +1 -1
- package/{session-d6b66c95.mjs → session-52661b2a.mjs} +2 -2
- package/{session-d6b66c95.mjs.map → session-52661b2a.mjs.map} +1 -1
- package/{session-10d3a136.cjs → session-6ac9db37.cjs} +2 -2
- package/{session-10d3a136.cjs.map → session-6ac9db37.cjs.map} +1 -1
- package/{session-d5e9e9ce.mjs → session-dbcddf1b.mjs} +2 -2
- package/{session-d5e9e9ce.mjs.map → session-dbcddf1b.mjs.map} +1 -1
- package/{session-6ff8a706.mjs → session-ee2e06f0.mjs} +2 -2
- package/{session-6ff8a706.mjs.map → session-ee2e06f0.mjs.map} +1 -1
- package/sql-js/index.cjs +2 -2
- package/sql-js/index.mjs +2 -2
- package/sql-js/migrator.cjs.map +1 -1
- package/sql-js/migrator.d.ts +1 -1
- package/sql-js/migrator.mjs.map +1 -1
- package/sqlite-core/index.cjs +2 -2
- package/sqlite-core/index.mjs +3 -3
- package/sqlite-proxy/index.cjs +2 -2
- package/sqlite-proxy/index.mjs +2 -2
- package/sqlite-proxy/migrator.cjs +3 -2
- package/sqlite-proxy/migrator.cjs.map +1 -1
- package/sqlite-proxy/migrator.d.ts +1 -1
- package/sqlite-proxy/migrator.mjs +3 -2
- package/sqlite-proxy/migrator.mjs.map +1 -1
- package/vercel-postgres/index.cjs +2 -2
- package/vercel-postgres/index.mjs +2 -2
- package/vercel-postgres/migrator.cjs.map +1 -1
- package/vercel-postgres/migrator.d.ts +1 -1
- package/vercel-postgres/migrator.mjs.map +1 -1
- package/version.cjs +1 -1
- package/version.d.ts +1 -1
- package/version.mjs +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var logger = require('../../logger-caa1ca6e.cjs');
|
|
4
|
-
var session = require('../../session-
|
|
5
|
-
var relations = require('../../relations-
|
|
4
|
+
var session = require('../../session-3ff31b4b.cjs');
|
|
5
|
+
var relations = require('../../relations-23963f0c.cjs');
|
|
6
6
|
var clientRdsData = require('@aws-sdk/client-rds-data');
|
|
7
7
|
require('../../errors-d0192d62.cjs');
|
|
8
8
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { D as DefaultLogger } from '../../logger-caf75bde.mjs';
|
|
2
|
-
import { P as PreparedQuery, a as PgSession, b as PgTransaction, c as PgDatabase } from '../../session-
|
|
3
|
-
import { ao as mapResultRow, a9 as fillPlaceholders, a6 as sql, aw as PgDialect, K as extractTablesRelationalConfig, U as createTableRelationsHelpers } from '../../relations-
|
|
2
|
+
import { P as PreparedQuery, a as PgSession, b as PgTransaction, c as PgDatabase } from '../../session-52661b2a.mjs';
|
|
3
|
+
import { ao as mapResultRow, a9 as fillPlaceholders, a6 as sql, aw as PgDialect, K as extractTablesRelationalConfig, U as createTableRelationsHelpers } from '../../relations-c9e54a8f.mjs';
|
|
4
4
|
import { TypeHint, ExecuteStatementCommand, BeginTransactionCommand, CommitTransactionCommand, RollbackTransactionCommand } from '@aws-sdk/client-rds-data';
|
|
5
5
|
import '../../errors-bb636d84.mjs';
|
|
6
6
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"migrator.cjs","sources":["../../../src/aws-data-api/pg/migrator.ts"],"sourcesContent":[null],"names":["readMigrationFiles"],"mappings":";;;;;;;AAIO,eAAe,OAAO,
|
|
1
|
+
{"version":3,"file":"migrator.cjs","sources":["../../../src/aws-data-api/pg/migrator.ts"],"sourcesContent":[null],"names":["readMigrationFiles"],"mappings":";;;;;;;AAIO,eAAe,OAAO,CAC5B,EAAiC,EACjC,MAAgC,EAAA;AAEhC,IAAA,MAAM,UAAU,GAAGA,2BAAkB,CAAC,MAAM,CAAC,CAAC;AAC9C,IAAA,MAAM,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC,UAAU,EAAE,EAAE,CAAC,OAAO,CAAC,CAAC;AAClD;;;;"}
|
|
@@ -6,6 +6,6 @@ import '../../query-promise.d-3b15626b.js';
|
|
|
6
6
|
import '../../select.types.d-34d7f74e.js';
|
|
7
7
|
import '@aws-sdk/client-rds-data';
|
|
8
8
|
|
|
9
|
-
declare function migrate(db: AwsDataApiPgDatabase
|
|
9
|
+
declare function migrate<TSchema extends Record<string, unknown>>(db: AwsDataApiPgDatabase<TSchema>, config: string | MigrationConfig): Promise<void>;
|
|
10
10
|
|
|
11
11
|
export { migrate };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"migrator.mjs","sources":["../../../src/aws-data-api/pg/migrator.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;AAIO,eAAe,OAAO,
|
|
1
|
+
{"version":3,"file":"migrator.mjs","sources":["../../../src/aws-data-api/pg/migrator.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;AAIO,eAAe,OAAO,CAC5B,EAAiC,EACjC,MAAgC,EAAA;AAEhC,IAAA,MAAM,UAAU,GAAG,kBAAkB,CAAC,MAAM,CAAC,CAAC;AAC9C,IAAA,MAAM,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC,UAAU,EAAE,EAAE,CAAC,OAAO,CAAC,CAAC;AAClD;;;;"}
|
package/better-sqlite3/index.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var logger = require('../logger-caa1ca6e.cjs');
|
|
4
|
-
var relations = require('../relations-
|
|
5
|
-
var session = require('../session-
|
|
4
|
+
var relations = require('../relations-23963f0c.cjs');
|
|
5
|
+
var session = require('../session-6ac9db37.cjs');
|
|
6
6
|
require('../errors-d0192d62.cjs');
|
|
7
7
|
|
|
8
8
|
class BetterSQLiteSession extends session.SQLiteSession {
|
package/better-sqlite3/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { N as NoopLogger, D as DefaultLogger } from '../logger-caf75bde.mjs';
|
|
2
|
-
import { a6 as sql, a9 as fillPlaceholders, ao as mapResultRow, K as extractTablesRelationalConfig, U as createTableRelationsHelpers } from '../relations-
|
|
3
|
-
import { S as SQLiteSession, a as SQLiteTransaction, P as PreparedQuery$1, B as BaseSQLiteDatabase, b as SQLiteSyncDialect } from '../session-
|
|
2
|
+
import { a6 as sql, a9 as fillPlaceholders, ao as mapResultRow, K as extractTablesRelationalConfig, U as createTableRelationsHelpers } from '../relations-c9e54a8f.mjs';
|
|
3
|
+
import { S as SQLiteSession, a as SQLiteTransaction, P as PreparedQuery$1, B as BaseSQLiteDatabase, b as SQLiteSyncDialect } from '../session-dbcddf1b.mjs';
|
|
4
4
|
import '../errors-bb636d84.mjs';
|
|
5
5
|
|
|
6
6
|
class BetterSQLiteSession extends SQLiteSession {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"migrator.cjs","sources":["../../src/better-sqlite3/migrator.ts"],"sourcesContent":[null],"names":["readMigrationFiles"],"mappings":";;;;;;;AAIgB,SAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"migrator.cjs","sources":["../../src/better-sqlite3/migrator.ts"],"sourcesContent":[null],"names":["readMigrationFiles"],"mappings":";;;;;;;AAIgB,SAAA,OAAO,CACtB,EAAkC,EAClC,MAAgC,EAAA;AAEhC,IAAA,MAAM,UAAU,GAAGA,2BAAkB,CAAC,MAAM,CAAC,CAAC;IAC9C,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC,UAAU,EAAE,EAAE,CAAC,OAAO,CAAC,CAAC;AAC5C;;;;"}
|
|
@@ -6,6 +6,6 @@ import '../select.types.d-34d7f74e.js';
|
|
|
6
6
|
import '../column.d-c31e7ad3.js';
|
|
7
7
|
import '../query-promise.d-3b15626b.js';
|
|
8
8
|
|
|
9
|
-
declare function migrate(db: BetterSQLite3Database
|
|
9
|
+
declare function migrate<TSchema extends Record<string, unknown>>(db: BetterSQLite3Database<TSchema>, config: string | MigrationConfig): void;
|
|
10
10
|
|
|
11
11
|
export { migrate };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"migrator.mjs","sources":["../../src/better-sqlite3/migrator.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;AAIgB,SAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"migrator.mjs","sources":["../../src/better-sqlite3/migrator.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;AAIgB,SAAA,OAAO,CACtB,EAAkC,EAClC,MAAgC,EAAA;AAEhC,IAAA,MAAM,UAAU,GAAG,kBAAkB,CAAC,MAAM,CAAC,CAAC;IAC9C,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC,UAAU,EAAE,EAAE,CAAC,OAAO,CAAC,CAAC;AAC5C;;;;"}
|
package/bun-sqlite/index.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var logger = require('../logger-caa1ca6e.cjs');
|
|
4
|
-
var relations = require('../relations-
|
|
5
|
-
var session = require('../session-
|
|
4
|
+
var relations = require('../relations-23963f0c.cjs');
|
|
5
|
+
var session = require('../session-6ac9db37.cjs');
|
|
6
6
|
require('../errors-d0192d62.cjs');
|
|
7
7
|
|
|
8
8
|
/// <reference types="bun-types" />
|
package/bun-sqlite/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { N as NoopLogger, D as DefaultLogger } from '../logger-caf75bde.mjs';
|
|
2
|
-
import { a6 as sql, a9 as fillPlaceholders, ao as mapResultRow, K as extractTablesRelationalConfig, U as createTableRelationsHelpers } from '../relations-
|
|
3
|
-
import { S as SQLiteSession, a as SQLiteTransaction, P as PreparedQuery$1, B as BaseSQLiteDatabase, b as SQLiteSyncDialect } from '../session-
|
|
2
|
+
import { a6 as sql, a9 as fillPlaceholders, ao as mapResultRow, K as extractTablesRelationalConfig, U as createTableRelationsHelpers } from '../relations-c9e54a8f.mjs';
|
|
3
|
+
import { S as SQLiteSession, a as SQLiteTransaction, P as PreparedQuery$1, B as BaseSQLiteDatabase, b as SQLiteSyncDialect } from '../session-dbcddf1b.mjs';
|
|
4
4
|
import '../errors-bb636d84.mjs';
|
|
5
5
|
|
|
6
6
|
/// <reference types="bun-types" />
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"migrator.cjs","sources":["../../src/bun-sqlite/migrator.ts"],"sourcesContent":[null],"names":["readMigrationFiles"],"mappings":";;;;;;;AAIgB,SAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"migrator.cjs","sources":["../../src/bun-sqlite/migrator.ts"],"sourcesContent":[null],"names":["readMigrationFiles"],"mappings":";;;;;;;AAIgB,SAAA,OAAO,CACtB,EAA8B,EAC9B,MAAgC,EAAA;AAEhC,IAAA,MAAM,UAAU,GAAGA,2BAAkB,CAAC,MAAM,CAAC,CAAC;IAC9C,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC,UAAU,EAAE,EAAE,CAAC,OAAO,CAAC,CAAC;AAC5C;;;;"}
|
package/bun-sqlite/migrator.d.ts
CHANGED
|
@@ -6,6 +6,6 @@ import '../select.types.d-34d7f74e.js';
|
|
|
6
6
|
import '../column.d-c31e7ad3.js';
|
|
7
7
|
import '../query-promise.d-3b15626b.js';
|
|
8
8
|
|
|
9
|
-
declare function migrate(db: BunSQLiteDatabase
|
|
9
|
+
declare function migrate<TSchema extends Record<string, unknown>>(db: BunSQLiteDatabase<TSchema>, config: string | MigrationConfig): void;
|
|
10
10
|
|
|
11
11
|
export { migrate };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"migrator.mjs","sources":["../../src/bun-sqlite/migrator.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;AAIgB,SAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"migrator.mjs","sources":["../../src/bun-sqlite/migrator.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;AAIgB,SAAA,OAAO,CACtB,EAA8B,EAC9B,MAAgC,EAAA;AAEhC,IAAA,MAAM,UAAU,GAAG,kBAAkB,CAAC,MAAM,CAAC,CAAC;IAC9C,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC,UAAU,EAAE,EAAE,CAAC,OAAO,CAAC,CAAC;AAC5C;;;;"}
|
package/d1/index.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var logger = require('../logger-caa1ca6e.cjs');
|
|
4
|
-
var relations = require('../relations-
|
|
5
|
-
var session = require('../session-
|
|
4
|
+
var relations = require('../relations-23963f0c.cjs');
|
|
5
|
+
var session = require('../session-6ac9db37.cjs');
|
|
6
6
|
require('../errors-d0192d62.cjs');
|
|
7
7
|
|
|
8
8
|
/// <reference types="@cloudflare/workers-types" />
|
package/d1/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { N as NoopLogger, D as DefaultLogger } from '../logger-caf75bde.mjs';
|
|
2
|
-
import { a6 as sql, a9 as fillPlaceholders, ao as mapResultRow, K as extractTablesRelationalConfig, U as createTableRelationsHelpers } from '../relations-
|
|
3
|
-
import { S as SQLiteSession, a as SQLiteTransaction, P as PreparedQuery$1, B as BaseSQLiteDatabase, c as SQLiteAsyncDialect } from '../session-
|
|
2
|
+
import { a6 as sql, a9 as fillPlaceholders, ao as mapResultRow, K as extractTablesRelationalConfig, U as createTableRelationsHelpers } from '../relations-c9e54a8f.mjs';
|
|
3
|
+
import { S as SQLiteSession, a as SQLiteTransaction, P as PreparedQuery$1, B as BaseSQLiteDatabase, c as SQLiteAsyncDialect } from '../session-dbcddf1b.mjs';
|
|
4
4
|
import '../errors-bb636d84.mjs';
|
|
5
5
|
|
|
6
6
|
/// <reference types="@cloudflare/workers-types" />
|
package/d1/migrator.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"migrator.cjs","sources":["../../src/d1/migrator.ts"],"sourcesContent":[null],"names":["readMigrationFiles"],"mappings":";;;;;;;AAIO,eAAe,OAAO,
|
|
1
|
+
{"version":3,"file":"migrator.cjs","sources":["../../src/d1/migrator.ts"],"sourcesContent":[null],"names":["readMigrationFiles"],"mappings":";;;;;;;AAIO,eAAe,OAAO,CAC5B,EAA8B,EAC9B,MAAgC,EAAA;AAEhC,IAAA,MAAM,UAAU,GAAGA,2BAAkB,CAAC,MAAM,CAAC,CAAC;AAC9C,IAAA,MAAM,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC,UAAU,EAAE,EAAE,CAAC,OAAO,CAAC,CAAC;AAClD;;;;"}
|
package/d1/migrator.d.ts
CHANGED
|
@@ -5,6 +5,6 @@ import '../select.types.d-34d7f74e.js';
|
|
|
5
5
|
import '../column.d-c31e7ad3.js';
|
|
6
6
|
import '../query-promise.d-3b15626b.js';
|
|
7
7
|
|
|
8
|
-
declare function migrate(db: DrizzleD1Database
|
|
8
|
+
declare function migrate<TSchema extends Record<string, unknown>>(db: DrizzleD1Database<TSchema>, config: string | MigrationConfig): Promise<void>;
|
|
9
9
|
|
|
10
10
|
export { migrate };
|
package/d1/migrator.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"migrator.mjs","sources":["../../src/d1/migrator.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;AAIO,eAAe,OAAO,
|
|
1
|
+
{"version":3,"file":"migrator.mjs","sources":["../../src/d1/migrator.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;AAIO,eAAe,OAAO,CAC5B,EAA8B,EAC9B,MAAgC,EAAA;AAEhC,IAAA,MAAM,UAAU,GAAG,kBAAkB,CAAC,MAAM,CAAC,CAAC;AAC9C,IAAA,MAAM,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC,UAAU,EAAE,EAAE,CAAC,OAAO,CAAC,CAAC;AAClD;;;;"}
|
package/index.cjs
CHANGED
package/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { ai as BaseName, e as Column, C as ColumnAliasProxyHandler, f as ColumnBuilder, ag as Columns, ak as ExtraConfigBuilder, W as FakePrimitiveParam, aj as IsAlias, M as Many, _ as Name, O as One, ah as OriginalName, a4 as Param, a7 as Placeholder, Q as QueryPromise, G as Relation, R as RelationTableAliasProxyHandler, H as Relations, Z as SQL, af as Schema, ad as SelectionProxyHandler, Y as StringChunk, ab as Subquery, aa as SubqueryConfig, al as Table, T as TableAliasProxyHandler, ae as TableName, av as View, au as ViewBaseConfig, ac as WithSubquery, b as aliasedRelation, a as aliasedTable, c as aliasedTableColumn, i as and, ar as applyMixins, E as asc, x as between, g as bindIfParam, P as createMany, N as createOne, U as createTableRelationsHelpers, F as desc, h as eq, v as exists, K as extractTablesRelationalConfig, a9 as fillPlaceholders, as as getTableColumns, at as getTableLikeName, an as getTableName, k as gt, l as gte, B as ilike, r as inArray, a0 as isDriverValueEncoder, u as isNotNull, t as isNull, X as isSQLWrapper, am as isTable, z as like, p as lt, q as lte, m as mapColumnsInAliasedSQLToAlias, d as mapColumnsInSQLToAlias, V as mapRelationalRow, ao as mapResultRow, aq as mapUpdateSet, $ as name, n as ne, a1 as noopDecoder, a2 as noopEncoder, a3 as noopMapper, S as normalizeRelation, j as not, y as notBetween, w as notExists, D as notIlike, s as notInArray, A as notLike, I as operators, o as or, J as orderByOperators, ap as orderSelectedFields, a5 as param, a8 as placeholder, L as relations, a6 as sql } from './relations-
|
|
1
|
+
export { ai as BaseName, e as Column, C as ColumnAliasProxyHandler, f as ColumnBuilder, ag as Columns, ak as ExtraConfigBuilder, W as FakePrimitiveParam, aj as IsAlias, M as Many, _ as Name, O as One, ah as OriginalName, a4 as Param, a7 as Placeholder, Q as QueryPromise, G as Relation, R as RelationTableAliasProxyHandler, H as Relations, Z as SQL, af as Schema, ad as SelectionProxyHandler, Y as StringChunk, ab as Subquery, aa as SubqueryConfig, al as Table, T as TableAliasProxyHandler, ae as TableName, av as View, au as ViewBaseConfig, ac as WithSubquery, b as aliasedRelation, a as aliasedTable, c as aliasedTableColumn, i as and, ar as applyMixins, E as asc, x as between, g as bindIfParam, P as createMany, N as createOne, U as createTableRelationsHelpers, F as desc, h as eq, v as exists, K as extractTablesRelationalConfig, a9 as fillPlaceholders, as as getTableColumns, at as getTableLikeName, an as getTableName, k as gt, l as gte, B as ilike, r as inArray, a0 as isDriverValueEncoder, u as isNotNull, t as isNull, X as isSQLWrapper, am as isTable, z as like, p as lt, q as lte, m as mapColumnsInAliasedSQLToAlias, d as mapColumnsInSQLToAlias, V as mapRelationalRow, ao as mapResultRow, aq as mapUpdateSet, $ as name, n as ne, a1 as noopDecoder, a2 as noopEncoder, a3 as noopMapper, S as normalizeRelation, j as not, y as notBetween, w as notExists, D as notIlike, s as notInArray, A as notLike, I as operators, o as or, J as orderByOperators, ap as orderSelectedFields, a5 as param, a8 as placeholder, L as relations, a6 as sql } from './relations-c9e54a8f.mjs';
|
|
2
2
|
export { D as DrizzleError, T as TransactionRollbackError } from './errors-bb636d84.mjs';
|
|
3
3
|
export { C as ConsoleLogWriter, D as DefaultLogger, N as NoopLogger } from './logger-caf75bde.mjs';
|
|
4
4
|
//# sourceMappingURL=index.mjs.map
|
package/libsql/index.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var logger = require('../logger-caa1ca6e.cjs');
|
|
4
|
-
var relations = require('../relations-
|
|
5
|
-
var session = require('../session-
|
|
4
|
+
var relations = require('../relations-23963f0c.cjs');
|
|
5
|
+
var session = require('../session-6ac9db37.cjs');
|
|
6
6
|
require('../errors-d0192d62.cjs');
|
|
7
7
|
|
|
8
8
|
class LibSQLSession extends session.SQLiteSession {
|
package/libsql/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { N as NoopLogger, D as DefaultLogger } from '../logger-caf75bde.mjs';
|
|
2
|
-
import { a6 as sql, a9 as fillPlaceholders, ao as mapResultRow, K as extractTablesRelationalConfig, U as createTableRelationsHelpers } from '../relations-
|
|
3
|
-
import { S as SQLiteSession, a as SQLiteTransaction, P as PreparedQuery$1, B as BaseSQLiteDatabase, c as SQLiteAsyncDialect } from '../session-
|
|
2
|
+
import { a6 as sql, a9 as fillPlaceholders, ao as mapResultRow, K as extractTablesRelationalConfig, U as createTableRelationsHelpers } from '../relations-c9e54a8f.mjs';
|
|
3
|
+
import { S as SQLiteSession, a as SQLiteTransaction, P as PreparedQuery$1, B as BaseSQLiteDatabase, c as SQLiteAsyncDialect } from '../session-dbcddf1b.mjs';
|
|
4
4
|
import '../errors-bb636d84.mjs';
|
|
5
5
|
|
|
6
6
|
class LibSQLSession extends SQLiteSession {
|
package/libsql/migrator.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"migrator.cjs","sources":["../../src/libsql/migrator.ts"],"sourcesContent":[null],"names":["readMigrationFiles"],"mappings":";;;;;;;AAIgB,SAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"migrator.cjs","sources":["../../src/libsql/migrator.ts"],"sourcesContent":[null],"names":["readMigrationFiles"],"mappings":";;;;;;;AAIgB,SAAA,OAAO,CACtB,EAA2B,EAC3B,MAAuB,EAAA;AAEvB,IAAA,MAAM,UAAU,GAAGA,2BAAkB,CAAC,MAAM,CAAC,CAAC;AAC9C,IAAA,OAAO,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC,UAAU,EAAE,EAAE,CAAC,OAAO,CAAC,CAAC;AACnD;;;;"}
|
package/libsql/migrator.d.ts
CHANGED
|
@@ -6,6 +6,6 @@ import '../select.types.d-34d7f74e.js';
|
|
|
6
6
|
import '../column.d-c31e7ad3.js';
|
|
7
7
|
import '../query-promise.d-3b15626b.js';
|
|
8
8
|
|
|
9
|
-
declare function migrate(db: LibSQLDatabase
|
|
9
|
+
declare function migrate<TSchema extends Record<string, unknown>>(db: LibSQLDatabase<TSchema>, config: MigrationConfig): Promise<void>;
|
|
10
10
|
|
|
11
11
|
export { migrate };
|
package/libsql/migrator.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"migrator.mjs","sources":["../../src/libsql/migrator.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;AAIgB,SAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"migrator.mjs","sources":["../../src/libsql/migrator.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;AAIgB,SAAA,OAAO,CACtB,EAA2B,EAC3B,MAAuB,EAAA;AAEvB,IAAA,MAAM,UAAU,GAAG,kBAAkB,CAAC,MAAM,CAAC,CAAC;AAC9C,IAAA,OAAO,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC,UAAU,EAAE,EAAE,CAAC,OAAO,CAAC,CAAC;AACnD;;;;"}
|
package/mysql-core/index.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var relations = require('../relations-
|
|
4
|
-
var session = require('../session-
|
|
3
|
+
var relations = require('../relations-23963f0c.cjs');
|
|
4
|
+
var session = require('../session-2deccd2c.cjs');
|
|
5
5
|
require('../errors-d0192d62.cjs');
|
|
6
6
|
|
|
7
7
|
function alias(table, alias) {
|
package/mysql-core/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { T as TableAliasProxyHandler, a6 as sql, al as Table, au as ViewBaseConfig } from '../relations-
|
|
2
|
-
import { M as MySqlColumnBuilderWithAutoIncrement, a as MySqlColumnWithAutoIncrement, b as MySqlColumnBuilder, c as MySqlColumn, d as MySqlTable, m as mysqlTableWithSchema, e as mysqlViewWithSchema, F as ForeignKeyBuilder, f as MySqlViewConfig } from '../session-
|
|
3
|
-
export { i as ForeignKey, I as InlineForeignKeys, y as ManualViewBuilder, g as MySqlDatabase, k as MySqlDelete, h as MySqlDialect, n as MySqlInsert, l as MySqlInsertBuilder, q as MySqlSelect, o as MySqlSelectBuilder, p as MySqlSelectQueryBuilder, t as MySqlSession, u as MySqlTransaction, s as MySqlUpdate, r as MySqlUpdateBuilder, A as MySqlView, z as MySqlViewBase, P as PreparedQuery, Q as QueryBuilder, x as ViewBuilder, V as ViewBuilderCore, j as foreignKey, v as mysqlTable, w as mysqlTableCreator, B as mysqlView } from '../session-
|
|
1
|
+
import { T as TableAliasProxyHandler, a6 as sql, al as Table, au as ViewBaseConfig } from '../relations-c9e54a8f.mjs';
|
|
2
|
+
import { M as MySqlColumnBuilderWithAutoIncrement, a as MySqlColumnWithAutoIncrement, b as MySqlColumnBuilder, c as MySqlColumn, d as MySqlTable, m as mysqlTableWithSchema, e as mysqlViewWithSchema, F as ForeignKeyBuilder, f as MySqlViewConfig } from '../session-ee2e06f0.mjs';
|
|
3
|
+
export { i as ForeignKey, I as InlineForeignKeys, y as ManualViewBuilder, g as MySqlDatabase, k as MySqlDelete, h as MySqlDialect, n as MySqlInsert, l as MySqlInsertBuilder, q as MySqlSelect, o as MySqlSelectBuilder, p as MySqlSelectQueryBuilder, t as MySqlSession, u as MySqlTransaction, s as MySqlUpdate, r as MySqlUpdateBuilder, A as MySqlView, z as MySqlViewBase, P as PreparedQuery, Q as QueryBuilder, x as ViewBuilder, V as ViewBuilderCore, j as foreignKey, v as mysqlTable, w as mysqlTableCreator, B as mysqlView } from '../session-ee2e06f0.mjs';
|
|
4
4
|
import '../errors-bb636d84.mjs';
|
|
5
5
|
|
|
6
6
|
function alias(table, alias) {
|
package/mysql2/index.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var logger = require('../logger-caa1ca6e.cjs');
|
|
4
|
-
var session = require('../session-
|
|
5
|
-
var relations = require('../relations-
|
|
4
|
+
var session = require('../session-2deccd2c.cjs');
|
|
5
|
+
var relations = require('../relations-23963f0c.cjs');
|
|
6
6
|
var node_events = require('node:events');
|
|
7
7
|
require('../errors-d0192d62.cjs');
|
|
8
8
|
|
package/mysql2/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { N as NoopLogger, D as DefaultLogger } from '../logger-caf75bde.mjs';
|
|
2
|
-
import { P as PreparedQuery, t as MySqlSession, u as MySqlTransaction, g as MySqlDatabase, h as MySqlDialect } from '../session-
|
|
3
|
-
import { a9 as fillPlaceholders, ao as mapResultRow, a6 as sql, K as extractTablesRelationalConfig, U as createTableRelationsHelpers } from '../relations-
|
|
2
|
+
import { P as PreparedQuery, t as MySqlSession, u as MySqlTransaction, g as MySqlDatabase, h as MySqlDialect } from '../session-ee2e06f0.mjs';
|
|
3
|
+
import { a9 as fillPlaceholders, ao as mapResultRow, a6 as sql, K as extractTablesRelationalConfig, U as createTableRelationsHelpers } from '../relations-c9e54a8f.mjs';
|
|
4
4
|
import { once } from 'node:events';
|
|
5
5
|
import '../errors-bb636d84.mjs';
|
|
6
6
|
|
package/mysql2/migrator.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"migrator.cjs","sources":["../../src/mysql2/migrator.ts"],"sourcesContent":[null],"names":["readMigrationFiles"],"mappings":";;;;;;;AAIO,eAAe,OAAO,
|
|
1
|
+
{"version":3,"file":"migrator.cjs","sources":["../../src/mysql2/migrator.ts"],"sourcesContent":[null],"names":["readMigrationFiles"],"mappings":";;;;;;;AAIO,eAAe,OAAO,CAC5B,EAA2B,EAC3B,MAAuB,EAAA;AAEvB,IAAA,MAAM,UAAU,GAAGA,2BAAkB,CAAC,MAAM,CAAC,CAAC;AAC9C,IAAA,MAAM,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC,UAAU,EAAE,EAAE,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;AAC1D;;;;"}
|
package/mysql2/migrator.d.ts
CHANGED
|
@@ -7,6 +7,6 @@ import '../select.types.d-34d7f74e.js';
|
|
|
7
7
|
import '../query-promise.d-3b15626b.js';
|
|
8
8
|
import 'mysql2/promise';
|
|
9
9
|
|
|
10
|
-
declare function migrate(db: MySql2Database
|
|
10
|
+
declare function migrate<TSchema extends Record<string, unknown>>(db: MySql2Database<TSchema>, config: MigrationConfig): Promise<void>;
|
|
11
11
|
|
|
12
12
|
export { migrate };
|
package/mysql2/migrator.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"migrator.mjs","sources":["../../src/mysql2/migrator.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;AAIO,eAAe,OAAO,
|
|
1
|
+
{"version":3,"file":"migrator.mjs","sources":["../../src/mysql2/migrator.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;AAIO,eAAe,OAAO,CAC5B,EAA2B,EAC3B,MAAuB,EAAA;AAEvB,IAAA,MAAM,UAAU,GAAG,kBAAkB,CAAC,MAAM,CAAC,CAAC;AAC9C,IAAA,MAAM,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC,UAAU,EAAE,EAAE,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;AAC1D;;;;"}
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
var serverless = require('@neondatabase/serverless');
|
|
4
4
|
var logger = require('../logger-caa1ca6e.cjs');
|
|
5
|
-
var session = require('../session-
|
|
6
|
-
var relations = require('../relations-
|
|
5
|
+
var session = require('../session-3ff31b4b.cjs');
|
|
6
|
+
var relations = require('../relations-23963f0c.cjs');
|
|
7
7
|
require('../errors-d0192d62.cjs');
|
|
8
8
|
|
|
9
9
|
class NeonPreparedQuery extends session.PreparedQuery {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Pool, types } from '@neondatabase/serverless';
|
|
2
2
|
import { N as NoopLogger, D as DefaultLogger } from '../logger-caf75bde.mjs';
|
|
3
|
-
import { P as PreparedQuery, a as PgSession, b as PgTransaction, c as PgDatabase } from '../session-
|
|
4
|
-
import { a9 as fillPlaceholders, ao as mapResultRow, a6 as sql, K as extractTablesRelationalConfig, U as createTableRelationsHelpers, aw as PgDialect } from '../relations-
|
|
3
|
+
import { P as PreparedQuery, a as PgSession, b as PgTransaction, c as PgDatabase } from '../session-52661b2a.mjs';
|
|
4
|
+
import { a9 as fillPlaceholders, ao as mapResultRow, a6 as sql, K as extractTablesRelationalConfig, U as createTableRelationsHelpers, aw as PgDialect } from '../relations-c9e54a8f.mjs';
|
|
5
5
|
import '../errors-bb636d84.mjs';
|
|
6
6
|
|
|
7
7
|
class NeonPreparedQuery extends PreparedQuery {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"migrator.cjs","sources":["../../src/neon-serverless/migrator.ts"],"sourcesContent":[null],"names":["readMigrationFiles"],"mappings":";;;;;;;AAIO,eAAe,OAAO,
|
|
1
|
+
{"version":3,"file":"migrator.cjs","sources":["../../src/neon-serverless/migrator.ts"],"sourcesContent":[null],"names":["readMigrationFiles"],"mappings":";;;;;;;AAIO,eAAe,OAAO,CAC5B,EAAyB,EACzB,MAAgC,EAAA;AAEhC,IAAA,MAAM,UAAU,GAAGA,2BAAkB,CAAC,MAAM,CAAC,CAAC;AAC9C,IAAA,MAAM,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC,UAAU,EAAE,EAAE,CAAC,OAAO,CAAC,CAAC;AAClD;;;;"}
|
|
@@ -6,6 +6,6 @@ import '../query-promise.d-3b15626b.js';
|
|
|
6
6
|
import '../select.types.d-34d7f74e.js';
|
|
7
7
|
import '@neondatabase/serverless';
|
|
8
8
|
|
|
9
|
-
declare function migrate(db: NeonDatabase
|
|
9
|
+
declare function migrate<TSchema extends Record<string, unknown>>(db: NeonDatabase<TSchema>, config: string | MigrationConfig): Promise<void>;
|
|
10
10
|
|
|
11
11
|
export { migrate };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"migrator.mjs","sources":["../../src/neon-serverless/migrator.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;AAIO,eAAe,OAAO,
|
|
1
|
+
{"version":3,"file":"migrator.mjs","sources":["../../src/neon-serverless/migrator.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;AAIO,eAAe,OAAO,CAC5B,EAAyB,EACzB,MAAgC,EAAA;AAEhC,IAAA,MAAM,UAAU,GAAG,kBAAkB,CAAC,MAAM,CAAC,CAAC;AAC9C,IAAA,MAAM,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC,UAAU,EAAE,EAAE,CAAC,OAAO,CAAC,CAAC;AAClD;;;;"}
|
package/node-postgres/index.cjs
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
var pg = require('pg');
|
|
4
4
|
var logger = require('../logger-caa1ca6e.cjs');
|
|
5
|
-
var session = require('../session-
|
|
6
|
-
var relations = require('../relations-
|
|
5
|
+
var session = require('../session-3ff31b4b.cjs');
|
|
6
|
+
var relations = require('../relations-23963f0c.cjs');
|
|
7
7
|
require('../errors-d0192d62.cjs');
|
|
8
8
|
|
|
9
9
|
const { Pool } = pg;
|
package/node-postgres/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import pg from 'pg';
|
|
2
2
|
import { N as NoopLogger, D as DefaultLogger } from '../logger-caf75bde.mjs';
|
|
3
|
-
import { P as PreparedQuery, a as PgSession, b as PgTransaction, c as PgDatabase } from '../session-
|
|
4
|
-
import { a9 as fillPlaceholders, ao as mapResultRow, a6 as sql, K as extractTablesRelationalConfig, U as createTableRelationsHelpers, aw as PgDialect } from '../relations-
|
|
3
|
+
import { P as PreparedQuery, a as PgSession, b as PgTransaction, c as PgDatabase } from '../session-52661b2a.mjs';
|
|
4
|
+
import { a9 as fillPlaceholders, ao as mapResultRow, a6 as sql, K as extractTablesRelationalConfig, U as createTableRelationsHelpers, aw as PgDialect } from '../relations-c9e54a8f.mjs';
|
|
5
5
|
import '../errors-bb636d84.mjs';
|
|
6
6
|
|
|
7
7
|
const { Pool } = pg;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"migrator.cjs","sources":["../../src/node-postgres/migrator.ts"],"sourcesContent":[null],"names":["readMigrationFiles"],"mappings":";;;;;;;AAIO,eAAe,OAAO,
|
|
1
|
+
{"version":3,"file":"migrator.cjs","sources":["../../src/node-postgres/migrator.ts"],"sourcesContent":[null],"names":["readMigrationFiles"],"mappings":";;;;;;;AAIO,eAAe,OAAO,CAC5B,EAA2B,EAC3B,MAAgC,EAAA;AAEhC,IAAA,MAAM,UAAU,GAAGA,2BAAkB,CAAC,MAAM,CAAC,CAAC;AAC9C,IAAA,MAAM,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC,UAAU,EAAE,EAAE,CAAC,OAAO,CAAC,CAAC;AAClD;;;;"}
|
|
@@ -6,6 +6,6 @@ import '../query-promise.d-3b15626b.js';
|
|
|
6
6
|
import '../select.types.d-34d7f74e.js';
|
|
7
7
|
import 'pg';
|
|
8
8
|
|
|
9
|
-
declare function migrate(db: NodePgDatabase
|
|
9
|
+
declare function migrate<TSchema extends Record<string, unknown>>(db: NodePgDatabase<TSchema>, config: string | MigrationConfig): Promise<void>;
|
|
10
10
|
|
|
11
11
|
export { migrate };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"migrator.mjs","sources":["../../src/node-postgres/migrator.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;AAIO,eAAe,OAAO,
|
|
1
|
+
{"version":3,"file":"migrator.mjs","sources":["../../src/node-postgres/migrator.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;AAIO,eAAe,OAAO,CAC5B,EAA2B,EAC3B,MAAgC,EAAA;AAEhC,IAAA,MAAM,UAAU,GAAG,kBAAkB,CAAC,MAAM,CAAC,CAAC;AAC9C,IAAA,MAAM,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC,UAAU,EAAE,EAAE,CAAC,OAAO,CAAC,CAAC;AAClD;;;;"}
|
package/package.json
CHANGED
package/pg-core/index.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var relations = require('../relations-
|
|
4
|
-
var session = require('../session-
|
|
3
|
+
var relations = require('../relations-23963f0c.cjs');
|
|
4
|
+
var session = require('../session-3ff31b4b.cjs');
|
|
5
5
|
require('../errors-d0192d62.cjs');
|
|
6
6
|
|
|
7
7
|
function alias(table, alias) {
|
package/pg-core/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { T as TableAliasProxyHandler, ax as PgColumnBuilder, ay as PgColumn, az as pgTableWithSchema, aA as pgViewWithSchema, aB as pgMaterializedViewWithSchema } from '../relations-
|
|
2
|
-
export { aD as Check, aC as CheckBuilder, bu as DefaultViewBuilderCore, b6 as ForeignKey, b5 as ForeignKeyBuilder, ba as Index, b9 as IndexBuilder, b8 as IndexBuilderOn, bk as InlineForeignKeys, bz as ManualMaterializedViewBuilder, bw as ManualViewBuilder, by as MaterializedViewBuilder, bx as MaterializedViewBuilderCore, aG as PgArray, aF as PgArrayBuilder, aI as PgDate, aH as PgDateBuilder, aK as PgDateString, aJ as PgDateStringBuilder, aw as PgDialect, aN as PgJson, aM as PgJsonBuilder, aQ as PgJsonb, aP as PgJsonbBuilder, bE as PgMaterializedView, bD as PgMaterializedViewConfig, aT as PgNumeric, aS as PgNumericBuilder, bj as PgSelect, bh as PgSelectBuilder, bi as PgSelectQueryBuilder, bl as PgTable, aX as PgTime, aW as PgTimeBuilder, a_ as PgTimestamp, aZ as PgTimestampBuilder, b0 as PgTimestampString, a$ as PgTimestampStringBuilder, b3 as PgUUID, b2 as PgUUIDBuilder, bC as PgView, bA as PgViewBase, bB as PgViewConfig, bf as PrimaryKey, be as PrimaryKeyBuilder, bg as QueryBuilder, bv as ViewBuilder, aE as check, aL as date, aV as decimal, b7 as foreignKey, bq as getMaterializedViewConfig, bo as getTableConfig, bp as getViewConfig, bb as index, aO as json, aR as jsonb, bt as makePgArray, aU as numeric, bs as parsePgArray, br as parsePgNestedArray, bG as pgMaterializedView, bm as pgTable, bn as pgTableCreator, bF as pgView, bd as primaryKey, aY as time, b1 as timestamp, bc as uniqueIndex, b4 as uuid } from '../relations-
|
|
3
|
-
export { c as PgDatabase, d as PgDelete, f as PgInsert, e as PgInsertBuilder, g as PgRefreshMaterializedView, a as PgSession, b as PgTransaction, i as PgUpdate, h as PgUpdateBuilder, P as PreparedQuery } from '../session-
|
|
1
|
+
import { T as TableAliasProxyHandler, ax as PgColumnBuilder, ay as PgColumn, az as pgTableWithSchema, aA as pgViewWithSchema, aB as pgMaterializedViewWithSchema } from '../relations-c9e54a8f.mjs';
|
|
2
|
+
export { aD as Check, aC as CheckBuilder, bu as DefaultViewBuilderCore, b6 as ForeignKey, b5 as ForeignKeyBuilder, ba as Index, b9 as IndexBuilder, b8 as IndexBuilderOn, bk as InlineForeignKeys, bz as ManualMaterializedViewBuilder, bw as ManualViewBuilder, by as MaterializedViewBuilder, bx as MaterializedViewBuilderCore, aG as PgArray, aF as PgArrayBuilder, aI as PgDate, aH as PgDateBuilder, aK as PgDateString, aJ as PgDateStringBuilder, aw as PgDialect, aN as PgJson, aM as PgJsonBuilder, aQ as PgJsonb, aP as PgJsonbBuilder, bE as PgMaterializedView, bD as PgMaterializedViewConfig, aT as PgNumeric, aS as PgNumericBuilder, bj as PgSelect, bh as PgSelectBuilder, bi as PgSelectQueryBuilder, bl as PgTable, aX as PgTime, aW as PgTimeBuilder, a_ as PgTimestamp, aZ as PgTimestampBuilder, b0 as PgTimestampString, a$ as PgTimestampStringBuilder, b3 as PgUUID, b2 as PgUUIDBuilder, bC as PgView, bA as PgViewBase, bB as PgViewConfig, bf as PrimaryKey, be as PrimaryKeyBuilder, bg as QueryBuilder, bv as ViewBuilder, aE as check, aL as date, aV as decimal, b7 as foreignKey, bq as getMaterializedViewConfig, bo as getTableConfig, bp as getViewConfig, bb as index, aO as json, aR as jsonb, bt as makePgArray, aU as numeric, bs as parsePgArray, br as parsePgNestedArray, bG as pgMaterializedView, bm as pgTable, bn as pgTableCreator, bF as pgView, bd as primaryKey, aY as time, b1 as timestamp, bc as uniqueIndex, b4 as uuid } from '../relations-c9e54a8f.mjs';
|
|
3
|
+
export { c as PgDatabase, d as PgDelete, f as PgInsert, e as PgInsertBuilder, g as PgRefreshMaterializedView, a as PgSession, b as PgTransaction, i as PgUpdate, h as PgUpdateBuilder, P as PreparedQuery } from '../session-52661b2a.mjs';
|
|
4
4
|
import '../errors-bb636d84.mjs';
|
|
5
5
|
|
|
6
6
|
function alias(table, alias) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var logger = require('../logger-caa1ca6e.cjs');
|
|
4
|
-
var session = require('../session-
|
|
5
|
-
var relations = require('../relations-
|
|
4
|
+
var session = require('../session-2deccd2c.cjs');
|
|
5
|
+
var relations = require('../relations-23963f0c.cjs');
|
|
6
6
|
require('../errors-d0192d62.cjs');
|
|
7
7
|
|
|
8
8
|
class PlanetScalePreparedQuery extends session.PreparedQuery {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { N as NoopLogger, D as DefaultLogger } from '../logger-caf75bde.mjs';
|
|
2
|
-
import { P as PreparedQuery, t as MySqlSession, u as MySqlTransaction, g as MySqlDatabase, h as MySqlDialect } from '../session-
|
|
3
|
-
import { a9 as fillPlaceholders, ao as mapResultRow, a6 as sql, K as extractTablesRelationalConfig, U as createTableRelationsHelpers } from '../relations-
|
|
2
|
+
import { P as PreparedQuery, t as MySqlSession, u as MySqlTransaction, g as MySqlDatabase, h as MySqlDialect } from '../session-ee2e06f0.mjs';
|
|
3
|
+
import { a9 as fillPlaceholders, ao as mapResultRow, a6 as sql, K as extractTablesRelationalConfig, U as createTableRelationsHelpers } from '../relations-c9e54a8f.mjs';
|
|
4
4
|
import '../errors-bb636d84.mjs';
|
|
5
5
|
|
|
6
6
|
class PlanetScalePreparedQuery extends PreparedQuery {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"migrator.cjs","sources":["../../src/planetscale-serverless/migrator.ts"],"sourcesContent":[null],"names":["readMigrationFiles"],"mappings":";;;;;;;AAIO,eAAe,OAAO,
|
|
1
|
+
{"version":3,"file":"migrator.cjs","sources":["../../src/planetscale-serverless/migrator.ts"],"sourcesContent":[null],"names":["readMigrationFiles"],"mappings":";;;;;;;AAIO,eAAe,OAAO,CAC5B,EAAgC,EAChC,MAAuB,EAAA;AAEvB,IAAA,MAAM,UAAU,GAAGA,2BAAkB,CAAC,MAAM,CAAC,CAAC;AAC9C,IAAA,MAAM,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC,UAAU,EAAE,EAAE,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;AAC1D;;;;"}
|
|
@@ -7,6 +7,6 @@ import '../select.types.d-34d7f74e.js';
|
|
|
7
7
|
import '../query-promise.d-3b15626b.js';
|
|
8
8
|
import 'mysql2/promise';
|
|
9
9
|
|
|
10
|
-
declare function migrate(db: PlanetScaleDatabase
|
|
10
|
+
declare function migrate<TSchema extends Record<string, unknown>>(db: PlanetScaleDatabase<TSchema>, config: MigrationConfig): Promise<void>;
|
|
11
11
|
|
|
12
12
|
export { migrate };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"migrator.mjs","sources":["../../src/planetscale-serverless/migrator.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;AAIO,eAAe,OAAO,
|
|
1
|
+
{"version":3,"file":"migrator.mjs","sources":["../../src/planetscale-serverless/migrator.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;AAIO,eAAe,OAAO,CAC5B,EAAgC,EAChC,MAAuB,EAAA;AAEvB,IAAA,MAAM,UAAU,GAAG,kBAAkB,CAAC,MAAM,CAAC,CAAC;AAC9C,IAAA,MAAM,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC,UAAU,EAAE,EAAE,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;AAC1D;;;;"}
|
package/postgres-js/index.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var logger = require('../logger-caa1ca6e.cjs');
|
|
4
|
-
var session = require('../session-
|
|
5
|
-
var relations = require('../relations-
|
|
4
|
+
var session = require('../session-3ff31b4b.cjs');
|
|
5
|
+
var relations = require('../relations-23963f0c.cjs');
|
|
6
6
|
require('../errors-d0192d62.cjs');
|
|
7
7
|
|
|
8
8
|
class PostgresJsPreparedQuery extends session.PreparedQuery {
|
package/postgres-js/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { N as NoopLogger, D as DefaultLogger } from '../logger-caf75bde.mjs';
|
|
2
|
-
import { P as PreparedQuery, a as PgSession, b as PgTransaction, c as PgDatabase } from '../session-
|
|
3
|
-
import { a9 as fillPlaceholders, ao as mapResultRow, K as extractTablesRelationalConfig, U as createTableRelationsHelpers, aw as PgDialect } from '../relations-
|
|
2
|
+
import { P as PreparedQuery, a as PgSession, b as PgTransaction, c as PgDatabase } from '../session-52661b2a.mjs';
|
|
3
|
+
import { a9 as fillPlaceholders, ao as mapResultRow, K as extractTablesRelationalConfig, U as createTableRelationsHelpers, aw as PgDialect } from '../relations-c9e54a8f.mjs';
|
|
4
4
|
import '../errors-bb636d84.mjs';
|
|
5
5
|
|
|
6
6
|
class PostgresJsPreparedQuery extends PreparedQuery {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"migrator.cjs","sources":["../../src/postgres-js/migrator.ts"],"sourcesContent":[null],"names":["readMigrationFiles"],"mappings":";;;;;;;AAIO,eAAe,OAAO,
|
|
1
|
+
{"version":3,"file":"migrator.cjs","sources":["../../src/postgres-js/migrator.ts"],"sourcesContent":[null],"names":["readMigrationFiles"],"mappings":";;;;;;;AAIO,eAAe,OAAO,CAC5B,EAA+B,EAC/B,MAAgC,EAAA;AAEhC,IAAA,MAAM,UAAU,GAAGA,2BAAkB,CAAC,MAAM,CAAC,CAAC;AAC9C,IAAA,MAAM,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC,UAAU,EAAE,EAAE,CAAC,OAAO,CAAC,CAAC;AAClD;;;;"}
|
|
@@ -6,6 +6,6 @@ import '../column.d-c31e7ad3.js';
|
|
|
6
6
|
import '../query-promise.d-3b15626b.js';
|
|
7
7
|
import '../select.types.d-34d7f74e.js';
|
|
8
8
|
|
|
9
|
-
declare function migrate(db: PostgresJsDatabase
|
|
9
|
+
declare function migrate<TSchema extends Record<string, unknown>>(db: PostgresJsDatabase<TSchema>, config: string | MigrationConfig): Promise<void>;
|
|
10
10
|
|
|
11
11
|
export { migrate };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"migrator.mjs","sources":["../../src/postgres-js/migrator.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;AAIO,eAAe,OAAO,
|
|
1
|
+
{"version":3,"file":"migrator.mjs","sources":["../../src/postgres-js/migrator.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;AAIO,eAAe,OAAO,CAC5B,EAA+B,EAC/B,MAAgC,EAAA;AAEhC,IAAA,MAAM,UAAU,GAAG,kBAAkB,CAAC,MAAM,CAAC,CAAC;AAC9C,IAAA,MAAM,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC,UAAU,EAAE,EAAE,CAAC,OAAO,CAAC,CAAC;AAClD;;;;"}
|
|
@@ -1668,8 +1668,11 @@ class PgDialect {
|
|
|
1668
1668
|
const relationOrderBySql = relationOrderBy?.length
|
|
1669
1669
|
? sql ` order by ${sql.join(relationOrderBy, sql `, `)}`
|
|
1670
1670
|
: undefined;
|
|
1671
|
-
const elseField = sql `json_agg(json_build_array(${sql.join(builtRelation.selection.map(({ dbKey: key }) => {
|
|
1672
|
-
|
|
1671
|
+
const elseField = sql `json_agg(json_build_array(${sql.join(builtRelation.selection.map(({ dbKey: key, isJson }) => {
|
|
1672
|
+
let field = sql `${sql.identifier(relationAlias)}.${sql.identifier(key)}`;
|
|
1673
|
+
if (isJson) {
|
|
1674
|
+
field = sql `${field}::json`;
|
|
1675
|
+
}
|
|
1673
1676
|
return field;
|
|
1674
1677
|
}), sql `, `)})${relationOrderBySql})`;
|
|
1675
1678
|
if (selectedRelations.length > 1) {
|
|
@@ -3120,4 +3123,4 @@ exports.time = time;
|
|
|
3120
3123
|
exports.timestamp = timestamp;
|
|
3121
3124
|
exports.uniqueIndex = uniqueIndex;
|
|
3122
3125
|
exports.uuid = uuid;
|
|
3123
|
-
//# sourceMappingURL=relations-
|
|
3126
|
+
//# sourceMappingURL=relations-23963f0c.cjs.map
|