drizzle-orm 0.26.0 → 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.
Files changed (135) hide show
  1. package/aws-data-api/pg/index.cjs +2 -2
  2. package/aws-data-api/pg/index.d.ts +3 -3
  3. package/aws-data-api/pg/index.mjs +2 -2
  4. package/aws-data-api/pg/migrator.cjs.map +1 -1
  5. package/aws-data-api/pg/migrator.d.ts +4 -4
  6. package/aws-data-api/pg/migrator.mjs.map +1 -1
  7. package/better-sqlite3/index.cjs +2 -4
  8. package/better-sqlite3/index.cjs.map +1 -1
  9. package/better-sqlite3/index.d.ts +3 -3
  10. package/better-sqlite3/index.mjs +2 -4
  11. package/better-sqlite3/index.mjs.map +1 -1
  12. package/better-sqlite3/migrator.cjs.map +1 -1
  13. package/better-sqlite3/migrator.d.ts +4 -4
  14. package/better-sqlite3/migrator.mjs.map +1 -1
  15. package/bun-sqlite/index.cjs +2 -2
  16. package/bun-sqlite/index.d.ts +3 -3
  17. package/bun-sqlite/index.mjs +2 -2
  18. package/bun-sqlite/migrator.cjs.map +1 -1
  19. package/bun-sqlite/migrator.d.ts +4 -4
  20. package/bun-sqlite/migrator.mjs.map +1 -1
  21. package/d1/index.cjs +2 -2
  22. package/d1/index.d.ts +3 -3
  23. package/d1/index.mjs +2 -2
  24. package/d1/migrator.cjs.map +1 -1
  25. package/d1/migrator.d.ts +4 -4
  26. package/d1/migrator.mjs.map +1 -1
  27. package/{db.d-a2311092.d.ts → db.d-132f4f67.d.ts} +1 -1
  28. package/{db.d-bc9a1d6c.d.ts → db.d-2eb7c122.d.ts} +1 -1
  29. package/{driver.d-17ca4c15.d.ts → driver.d-0d0a6cb7.d.ts} +1 -1
  30. package/{driver.d-b2b94bf9.d.ts → driver.d-19470274.d.ts} +2 -2
  31. package/{driver.d-e54af17b.d.ts → driver.d-24f23dda.d.ts} +2 -2
  32. package/{driver.d-300ddb0e.d.ts → driver.d-27ec30dc.d.ts} +2 -2
  33. package/{driver.d-7fde2e9d.d.ts → driver.d-2880f5a4.d.ts} +2 -2
  34. package/{driver.d-1fa4589e.d.ts → driver.d-2c6c28d2.d.ts} +2 -2
  35. package/{driver.d-dea23ee6.d.ts → driver.d-323f603a.d.ts} +1 -1
  36. package/{driver.d-9d703b84.d.ts → driver.d-4469f445.d.ts} +1 -1
  37. package/{driver.d-eb490c91.d.ts → driver.d-5c39be67.d.ts} +1 -1
  38. package/{driver.d-b70ee7ee.d.ts → driver.d-6fb29dde.d.ts} +2 -2
  39. package/{driver.d-64f2125c.d.ts → driver.d-86800af3.d.ts} +1 -1
  40. package/{driver.d-ef6fa2df.d.ts → driver.d-c201cb6c.d.ts} +1 -1
  41. package/{driver.d-45e56643.d.ts → driver.d-f3926c10.d.ts} +2 -2
  42. package/index.cjs +1 -1
  43. package/index.d.ts +2 -2
  44. package/index.mjs +1 -1
  45. package/libsql/index.cjs +2 -2
  46. package/libsql/index.d.ts +3 -3
  47. package/libsql/index.mjs +2 -2
  48. package/libsql/migrator.cjs.map +1 -1
  49. package/libsql/migrator.d.ts +4 -4
  50. package/libsql/migrator.mjs.map +1 -1
  51. package/mysql-core/index.cjs +2 -2
  52. package/mysql-core/index.d.ts +3 -3
  53. package/mysql-core/index.mjs +3 -3
  54. package/mysql2/index.cjs +2 -2
  55. package/mysql2/index.d.ts +3 -3
  56. package/mysql2/index.mjs +2 -2
  57. package/mysql2/migrator.cjs.map +1 -1
  58. package/mysql2/migrator.d.ts +4 -4
  59. package/mysql2/migrator.mjs.map +1 -1
  60. package/neon-serverless/index.cjs +2 -2
  61. package/neon-serverless/index.d.ts +3 -3
  62. package/neon-serverless/index.mjs +2 -2
  63. package/neon-serverless/migrator.cjs.map +1 -1
  64. package/neon-serverless/migrator.d.ts +4 -4
  65. package/neon-serverless/migrator.mjs.map +1 -1
  66. package/node-postgres/index.cjs +2 -2
  67. package/node-postgres/index.d.ts +3 -3
  68. package/node-postgres/index.mjs +2 -2
  69. package/node-postgres/migrator.cjs.map +1 -1
  70. package/node-postgres/migrator.d.ts +4 -4
  71. package/node-postgres/migrator.mjs.map +1 -1
  72. package/package.json +1 -1
  73. package/pg-core/index.cjs +2 -2
  74. package/pg-core/index.d.ts +3 -3
  75. package/pg-core/index.mjs +3 -3
  76. package/planetscale-serverless/index.cjs +2 -2
  77. package/planetscale-serverless/index.d.ts +3 -3
  78. package/planetscale-serverless/index.mjs +2 -2
  79. package/planetscale-serverless/migrator.cjs.map +1 -1
  80. package/planetscale-serverless/migrator.d.ts +4 -4
  81. package/planetscale-serverless/migrator.mjs.map +1 -1
  82. package/postgres-js/index.cjs +2 -2
  83. package/postgres-js/index.d.ts +3 -3
  84. package/postgres-js/index.mjs +2 -2
  85. package/postgres-js/migrator.cjs.map +1 -1
  86. package/postgres-js/migrator.d.ts +4 -4
  87. package/postgres-js/migrator.mjs.map +1 -1
  88. package/{query-promise.d-e370e0a9.d.ts → query-promise.d-3b15626b.d.ts} +1 -1
  89. package/{relations-421f2ba6.cjs → relations-23963f0c.cjs} +90 -81
  90. package/{relations-421f2ba6.cjs.map → relations-23963f0c.cjs.map} +1 -1
  91. package/{relations-7adf6be2.mjs → relations-c9e54a8f.mjs} +90 -81
  92. package/{relations-7adf6be2.mjs.map → relations-c9e54a8f.mjs.map} +1 -1
  93. package/{select.types.d-ae2f8e44.d.ts → select.types.d-75d13797.d.ts} +1 -1
  94. package/{session-0ad93aaa.cjs → session-2deccd2c.cjs} +64 -71
  95. package/session-2deccd2c.cjs.map +1 -0
  96. package/{session-08a2429e.cjs → session-3ff31b4b.cjs} +2 -2
  97. package/{session-08a2429e.cjs.map → session-3ff31b4b.cjs.map} +1 -1
  98. package/{session-f5e916c4.mjs → session-52661b2a.mjs} +2 -2
  99. package/{session-f5e916c4.mjs.map → session-52661b2a.mjs.map} +1 -1
  100. package/{session-9698d190.cjs → session-6ac9db37.cjs} +60 -71
  101. package/session-6ac9db37.cjs.map +1 -0
  102. package/{session-686f8b9d.mjs → session-dbcddf1b.mjs} +60 -71
  103. package/session-dbcddf1b.mjs.map +1 -0
  104. package/{session-6deff015.mjs → session-ee2e06f0.mjs} +64 -71
  105. package/session-ee2e06f0.mjs.map +1 -0
  106. package/sql-js/index.cjs +2 -2
  107. package/sql-js/index.d.ts +3 -3
  108. package/sql-js/index.mjs +2 -2
  109. package/sql-js/migrator.cjs.map +1 -1
  110. package/sql-js/migrator.d.ts +4 -4
  111. package/sql-js/migrator.mjs.map +1 -1
  112. package/sqlite-core/index.cjs +2 -2
  113. package/sqlite-core/index.d.ts +3 -3
  114. package/sqlite-core/index.mjs +3 -3
  115. package/sqlite-proxy/index.cjs +2 -2
  116. package/sqlite-proxy/index.d.ts +4 -4
  117. package/sqlite-proxy/index.mjs +2 -2
  118. package/sqlite-proxy/migrator.cjs +3 -2
  119. package/sqlite-proxy/migrator.cjs.map +1 -1
  120. package/sqlite-proxy/migrator.d.ts +4 -4
  121. package/sqlite-proxy/migrator.mjs +3 -2
  122. package/sqlite-proxy/migrator.mjs.map +1 -1
  123. package/vercel-postgres/index.cjs +2 -2
  124. package/vercel-postgres/index.d.ts +3 -3
  125. package/vercel-postgres/index.mjs +2 -2
  126. package/vercel-postgres/migrator.cjs.map +1 -1
  127. package/vercel-postgres/migrator.d.ts +4 -4
  128. package/vercel-postgres/migrator.mjs.map +1 -1
  129. package/version.cjs +1 -1
  130. package/version.d.ts +1 -1
  131. package/version.mjs +1 -1
  132. package/session-0ad93aaa.cjs.map +0 -1
  133. package/session-686f8b9d.mjs.map +0 -1
  134. package/session-6deff015.mjs.map +0 -1
  135. package/session-9698d190.cjs.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"migrator.mjs","sources":["../../src/libsql/migrator.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;AAIgB,SAAA,OAAO,CAAC,EAAkB,EAAE,MAAuB,EAAA;AAClE,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;;;;"}
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;;;;"}
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var relations = require('../relations-421f2ba6.cjs');
4
- var session = require('../session-0ad93aaa.cjs');
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) {
@@ -1,8 +1,8 @@
1
- import { M as MySqlColumnBuilderWithAutoIncrement, a as MySqlColumnWithAutoIncrement, b as MySqlColumnBuilder, c as MySqlColumn, A as AnyMySqlTable, B as BuildAliasTable, d as MySqlTableFn, m as mysqlView, e as AnyMySqlColumn, I as Index, F as ForeignKey, C as Check, P as PrimaryKey, f as MySqlView } from '../select.types.d-ae2f8e44.js';
2
- export { r as AnyForeignKeyBuilder, v as AnyIndexBuilder, k as AnyMySqlColumnBuilder, L as AnyMySqlInsertConfig, Y as AnyMySqlSelect, g as CheckBuilder, q as ForeignKeyBuilder, G as GetColumnsTable, x as GetColumnsTableName, w as IndexBuilder, u as IndexBuilderOn, t as IndexColumn, _ as JoinFn, X as JoinsValue, a3 as LockConfig, a2 as LockStrength, ay as ManualViewBuilder, i as MySqlColumnBuilderHKT, j as MySqlColumnHKT, l as MySqlColumnWithAutoIncrementConfig, n as MySqlDatabase, J as MySqlDelete, H as MySqlDeleteConfig, o as MySqlDialect, Q as MySqlInsert, O as MySqlInsertBuilder, K as MySqlInsertConfig, N as MySqlInsertValue, W as MySqlSelect, T as MySqlSelectBuilder, Z as MySqlSelectConfig, a7 as MySqlSelectHKT, a4 as MySqlSelectHKTBase, a5 as MySqlSelectKind, V as MySqlSelectQueryBuilder, a6 as MySqlSelectQueryBuilderHKT, aj as MySqlSession, aq as MySqlTable, ao as MySqlTableExtraConfig, ar as MySqlTableWithColumns, ak as MySqlTransaction, ai as MySqlTransactionConfig, ab as MySqlUpdate, aa as MySqlUpdateBuilder, a8 as MySqlUpdateConfig, a9 as MySqlUpdateSetSource, az as MySqlViewBase, aA as MySqlViewConfig, aB as MySqlViewWithSelection, ah as PreparedQuery, ae as PreparedQueryConfig, af as PreparedQueryHKT, al as PreparedQueryHKTBase, ag as PreparedQueryKind, E as PrimaryKeyBuilder, S as QueryBuilder, ac as QueryResultHKT, ad as QueryResultKind, p as Reference, R as ReferenceConfig, a0 as SelectedFields, $ as SelectedFieldsFlat, a1 as SelectedFieldsOrdered, am as SubqueryWithSelection, ap as TableConfig, U as UpdateDeleteAction, ax as ViewBuilder, av as ViewBuilderConfig, aw as ViewBuilderCore, an as WithSubqueryWithSelection, h as check, s as foreignKey, y as index, at as mysqlTable, au as mysqlTableCreator, as as mysqlTableWithSchema, D as primaryKey, z as uniqueIndex } from '../select.types.d-ae2f8e44.js';
1
+ import { M as MySqlColumnBuilderWithAutoIncrement, a as MySqlColumnWithAutoIncrement, b as MySqlColumnBuilder, c as MySqlColumn, A as AnyMySqlTable, B as BuildAliasTable, d as MySqlTableFn, m as mysqlView, e as AnyMySqlColumn, I as Index, F as ForeignKey, C as Check, P as PrimaryKey, f as MySqlView } from '../select.types.d-75d13797.js';
2
+ export { r as AnyForeignKeyBuilder, v as AnyIndexBuilder, k as AnyMySqlColumnBuilder, L as AnyMySqlInsertConfig, Y as AnyMySqlSelect, g as CheckBuilder, q as ForeignKeyBuilder, G as GetColumnsTable, x as GetColumnsTableName, w as IndexBuilder, u as IndexBuilderOn, t as IndexColumn, _ as JoinFn, X as JoinsValue, a3 as LockConfig, a2 as LockStrength, ay as ManualViewBuilder, i as MySqlColumnBuilderHKT, j as MySqlColumnHKT, l as MySqlColumnWithAutoIncrementConfig, n as MySqlDatabase, J as MySqlDelete, H as MySqlDeleteConfig, o as MySqlDialect, Q as MySqlInsert, O as MySqlInsertBuilder, K as MySqlInsertConfig, N as MySqlInsertValue, W as MySqlSelect, T as MySqlSelectBuilder, Z as MySqlSelectConfig, a7 as MySqlSelectHKT, a4 as MySqlSelectHKTBase, a5 as MySqlSelectKind, V as MySqlSelectQueryBuilder, a6 as MySqlSelectQueryBuilderHKT, aj as MySqlSession, aq as MySqlTable, ao as MySqlTableExtraConfig, ar as MySqlTableWithColumns, ak as MySqlTransaction, ai as MySqlTransactionConfig, ab as MySqlUpdate, aa as MySqlUpdateBuilder, a8 as MySqlUpdateConfig, a9 as MySqlUpdateSetSource, az as MySqlViewBase, aA as MySqlViewConfig, aB as MySqlViewWithSelection, ah as PreparedQuery, ae as PreparedQueryConfig, af as PreparedQueryHKT, al as PreparedQueryHKTBase, ag as PreparedQueryKind, E as PrimaryKeyBuilder, S as QueryBuilder, ac as QueryResultHKT, ad as QueryResultKind, p as Reference, R as ReferenceConfig, a0 as SelectedFields, $ as SelectedFieldsFlat, a1 as SelectedFieldsOrdered, am as SubqueryWithSelection, ap as TableConfig, U as UpdateDeleteAction, ax as ViewBuilder, av as ViewBuilderConfig, aw as ViewBuilderCore, an as WithSubqueryWithSelection, h as check, s as foreignKey, y as index, at as mysqlTable, au as mysqlTableCreator, as as mysqlTableWithSchema, D as primaryKey, z as uniqueIndex } from '../select.types.d-75d13797.js';
3
3
  import { k as ColumnBuilderHKTBase, ax as Assume, i as ColumnBuilderBaseConfig, b as ColumnHKTBase, C as ColumnBaseConfig, W as WithEnum, aE as Writable, av as Simplify, ay as Equal, S as SQL, l as ColumnBuilderKind, q as UpdateCBConfig, x as SelectedFields, A as AnyColumn, T as Table, ag as TableConfig } from '../column.d-c31e7ad3.js';
4
4
  import '../select.types.d-34d7f74e.js';
5
- import '../query-promise.d-e370e0a9.js';
5
+ import '../query-promise.d-3b15626b.js';
6
6
  import 'mysql2/promise';
7
7
  import '../migrator.js';
8
8
 
@@ -1,6 +1,6 @@
1
- import { T as TableAliasProxyHandler, a6 as sql, al as Table, au as ViewBaseConfig } from '../relations-7adf6be2.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-6deff015.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-6deff015.mjs';
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-0ad93aaa.cjs');
5
- var relations = require('../relations-421f2ba6.cjs');
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.d.ts CHANGED
@@ -1,8 +1,8 @@
1
- export { c as MySql2Client, b as MySql2Database, a as MySql2Driver, h as MySql2PreparedQuery, m as MySql2PreparedQueryHKT, l as MySql2QueryResultHKT, j as MySql2Session, i as MySql2SessionOptions, k as MySql2Transaction, M as MySqlDriverOptions, g as MySqlQueryResult, f as MySqlQueryResultType, e as MySqlRawQueryResult, d as drizzle } from '../driver.d-45e56643.js';
2
- export { n as MySqlDatabase } from '../select.types.d-ae2f8e44.js';
1
+ export { c as MySql2Client, b as MySql2Database, a as MySql2Driver, h as MySql2PreparedQuery, m as MySql2PreparedQueryHKT, l as MySql2QueryResultHKT, j as MySql2Session, i as MySql2SessionOptions, k as MySql2Transaction, M as MySqlDriverOptions, g as MySqlQueryResult, f as MySqlQueryResultType, e as MySqlRawQueryResult, d as drizzle } from '../driver.d-f3926c10.js';
2
+ export { n as MySqlDatabase } from '../select.types.d-75d13797.js';
3
3
  import 'mysql2';
4
4
  import '../column.d-c31e7ad3.js';
5
- import '../query-promise.d-e370e0a9.js';
5
+ import '../query-promise.d-3b15626b.js';
6
6
  import 'mysql2/promise';
7
7
  import '../select.types.d-34d7f74e.js';
8
8
  import '../migrator.js';
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-6deff015.mjs';
3
- import { a9 as fillPlaceholders, ao as mapResultRow, a6 as sql, K as extractTablesRelationalConfig, U as createTableRelationsHelpers } from '../relations-7adf6be2.mjs';
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
 
@@ -1 +1 @@
1
- {"version":3,"file":"migrator.cjs","sources":["../../src/mysql2/migrator.ts"],"sourcesContent":[null],"names":["readMigrationFiles"],"mappings":";;;;;;;AAIO,eAAe,OAAO,CAAC,EAAkB,EAAE,MAAuB,EAAA;AACxE,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;;;;"}
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;;;;"}
@@ -1,12 +1,12 @@
1
1
  import { MigrationConfig } from '../migrator.js';
2
- import { b as MySql2Database } from '../driver.d-45e56643.js';
2
+ import { b as MySql2Database } from '../driver.d-f3926c10.js';
3
3
  import 'mysql2';
4
4
  import '../column.d-c31e7ad3.js';
5
- import '../select.types.d-ae2f8e44.js';
5
+ import '../select.types.d-75d13797.js';
6
6
  import '../select.types.d-34d7f74e.js';
7
- import '../query-promise.d-e370e0a9.js';
7
+ import '../query-promise.d-3b15626b.js';
8
8
  import 'mysql2/promise';
9
9
 
10
- declare function migrate(db: MySql2Database, config: MigrationConfig): Promise<void>;
10
+ declare function migrate<TSchema extends Record<string, unknown>>(db: MySql2Database<TSchema>, config: MigrationConfig): Promise<void>;
11
11
 
12
12
  export { migrate };
@@ -1 +1 @@
1
- {"version":3,"file":"migrator.mjs","sources":["../../src/mysql2/migrator.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;AAIO,eAAe,OAAO,CAAC,EAAkB,EAAE,MAAuB,EAAA;AACxE,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;;;;"}
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-08a2429e.cjs');
6
- var relations = require('../relations-421f2ba6.cjs');
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
- export { c as NeonClient, b as NeonDatabase, a as NeonDriver, N as NeonDriverOptions, e as NeonPreparedQuery, i as NeonQueryResultHKT, g as NeonSession, f as NeonSessionOptions, h as NeonTransaction, d as drizzle } from '../driver.d-7fde2e9d.js';
1
+ export { c as NeonClient, b as NeonDatabase, a as NeonDriver, N as NeonDriverOptions, e as NeonPreparedQuery, i as NeonQueryResultHKT, g as NeonSession, f as NeonSessionOptions, h as NeonTransaction, d as drizzle } from '../driver.d-2880f5a4.js';
2
2
  import '../column.d-c31e7ad3.js';
3
- import '../db.d-bc9a1d6c.js';
3
+ import '../db.d-2eb7c122.js';
4
4
  import '../migrator.js';
5
- import '../query-promise.d-e370e0a9.js';
5
+ import '../query-promise.d-3b15626b.js';
6
6
  import '../select.types.d-34d7f74e.js';
7
7
  import '@neondatabase/serverless';
@@ -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-f5e916c4.mjs';
4
- import { a9 as fillPlaceholders, ao as mapResultRow, a6 as sql, K as extractTablesRelationalConfig, U as createTableRelationsHelpers, aw as PgDialect } from '../relations-7adf6be2.mjs';
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,CAAC,EAAgB,EAAE,MAAgC,EAAA;AAC/E,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;;;;"}
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;;;;"}
@@ -1,11 +1,11 @@
1
1
  import { MigrationConfig } from '../migrator.js';
2
- import { b as NeonDatabase } from '../driver.d-7fde2e9d.js';
2
+ import { b as NeonDatabase } from '../driver.d-2880f5a4.js';
3
3
  import '../column.d-c31e7ad3.js';
4
- import '../db.d-bc9a1d6c.js';
5
- import '../query-promise.d-e370e0a9.js';
4
+ import '../db.d-2eb7c122.js';
5
+ 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, config: string | MigrationConfig): Promise<void>;
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,CAAC,EAAgB,EAAE,MAAgC,EAAA;AAC/E,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;;;;"}
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;;;;"}
@@ -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-08a2429e.cjs');
6
- var relations = require('../relations-421f2ba6.cjs');
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;
@@ -1,7 +1,7 @@
1
- export { b as NodePgClient, a as NodePgDatabase, N as NodePgDriver, c as NodePgPreparedQuery, h as NodePgQueryResultHKT, f as NodePgSession, e as NodePgSessionOptions, g as NodePgTransaction, P as PgDriverOptions, d as drizzle } from '../driver.d-b70ee7ee.js';
1
+ export { b as NodePgClient, a as NodePgDatabase, N as NodePgDriver, c as NodePgPreparedQuery, h as NodePgQueryResultHKT, f as NodePgSession, e as NodePgSessionOptions, g as NodePgTransaction, P as PgDriverOptions, d as drizzle } from '../driver.d-6fb29dde.js';
2
2
  import '../column.d-c31e7ad3.js';
3
- import '../db.d-bc9a1d6c.js';
3
+ import '../db.d-2eb7c122.js';
4
4
  import '../migrator.js';
5
- import '../query-promise.d-e370e0a9.js';
5
+ import '../query-promise.d-3b15626b.js';
6
6
  import '../select.types.d-34d7f74e.js';
7
7
  import 'pg';
@@ -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-f5e916c4.mjs';
4
- import { a9 as fillPlaceholders, ao as mapResultRow, a6 as sql, K as extractTablesRelationalConfig, U as createTableRelationsHelpers, aw as PgDialect } from '../relations-7adf6be2.mjs';
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,CAAC,EAAkB,EAAE,MAAgC,EAAA;AACjF,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;;;;"}
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;;;;"}
@@ -1,11 +1,11 @@
1
1
  import { MigrationConfig } from '../migrator.js';
2
- import { a as NodePgDatabase } from '../driver.d-b70ee7ee.js';
2
+ import { a as NodePgDatabase } from '../driver.d-6fb29dde.js';
3
3
  import '../column.d-c31e7ad3.js';
4
- import '../db.d-bc9a1d6c.js';
5
- import '../query-promise.d-e370e0a9.js';
4
+ import '../db.d-2eb7c122.js';
5
+ 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, config: string | MigrationConfig): Promise<void>;
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,CAAC,EAAkB,EAAE,MAAgC,EAAA;AACjF,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;;;;"}
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "drizzle-orm",
3
- "version": "0.26.0",
3
+ "version": "0.26.1-c8de0ba",
4
4
  "description": "Drizzle ORM package for SQL databases",
5
5
  "type": "module",
6
6
  "scripts": {
package/pg-core/index.cjs CHANGED
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var relations = require('../relations-421f2ba6.cjs');
4
- var session = require('../session-08a2429e.cjs');
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) {
@@ -1,8 +1,8 @@
1
- import { g as PgColumnBuilder, h as PgColumn, A as AnyPgTable, B as BuildAliasTable, i as PgTableFn, p as pgView, j as pgMaterializedView, k as AnyPgColumn, I as Index, F as ForeignKey, C as Check, l as PrimaryKey, m as PgView, V as ViewWithConfig, n as PgMaterializedView, o as PgMaterializedViewWithConfig } from '../db.d-bc9a1d6c.js';
2
- export { G as AnyForeignKeyBuilder, L as AnyIndexBuilder, y as AnyPgColumnBuilder, z as AnyPgColumnHKT, a8 as AnyPgSelect, at as AnyPgTableHKT, q as CheckBuilder, ax as DefaultViewBuilderCore, E as ForeignKeyBuilder, N as GetColumnsTableName, M as IndexBuilder, K as IndexBuilderOn, J as IndexColumn, aa as JoinFn, a7 as JoinsValue, ae as LockConfig, ad as LockStrength, aC as ManualMaterializedViewBuilder, az as ManualViewBuilder, aB as MaterializedViewBuilder, aA as MaterializedViewBuilderCore, v as PgArray, u as PgArrayBuilder, s as PgArrayBuilderHKT, t as PgArrayHKT, w as PgColumnBuilderHKT, x as PgColumnHKT, f as PgDatabase, Z as PgDelete, Y as PgDeleteConfig, c as PgDialect, a1 as PgInsert, a0 as PgInsertBuilder, _ as PgInsertConfig, $ as PgInsertValue, aG as PgMaterializedViewConfig, aH as PgMaterializedViewWithSelection, a3 as PgRefreshMaterializedView, a6 as PgSelect, a4 as PgSelectBuilder, a9 as PgSelectConfig, ai as PgSelectHKT, af as PgSelectHKTBase, ag as PgSelectKind, a5 as PgSelectQueryBuilder, ah as PgSelectQueryBuilderHKT, b as PgSession, as as PgTable, aq as PgTableExtraConfig, au as PgTableWithColumns, e as PgTransaction, d as PgTransactionConfig, am as PgUpdate, al as PgUpdateBuilder, aj as PgUpdateConfig, ak as PgUpdateSetSource, aD as PgViewBase, aE as PgViewConfig, aF as PgViewWithSelection, a as PreparedQuery, P as PreparedQueryConfig, X as PrimaryKeyBuilder, a2 as QueryBuilder, Q as QueryResultHKT, an as QueryResultKind, D as Reference, R as ReferenceConfig, ac as SelectedFields, ab as SelectedFieldsFlat, S as SelectedFieldsOrdered, ao as SubqueryWithSelection, ar as TableConfig, U as UpdateDeleteAction, ay as ViewBuilder, ap as WithSubqueryWithSelection, r as check, H as foreignKey, O as index, av as pgTable, aw as pgTableCreator, W as primaryKey, T as uniqueIndex } from '../db.d-bc9a1d6c.js';
1
+ import { g as PgColumnBuilder, h as PgColumn, A as AnyPgTable, B as BuildAliasTable, i as PgTableFn, p as pgView, j as pgMaterializedView, k as AnyPgColumn, I as Index, F as ForeignKey, C as Check, l as PrimaryKey, m as PgView, V as ViewWithConfig, n as PgMaterializedView, o as PgMaterializedViewWithConfig } from '../db.d-2eb7c122.js';
2
+ export { G as AnyForeignKeyBuilder, L as AnyIndexBuilder, y as AnyPgColumnBuilder, z as AnyPgColumnHKT, a8 as AnyPgSelect, at as AnyPgTableHKT, q as CheckBuilder, ax as DefaultViewBuilderCore, E as ForeignKeyBuilder, N as GetColumnsTableName, M as IndexBuilder, K as IndexBuilderOn, J as IndexColumn, aa as JoinFn, a7 as JoinsValue, ae as LockConfig, ad as LockStrength, aC as ManualMaterializedViewBuilder, az as ManualViewBuilder, aB as MaterializedViewBuilder, aA as MaterializedViewBuilderCore, v as PgArray, u as PgArrayBuilder, s as PgArrayBuilderHKT, t as PgArrayHKT, w as PgColumnBuilderHKT, x as PgColumnHKT, f as PgDatabase, Z as PgDelete, Y as PgDeleteConfig, c as PgDialect, a1 as PgInsert, a0 as PgInsertBuilder, _ as PgInsertConfig, $ as PgInsertValue, aG as PgMaterializedViewConfig, aH as PgMaterializedViewWithSelection, a3 as PgRefreshMaterializedView, a6 as PgSelect, a4 as PgSelectBuilder, a9 as PgSelectConfig, ai as PgSelectHKT, af as PgSelectHKTBase, ag as PgSelectKind, a5 as PgSelectQueryBuilder, ah as PgSelectQueryBuilderHKT, b as PgSession, as as PgTable, aq as PgTableExtraConfig, au as PgTableWithColumns, e as PgTransaction, d as PgTransactionConfig, am as PgUpdate, al as PgUpdateBuilder, aj as PgUpdateConfig, ak as PgUpdateSetSource, aD as PgViewBase, aE as PgViewConfig, aF as PgViewWithSelection, a as PreparedQuery, P as PreparedQueryConfig, X as PrimaryKeyBuilder, a2 as QueryBuilder, Q as QueryResultHKT, an as QueryResultKind, D as Reference, R as ReferenceConfig, ac as SelectedFields, ab as SelectedFieldsFlat, S as SelectedFieldsOrdered, ao as SubqueryWithSelection, ar as TableConfig, U as UpdateDeleteAction, ay as ViewBuilder, ap as WithSubqueryWithSelection, r as check, H as foreignKey, O as index, av as pgTable, aw as pgTableCreator, W as primaryKey, T as uniqueIndex } from '../db.d-2eb7c122.js';
3
3
  import { k as ColumnBuilderHKTBase, ax as Assume, i as ColumnBuilderBaseConfig, b as ColumnHKTBase, C as ColumnBaseConfig, W as WithEnum, aE as Writable, av as Simplify, ay as Equal, S as SQL, l as ColumnBuilderKind, x as SelectedFields, A as AnyColumn, T as Table, ag as TableConfig } from '../column.d-c31e7ad3.js';
4
4
  import '../migrator.js';
5
- import '../query-promise.d-e370e0a9.js';
5
+ import '../query-promise.d-3b15626b.js';
6
6
  import '../select.types.d-34d7f74e.js';
7
7
 
8
8
  interface PgBigInt53BuilderHKT extends ColumnBuilderHKTBase {
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-7adf6be2.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-7adf6be2.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-f5e916c4.mjs';
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-0ad93aaa.cjs');
5
- var relations = require('../relations-421f2ba6.cjs');
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,8 +1,8 @@
1
- export { b as PlanetScaleConnection, a as PlanetScaleDatabase, c as PlanetScalePreparedQuery, i as PlanetScalePreparedQueryHKT, g as PlanetScaleTransaction, h as PlanetscaleQueryResultHKT, P as PlanetscaleSDriverOptions, f as PlanetscaleSession, e as PlanetscaleSessionOptions, d as drizzle } from '../driver.d-e54af17b.js';
1
+ export { b as PlanetScaleConnection, a as PlanetScaleDatabase, c as PlanetScalePreparedQuery, i as PlanetScalePreparedQueryHKT, g as PlanetScaleTransaction, h as PlanetscaleQueryResultHKT, P as PlanetscaleSDriverOptions, f as PlanetscaleSession, e as PlanetscaleSessionOptions, d as drizzle } from '../driver.d-24f23dda.js';
2
2
  import '@planetscale/database';
3
3
  import '../column.d-c31e7ad3.js';
4
- import '../select.types.d-ae2f8e44.js';
4
+ import '../select.types.d-75d13797.js';
5
5
  import '../select.types.d-34d7f74e.js';
6
- import '../query-promise.d-e370e0a9.js';
6
+ import '../query-promise.d-3b15626b.js';
7
7
  import 'mysql2/promise';
8
8
  import '../migrator.js';
@@ -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-6deff015.mjs';
3
- import { a9 as fillPlaceholders, ao as mapResultRow, a6 as sql, K as extractTablesRelationalConfig, U as createTableRelationsHelpers } from '../relations-7adf6be2.mjs';
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,CAAC,EAAuB,EAAE,MAAuB,EAAA;AAC7E,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;;;;"}
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;;;;"}
@@ -1,12 +1,12 @@
1
1
  import { MigrationConfig } from '../migrator.js';
2
- import { a as PlanetScaleDatabase } from '../driver.d-e54af17b.js';
2
+ import { a as PlanetScaleDatabase } from '../driver.d-24f23dda.js';
3
3
  import '@planetscale/database';
4
4
  import '../column.d-c31e7ad3.js';
5
- import '../select.types.d-ae2f8e44.js';
5
+ import '../select.types.d-75d13797.js';
6
6
  import '../select.types.d-34d7f74e.js';
7
- import '../query-promise.d-e370e0a9.js';
7
+ import '../query-promise.d-3b15626b.js';
8
8
  import 'mysql2/promise';
9
9
 
10
- declare function migrate(db: PlanetScaleDatabase, config: MigrationConfig): Promise<void>;
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,CAAC,EAAuB,EAAE,MAAuB,EAAA;AAC7E,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;;;;"}
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;;;;"}
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
3
  var logger = require('../logger-caa1ca6e.cjs');
4
- var session = require('../session-08a2429e.cjs');
5
- var relations = require('../relations-421f2ba6.cjs');
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 {
@@ -1,7 +1,7 @@
1
- export { P as PostgresJsDatabase, a as PostgresJsPreparedQuery, f as PostgresJsQueryResultHKT, c as PostgresJsSession, b as PostgresJsSessionOptions, e as PostgresJsTransaction, d as drizzle } from '../driver.d-b2b94bf9.js';
1
+ export { P as PostgresJsDatabase, a as PostgresJsPreparedQuery, f as PostgresJsQueryResultHKT, c as PostgresJsSession, b as PostgresJsSessionOptions, e as PostgresJsTransaction, d as drizzle } from '../driver.d-19470274.js';
2
2
  import 'postgres';
3
- import '../db.d-bc9a1d6c.js';
3
+ import '../db.d-2eb7c122.js';
4
4
  import '../column.d-c31e7ad3.js';
5
5
  import '../migrator.js';
6
- import '../query-promise.d-e370e0a9.js';
6
+ import '../query-promise.d-3b15626b.js';
7
7
  import '../select.types.d-34d7f74e.js';
@@ -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-f5e916c4.mjs';
3
- import { a9 as fillPlaceholders, ao as mapResultRow, K as extractTablesRelationalConfig, U as createTableRelationsHelpers, aw as PgDialect } from '../relations-7adf6be2.mjs';
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,CAAC,EAAsB,EAAE,MAAgC,EAAA;AACrF,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;;;;"}
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;;;;"}
@@ -1,11 +1,11 @@
1
1
  import { MigrationConfig } from '../migrator.js';
2
- import { P as PostgresJsDatabase } from '../driver.d-b2b94bf9.js';
2
+ import { P as PostgresJsDatabase } from '../driver.d-19470274.js';
3
3
  import 'postgres';
4
- import '../db.d-bc9a1d6c.js';
4
+ import '../db.d-2eb7c122.js';
5
5
  import '../column.d-c31e7ad3.js';
6
- import '../query-promise.d-e370e0a9.js';
6
+ import '../query-promise.d-3b15626b.js';
7
7
  import '../select.types.d-34d7f74e.js';
8
8
 
9
- declare function migrate(db: PostgresJsDatabase, config: string | MigrationConfig): Promise<void>;
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,CAAC,EAAsB,EAAE,MAAgC,EAAA;AACrF,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;;;;"}
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;;;;"}
@@ -602,7 +602,7 @@ interface BuildRelationalQueryResult {
602
602
  isJson: boolean;
603
603
  selection: BuildRelationalQueryResult['selection'];
604
604
  }[];
605
- sql: SQL;
605
+ sql: Table | SQL;
606
606
  }
607
607
  declare function mapRelationalRow(tablesConfig: TablesRelationalConfig, tableConfig: TableRelationalConfig, row: unknown[], buildQueryResultSelection: BuildRelationalQueryResult['selection'], jsonParseRelationalFields?: boolean, mapColumnValue?: (value: unknown) => unknown): Record<string, unknown>;
608
608