@event-driven-io/dumbo 0.13.0-beta.32 → 0.13.0-beta.34

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 (39) hide show
  1. package/dist/{chunk-4SM4JJJZ.js → chunk-33P5766L.js} +2 -2
  2. package/dist/{chunk-GVR3PSDL.cjs → chunk-4MMMEDQ7.cjs} +180 -85
  3. package/dist/chunk-4MMMEDQ7.cjs.map +1 -0
  4. package/dist/{chunk-CMHMR5VO.js → chunk-6HAHSSPW.js} +158 -168
  5. package/dist/chunk-6HAHSSPW.js.map +1 -0
  6. package/dist/{chunk-UA542GT3.cjs → chunk-GNH5XC6D.cjs} +43 -43
  7. package/dist/{chunk-UA542GT3.cjs.map → chunk-GNH5XC6D.cjs.map} +1 -1
  8. package/dist/{chunk-JKE6SULM.js → chunk-H2JBS7HM.js} +163 -68
  9. package/dist/chunk-H2JBS7HM.js.map +1 -0
  10. package/dist/{chunk-J2S3DPDR.cjs → chunk-JIZGCEPE.cjs} +216 -226
  11. package/dist/chunk-JIZGCEPE.cjs.map +1 -0
  12. package/dist/{chunk-MOPKHYYU.cjs → chunk-NJI6PJFZ.cjs} +6 -6
  13. package/dist/{chunk-MOPKHYYU.cjs.map → chunk-NJI6PJFZ.cjs.map} +1 -1
  14. package/dist/{chunk-HZM7GDOT.cjs → chunk-RQ3KKMTP.cjs} +4 -4
  15. package/dist/{chunk-HZM7GDOT.cjs.map → chunk-RQ3KKMTP.cjs.map} +1 -1
  16. package/dist/{chunk-WLWELSA2.js → chunk-UK7MXVS2.js} +2 -2
  17. package/dist/{chunk-RA2L3FQW.js → chunk-Y5TD53QE.js} +2 -2
  18. package/dist/cloudflare.cjs +60 -60
  19. package/dist/cloudflare.js +3 -3
  20. package/dist/index.cjs +5 -5
  21. package/dist/index.js +3 -3
  22. package/dist/pg.cjs +37 -37
  23. package/dist/pg.js +3 -3
  24. package/dist/postgresql.cjs +4 -4
  25. package/dist/postgresql.js +3 -3
  26. package/dist/sqlite.cjs +4 -4
  27. package/dist/sqlite.d.cts +16 -15
  28. package/dist/sqlite.d.ts +16 -15
  29. package/dist/sqlite.js +3 -3
  30. package/dist/sqlite3.cjs +29 -29
  31. package/dist/sqlite3.js +3 -3
  32. package/package.json +15 -14
  33. package/dist/chunk-CMHMR5VO.js.map +0 -1
  34. package/dist/chunk-GVR3PSDL.cjs.map +0 -1
  35. package/dist/chunk-J2S3DPDR.cjs.map +0 -1
  36. package/dist/chunk-JKE6SULM.js.map +0 -1
  37. /package/dist/{chunk-4SM4JJJZ.js.map → chunk-33P5766L.js.map} +0 -0
  38. /package/dist/{chunk-WLWELSA2.js.map → chunk-UK7MXVS2.js.map} +0 -0
  39. /package/dist/{chunk-RA2L3FQW.js.map → chunk-Y5TD53QE.js.map} +0 -0
@@ -22,12 +22,12 @@ import {
22
22
  sqliteTransaction,
23
23
  toSqlitePoolOptions,
24
24
  transactionNestingCounter
25
- } from "./chunk-CMHMR5VO.js";
25
+ } from "./chunk-6HAHSSPW.js";
26
26
  import {
27
27
  defaultSQLiteDatabase,
28
28
  sqliteMetadata,
29
29
  tableExists
30
- } from "./chunk-WLWELSA2.js";
30
+ } from "./chunk-UK7MXVS2.js";
31
31
  import {
32
32
  BatchCommandNoChangesError,
33
33
  CheckViolationError,
@@ -49,7 +49,7 @@ import {
49
49
  dumboDatabaseDriverRegistry,
50
50
  sqlExecutor,
51
51
  tracer
52
- } from "./chunk-JKE6SULM.js";
52
+ } from "./chunk-H2JBS7HM.js";
53
53
 
54
54
  // src/storage/sqlite/d1/connections/d1Client.ts
55
55
  var d1Client = (options) => {
package/dist/index.cjs CHANGED
@@ -1,5 +1,5 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }require('./chunk-MOPKHYYU.cjs');
2
- require('./chunk-HZM7GDOT.cjs');
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }require('./chunk-NJI6PJFZ.cjs');
2
+ require('./chunk-RQ3KKMTP.cjs');
3
3
 
4
4
 
5
5
 
@@ -161,7 +161,7 @@ require('./chunk-HZM7GDOT.cjs');
161
161
 
162
162
 
163
163
 
164
- var _chunkGVR3PSDLcjs = require('./chunk-GVR3PSDL.cjs');
164
+ var _chunk4MMMEDQ7cjs = require('./chunk-4MMMEDQ7.cjs');
165
165
 
166
166
  // src/storage/all/connections/connectionString.ts
167
167
  var parseConnectionString = (connectionString) => {
@@ -191,7 +191,7 @@ var parseConnectionString = (connectionString) => {
191
191
  // src/storage/all/index.ts
192
192
  function dumbo(options) {
193
193
  const { driverType } = options;
194
- const driver = _nullishCoalesce(options.driver, () => ( _chunkGVR3PSDLcjs.dumboDatabaseDriverRegistry.tryGet(options)));
194
+ const driver = _nullishCoalesce(options.driver, () => ( _chunk4MMMEDQ7cjs.dumboDatabaseDriverRegistry.tryGet(options)));
195
195
  if (driver === null) {
196
196
  throw new Error(`No plugin found for driver type: ${driverType}`);
197
197
  }
@@ -363,5 +363,5 @@ function dumbo(options) {
363
363
 
364
364
 
365
365
 
366
- exports.ANSISQLIdentifierQuote = _chunkGVR3PSDLcjs.ANSISQLIdentifierQuote; exports.ANSISQLParamPlaceholder = _chunkGVR3PSDLcjs.ANSISQLParamPlaceholder; exports.AdminShutdownError = _chunkGVR3PSDLcjs.AdminShutdownError; exports.AutoIncrementSQLColumnToken = _chunkGVR3PSDLcjs.AutoIncrementSQLColumnToken; exports.BatchCommandNoChangesError = _chunkGVR3PSDLcjs.BatchCommandNoChangesError; exports.BigIntegerToken = _chunkGVR3PSDLcjs.BigIntegerToken; exports.BigSerialToken = _chunkGVR3PSDLcjs.BigSerialToken; exports.CheckViolationError = _chunkGVR3PSDLcjs.CheckViolationError; exports.ColumnTypeToken = _chunkGVR3PSDLcjs.ColumnTypeToken; exports.ColumnURN = _chunkGVR3PSDLcjs.ColumnURN; exports.ColumnURNType = _chunkGVR3PSDLcjs.ColumnURNType; exports.ConcurrencyError = _chunkGVR3PSDLcjs.ConcurrencyError; exports.ConnectionError = _chunkGVR3PSDLcjs.ConnectionError; exports.DataError = _chunkGVR3PSDLcjs.DataError; exports.DatabaseSchemaURN = _chunkGVR3PSDLcjs.DatabaseSchemaURN; exports.DatabaseSchemaURNType = _chunkGVR3PSDLcjs.DatabaseSchemaURNType; exports.DatabaseURN = _chunkGVR3PSDLcjs.DatabaseURN; exports.DatabaseURNType = _chunkGVR3PSDLcjs.DatabaseURNType; exports.DeadlockError = _chunkGVR3PSDLcjs.DeadlockError; exports.DefaultMapSQLParamValueOptions = _chunkGVR3PSDLcjs.DefaultMapSQLParamValueOptions; exports.DumboDatabaseDriverRegistry = _chunkGVR3PSDLcjs.DumboDatabaseDriverRegistry; exports.DumboDatabaseMetadataRegistry = _chunkGVR3PSDLcjs.DumboDatabaseMetadataRegistry; exports.DumboError = _chunkGVR3PSDLcjs.DumboError; exports.ExclusionViolationError = _chunkGVR3PSDLcjs.ExclusionViolationError; exports.ExpandArrayProcessor = _chunkGVR3PSDLcjs.ExpandArrayProcessor; exports.ExpandSQLInProcessor = _chunkGVR3PSDLcjs.ExpandSQLInProcessor; exports.ForeignKeyViolationError = _chunkGVR3PSDLcjs.ForeignKeyViolationError; exports.FormatIdentifierProcessor = _chunkGVR3PSDLcjs.FormatIdentifierProcessor; exports.IndexURN = _chunkGVR3PSDLcjs.IndexURN; exports.IndexURNType = _chunkGVR3PSDLcjs.IndexURNType; exports.InsufficientResourcesError = _chunkGVR3PSDLcjs.InsufficientResourcesError; exports.IntegerToken = _chunkGVR3PSDLcjs.IntegerToken; exports.IntegrityConstraintViolationError = _chunkGVR3PSDLcjs.IntegrityConstraintViolationError; exports.InvalidOperationError = _chunkGVR3PSDLcjs.InvalidOperationError; exports.JSONBToken = _chunkGVR3PSDLcjs.JSONBToken; exports.JSONCodec = _chunkGVR3PSDLcjs.JSONCodec; exports.JSONReplacer = _chunkGVR3PSDLcjs.JSONReplacer; exports.JSONReplacers = _chunkGVR3PSDLcjs.JSONReplacers; exports.JSONReviver = _chunkGVR3PSDLcjs.JSONReviver; exports.JSONRevivers = _chunkGVR3PSDLcjs.JSONRevivers; exports.JSONSerializer = _chunkGVR3PSDLcjs.JSONSerializer; exports.LockNotAvailableError = _chunkGVR3PSDLcjs.LockNotAvailableError; exports.LogLevel = _chunkGVR3PSDLcjs.LogLevel; exports.LogStyle = _chunkGVR3PSDLcjs.LogStyle; exports.MIGRATIONS_LOCK_ID = _chunkGVR3PSDLcjs.MIGRATIONS_LOCK_ID; exports.MapLiteralProcessor = _chunkGVR3PSDLcjs.MapLiteralProcessor; exports.NoDatabaseLock = _chunkGVR3PSDLcjs.NoDatabaseLock; exports.NotNullViolationError = _chunkGVR3PSDLcjs.NotNullViolationError; exports.ParametrizedSQLBuilder = _chunkGVR3PSDLcjs.ParametrizedSQLBuilder; exports.QueryCanceledError = _chunkGVR3PSDLcjs.QueryCanceledError; exports.RawSQL = _chunkGVR3PSDLcjs.RawSQL; exports.SQL = _chunkGVR3PSDLcjs.SQL; exports.SQLArray = _chunkGVR3PSDLcjs.SQLArray; exports.SQLColumnToken = _chunkGVR3PSDLcjs.SQLColumnToken; exports.SQLColumnTypeTokens = _chunkGVR3PSDLcjs.SQLColumnTypeTokens; exports.SQLColumnTypeTokensFactory = _chunkGVR3PSDLcjs.SQLColumnTypeTokensFactory; exports.SQLFormatter = _chunkGVR3PSDLcjs.SQLFormatter; exports.SQLIdentifier = _chunkGVR3PSDLcjs.SQLIdentifier; exports.SQLIn = _chunkGVR3PSDLcjs.SQLIn; exports.SQLLiteral = _chunkGVR3PSDLcjs.SQLLiteral; exports.SQLPlain = _chunkGVR3PSDLcjs.SQLPlain; exports.SQLProcessor = _chunkGVR3PSDLcjs.SQLProcessor; exports.SQLProcessorsRegistry = _chunkGVR3PSDLcjs.SQLProcessorsRegistry; exports.SQLToken = _chunkGVR3PSDLcjs.SQLToken; exports.SQLValueMapper = _chunkGVR3PSDLcjs.SQLValueMapper; exports.SchemaComponentMigrator = _chunkGVR3PSDLcjs.SchemaComponentMigrator; exports.SerialToken = _chunkGVR3PSDLcjs.SerialToken; exports.SerializationError = _chunkGVR3PSDLcjs.SerializationError; exports.SystemError = _chunkGVR3PSDLcjs.SystemError; exports.TableURN = _chunkGVR3PSDLcjs.TableURN; exports.TableURNType = _chunkGVR3PSDLcjs.TableURNType; exports.TimestampToken = _chunkGVR3PSDLcjs.TimestampToken; exports.TimestamptzToken = _chunkGVR3PSDLcjs.TimestamptzToken; exports.TokenizedSQL = _chunkGVR3PSDLcjs.TokenizedSQL; exports.TransientDatabaseError = _chunkGVR3PSDLcjs.TransientDatabaseError; exports.UniqueConstraintError = _chunkGVR3PSDLcjs.UniqueConstraintError; exports.VarcharToken = _chunkGVR3PSDLcjs.VarcharToken; exports.ansiSqlReservedMap = _chunkGVR3PSDLcjs.ansiSqlReservedMap; exports.canHandleDriverWithConnectionString = _chunkGVR3PSDLcjs.canHandleDriverWithConnectionString; exports.color = _chunkGVR3PSDLcjs.color; exports.columnSchemaComponent = _chunkGVR3PSDLcjs.columnSchemaComponent; exports.combineMigrations = _chunkGVR3PSDLcjs.combineMigrations; exports.composeJSONReplacers = _chunkGVR3PSDLcjs.composeJSONReplacers; exports.composeJSONRevivers = _chunkGVR3PSDLcjs.composeJSONRevivers; exports.count = _chunkGVR3PSDLcjs.count; exports.createAlwaysNewConnectionPool = _chunkGVR3PSDLcjs.createAlwaysNewConnectionPool; exports.createAmbientConnection = _chunkGVR3PSDLcjs.createAmbientConnection; exports.createAmbientConnectionPool = _chunkGVR3PSDLcjs.createAmbientConnectionPool; exports.createBoundedConnectionPool = _chunkGVR3PSDLcjs.createBoundedConnectionPool; exports.createConnection = _chunkGVR3PSDLcjs.createConnection; exports.createConnectionPool = _chunkGVR3PSDLcjs.createConnectionPool; exports.createSingletonClientConnectionPool = _chunkGVR3PSDLcjs.createSingletonClientConnectionPool; exports.createSingletonConnection = _chunkGVR3PSDLcjs.createSingletonConnection; exports.createSingletonConnectionPool = _chunkGVR3PSDLcjs.createSingletonConnectionPool; exports.createTransientConnection = _chunkGVR3PSDLcjs.createTransientConnection; exports.databaseSchemaComponent = _chunkGVR3PSDLcjs.databaseSchemaComponent; exports.databaseSchemaSchemaComponent = _chunkGVR3PSDLcjs.databaseSchemaSchemaComponent; exports.defaultDatabaseLockOptions = _chunkGVR3PSDLcjs.defaultDatabaseLockOptions; exports.defaultProcessorsRegistry = _chunkGVR3PSDLcjs.defaultProcessorsRegistry; exports.describeSQL = _chunkGVR3PSDLcjs.describeSQL; exports.dumbo = dumbo; exports.dumboDatabaseDriverRegistry = _chunkGVR3PSDLcjs.dumboDatabaseDriverRegistry; exports.dumboDatabaseMetadataRegistry = _chunkGVR3PSDLcjs.dumboDatabaseMetadataRegistry; exports.dumboSchema = _chunkGVR3PSDLcjs.dumboSchema; exports.executeInAmbientConnection = _chunkGVR3PSDLcjs.executeInAmbientConnection; exports.executeInNewConnection = _chunkGVR3PSDLcjs.executeInNewConnection; exports.executeInNewDbClient = _chunkGVR3PSDLcjs.executeInNewDbClient; exports.executeInTransaction = _chunkGVR3PSDLcjs.executeInTransaction; exports.exists = _chunkGVR3PSDLcjs.exists; exports.filterSchemaComponentsOfType = _chunkGVR3PSDLcjs.filterSchemaComponentsOfType; exports.findSchemaComponentsOfType = _chunkGVR3PSDLcjs.findSchemaComponentsOfType; exports.first = _chunkGVR3PSDLcjs.first; exports.firstOrNull = _chunkGVR3PSDLcjs.firstOrNull; exports.formatSQL = _chunkGVR3PSDLcjs.formatSQL; exports.fromDatabaseDriverType = _chunkGVR3PSDLcjs.fromDatabaseDriverType; exports.getDatabaseDriverName = _chunkGVR3PSDLcjs.getDatabaseDriverName; exports.getDatabaseMetadata = _chunkGVR3PSDLcjs.getDatabaseMetadata; exports.getDatabaseType = _chunkGVR3PSDLcjs.getDatabaseType; exports.getDefaultDatabase = _chunkGVR3PSDLcjs.getDefaultDatabase; exports.getDefaultDatabaseAsync = _chunkGVR3PSDLcjs.getDefaultDatabaseAsync; exports.getDefaultMigratorOptionsFromRegistry = _chunkGVR3PSDLcjs.getDefaultMigratorOptionsFromRegistry; exports.getFormatter = _chunkGVR3PSDLcjs.getFormatter; exports.indexSchemaComponent = _chunkGVR3PSDLcjs.indexSchemaComponent; exports.isSQL = _chunkGVR3PSDLcjs.isSQL; exports.isSchemaComponentOfType = _chunkGVR3PSDLcjs.isSchemaComponentOfType; exports.isTokenizedSQL = _chunkGVR3PSDLcjs.isTokenizedSQL; exports.jsonSerializer = _chunkGVR3PSDLcjs.jsonSerializer; exports.mapANSISQLParamPlaceholder = _chunkGVR3PSDLcjs.mapANSISQLParamPlaceholder; exports.mapColumnToBigint = _chunkGVR3PSDLcjs.mapColumnToBigint; exports.mapColumnToDate = _chunkGVR3PSDLcjs.mapColumnToDate; exports.mapColumnToJSON = _chunkGVR3PSDLcjs.mapColumnToJSON; exports.mapDefaultSQLColumnProcessors = _chunkGVR3PSDLcjs.mapDefaultSQLColumnProcessors; exports.mapRows = _chunkGVR3PSDLcjs.mapRows; exports.mapSQLIdentifier = _chunkGVR3PSDLcjs.mapSQLIdentifier; exports.mapSQLParamValue = _chunkGVR3PSDLcjs.mapSQLParamValue; exports.mapSQLQueryResult = _chunkGVR3PSDLcjs.mapSQLQueryResult; exports.mapSchemaComponentsOfType = _chunkGVR3PSDLcjs.mapSchemaComponentsOfType; exports.mapToCamelCase = _chunkGVR3PSDLcjs.mapToCamelCase; exports.migrationTableSchemaComponent = _chunkGVR3PSDLcjs.migrationTableSchemaComponent; exports.parseConnectionString = parseConnectionString; exports.prettyJson = _chunkGVR3PSDLcjs.prettyJson; exports.registerDefaultMigratorOptions = _chunkGVR3PSDLcjs.registerDefaultMigratorOptions; exports.registerFormatter = _chunkGVR3PSDLcjs.registerFormatter; exports.relationship = _chunkGVR3PSDLcjs.relationship; exports.resolveDatabaseMetadata = _chunkGVR3PSDLcjs.resolveDatabaseMetadata; exports.runSQLMigrations = _chunkGVR3PSDLcjs.runSQLMigrations; exports.schemaComponent = _chunkGVR3PSDLcjs.schemaComponent; exports.schemaComponentURN = _chunkGVR3PSDLcjs.schemaComponentURN; exports.single = _chunkGVR3PSDLcjs.single; exports.singleOrNull = _chunkGVR3PSDLcjs.singleOrNull; exports.sqlExecutor = _chunkGVR3PSDLcjs.sqlExecutor; exports.sqlExecutorInAmbientConnection = _chunkGVR3PSDLcjs.sqlExecutorInAmbientConnection; exports.sqlExecutorInNewConnection = _chunkGVR3PSDLcjs.sqlExecutorInNewConnection; exports.sqlMigration = _chunkGVR3PSDLcjs.sqlMigration; exports.tableSchemaComponent = _chunkGVR3PSDLcjs.tableSchemaComponent; exports.toCamelCase = _chunkGVR3PSDLcjs.toCamelCase; exports.toDatabaseDriverType = _chunkGVR3PSDLcjs.toDatabaseDriverType; exports.tracer = _chunkGVR3PSDLcjs.tracer; exports.transactionFactoryWithAmbientConnection = _chunkGVR3PSDLcjs.transactionFactoryWithAmbientConnection; exports.transactionFactoryWithAsyncAmbientConnection = _chunkGVR3PSDLcjs.transactionFactoryWithAsyncAmbientConnection; exports.transactionFactoryWithDbClient = _chunkGVR3PSDLcjs.transactionFactoryWithDbClient; exports.transactionFactoryWithNewConnection = _chunkGVR3PSDLcjs.transactionFactoryWithNewConnection;
366
+ exports.ANSISQLIdentifierQuote = _chunk4MMMEDQ7cjs.ANSISQLIdentifierQuote; exports.ANSISQLParamPlaceholder = _chunk4MMMEDQ7cjs.ANSISQLParamPlaceholder; exports.AdminShutdownError = _chunk4MMMEDQ7cjs.AdminShutdownError; exports.AutoIncrementSQLColumnToken = _chunk4MMMEDQ7cjs.AutoIncrementSQLColumnToken; exports.BatchCommandNoChangesError = _chunk4MMMEDQ7cjs.BatchCommandNoChangesError; exports.BigIntegerToken = _chunk4MMMEDQ7cjs.BigIntegerToken; exports.BigSerialToken = _chunk4MMMEDQ7cjs.BigSerialToken; exports.CheckViolationError = _chunk4MMMEDQ7cjs.CheckViolationError; exports.ColumnTypeToken = _chunk4MMMEDQ7cjs.ColumnTypeToken; exports.ColumnURN = _chunk4MMMEDQ7cjs.ColumnURN; exports.ColumnURNType = _chunk4MMMEDQ7cjs.ColumnURNType; exports.ConcurrencyError = _chunk4MMMEDQ7cjs.ConcurrencyError; exports.ConnectionError = _chunk4MMMEDQ7cjs.ConnectionError; exports.DataError = _chunk4MMMEDQ7cjs.DataError; exports.DatabaseSchemaURN = _chunk4MMMEDQ7cjs.DatabaseSchemaURN; exports.DatabaseSchemaURNType = _chunk4MMMEDQ7cjs.DatabaseSchemaURNType; exports.DatabaseURN = _chunk4MMMEDQ7cjs.DatabaseURN; exports.DatabaseURNType = _chunk4MMMEDQ7cjs.DatabaseURNType; exports.DeadlockError = _chunk4MMMEDQ7cjs.DeadlockError; exports.DefaultMapSQLParamValueOptions = _chunk4MMMEDQ7cjs.DefaultMapSQLParamValueOptions; exports.DumboDatabaseDriverRegistry = _chunk4MMMEDQ7cjs.DumboDatabaseDriverRegistry; exports.DumboDatabaseMetadataRegistry = _chunk4MMMEDQ7cjs.DumboDatabaseMetadataRegistry; exports.DumboError = _chunk4MMMEDQ7cjs.DumboError; exports.ExclusionViolationError = _chunk4MMMEDQ7cjs.ExclusionViolationError; exports.ExpandArrayProcessor = _chunk4MMMEDQ7cjs.ExpandArrayProcessor; exports.ExpandSQLInProcessor = _chunk4MMMEDQ7cjs.ExpandSQLInProcessor; exports.ForeignKeyViolationError = _chunk4MMMEDQ7cjs.ForeignKeyViolationError; exports.FormatIdentifierProcessor = _chunk4MMMEDQ7cjs.FormatIdentifierProcessor; exports.IndexURN = _chunk4MMMEDQ7cjs.IndexURN; exports.IndexURNType = _chunk4MMMEDQ7cjs.IndexURNType; exports.InsufficientResourcesError = _chunk4MMMEDQ7cjs.InsufficientResourcesError; exports.IntegerToken = _chunk4MMMEDQ7cjs.IntegerToken; exports.IntegrityConstraintViolationError = _chunk4MMMEDQ7cjs.IntegrityConstraintViolationError; exports.InvalidOperationError = _chunk4MMMEDQ7cjs.InvalidOperationError; exports.JSONBToken = _chunk4MMMEDQ7cjs.JSONBToken; exports.JSONCodec = _chunk4MMMEDQ7cjs.JSONCodec; exports.JSONReplacer = _chunk4MMMEDQ7cjs.JSONReplacer; exports.JSONReplacers = _chunk4MMMEDQ7cjs.JSONReplacers; exports.JSONReviver = _chunk4MMMEDQ7cjs.JSONReviver; exports.JSONRevivers = _chunk4MMMEDQ7cjs.JSONRevivers; exports.JSONSerializer = _chunk4MMMEDQ7cjs.JSONSerializer; exports.LockNotAvailableError = _chunk4MMMEDQ7cjs.LockNotAvailableError; exports.LogLevel = _chunk4MMMEDQ7cjs.LogLevel; exports.LogStyle = _chunk4MMMEDQ7cjs.LogStyle; exports.MIGRATIONS_LOCK_ID = _chunk4MMMEDQ7cjs.MIGRATIONS_LOCK_ID; exports.MapLiteralProcessor = _chunk4MMMEDQ7cjs.MapLiteralProcessor; exports.NoDatabaseLock = _chunk4MMMEDQ7cjs.NoDatabaseLock; exports.NotNullViolationError = _chunk4MMMEDQ7cjs.NotNullViolationError; exports.ParametrizedSQLBuilder = _chunk4MMMEDQ7cjs.ParametrizedSQLBuilder; exports.QueryCanceledError = _chunk4MMMEDQ7cjs.QueryCanceledError; exports.RawSQL = _chunk4MMMEDQ7cjs.RawSQL; exports.SQL = _chunk4MMMEDQ7cjs.SQL; exports.SQLArray = _chunk4MMMEDQ7cjs.SQLArray; exports.SQLColumnToken = _chunk4MMMEDQ7cjs.SQLColumnToken; exports.SQLColumnTypeTokens = _chunk4MMMEDQ7cjs.SQLColumnTypeTokens; exports.SQLColumnTypeTokensFactory = _chunk4MMMEDQ7cjs.SQLColumnTypeTokensFactory; exports.SQLFormatter = _chunk4MMMEDQ7cjs.SQLFormatter; exports.SQLIdentifier = _chunk4MMMEDQ7cjs.SQLIdentifier; exports.SQLIn = _chunk4MMMEDQ7cjs.SQLIn; exports.SQLLiteral = _chunk4MMMEDQ7cjs.SQLLiteral; exports.SQLPlain = _chunk4MMMEDQ7cjs.SQLPlain; exports.SQLProcessor = _chunk4MMMEDQ7cjs.SQLProcessor; exports.SQLProcessorsRegistry = _chunk4MMMEDQ7cjs.SQLProcessorsRegistry; exports.SQLToken = _chunk4MMMEDQ7cjs.SQLToken; exports.SQLValueMapper = _chunk4MMMEDQ7cjs.SQLValueMapper; exports.SchemaComponentMigrator = _chunk4MMMEDQ7cjs.SchemaComponentMigrator; exports.SerialToken = _chunk4MMMEDQ7cjs.SerialToken; exports.SerializationError = _chunk4MMMEDQ7cjs.SerializationError; exports.SystemError = _chunk4MMMEDQ7cjs.SystemError; exports.TableURN = _chunk4MMMEDQ7cjs.TableURN; exports.TableURNType = _chunk4MMMEDQ7cjs.TableURNType; exports.TimestampToken = _chunk4MMMEDQ7cjs.TimestampToken; exports.TimestamptzToken = _chunk4MMMEDQ7cjs.TimestamptzToken; exports.TokenizedSQL = _chunk4MMMEDQ7cjs.TokenizedSQL; exports.TransientDatabaseError = _chunk4MMMEDQ7cjs.TransientDatabaseError; exports.UniqueConstraintError = _chunk4MMMEDQ7cjs.UniqueConstraintError; exports.VarcharToken = _chunk4MMMEDQ7cjs.VarcharToken; exports.ansiSqlReservedMap = _chunk4MMMEDQ7cjs.ansiSqlReservedMap; exports.canHandleDriverWithConnectionString = _chunk4MMMEDQ7cjs.canHandleDriverWithConnectionString; exports.color = _chunk4MMMEDQ7cjs.color; exports.columnSchemaComponent = _chunk4MMMEDQ7cjs.columnSchemaComponent; exports.combineMigrations = _chunk4MMMEDQ7cjs.combineMigrations; exports.composeJSONReplacers = _chunk4MMMEDQ7cjs.composeJSONReplacers; exports.composeJSONRevivers = _chunk4MMMEDQ7cjs.composeJSONRevivers; exports.count = _chunk4MMMEDQ7cjs.count; exports.createAlwaysNewConnectionPool = _chunk4MMMEDQ7cjs.createAlwaysNewConnectionPool; exports.createAmbientConnection = _chunk4MMMEDQ7cjs.createAmbientConnection; exports.createAmbientConnectionPool = _chunk4MMMEDQ7cjs.createAmbientConnectionPool; exports.createBoundedConnectionPool = _chunk4MMMEDQ7cjs.createBoundedConnectionPool; exports.createConnection = _chunk4MMMEDQ7cjs.createConnection; exports.createConnectionPool = _chunk4MMMEDQ7cjs.createConnectionPool; exports.createSingletonClientConnectionPool = _chunk4MMMEDQ7cjs.createSingletonClientConnectionPool; exports.createSingletonConnection = _chunk4MMMEDQ7cjs.createSingletonConnection; exports.createSingletonConnectionPool = _chunk4MMMEDQ7cjs.createSingletonConnectionPool; exports.createTransientConnection = _chunk4MMMEDQ7cjs.createTransientConnection; exports.databaseSchemaComponent = _chunk4MMMEDQ7cjs.databaseSchemaComponent; exports.databaseSchemaSchemaComponent = _chunk4MMMEDQ7cjs.databaseSchemaSchemaComponent; exports.defaultDatabaseLockOptions = _chunk4MMMEDQ7cjs.defaultDatabaseLockOptions; exports.defaultProcessorsRegistry = _chunk4MMMEDQ7cjs.defaultProcessorsRegistry; exports.describeSQL = _chunk4MMMEDQ7cjs.describeSQL; exports.dumbo = dumbo; exports.dumboDatabaseDriverRegistry = _chunk4MMMEDQ7cjs.dumboDatabaseDriverRegistry; exports.dumboDatabaseMetadataRegistry = _chunk4MMMEDQ7cjs.dumboDatabaseMetadataRegistry; exports.dumboSchema = _chunk4MMMEDQ7cjs.dumboSchema; exports.executeInAmbientConnection = _chunk4MMMEDQ7cjs.executeInAmbientConnection; exports.executeInNewConnection = _chunk4MMMEDQ7cjs.executeInNewConnection; exports.executeInNewDbClient = _chunk4MMMEDQ7cjs.executeInNewDbClient; exports.executeInTransaction = _chunk4MMMEDQ7cjs.executeInTransaction; exports.exists = _chunk4MMMEDQ7cjs.exists; exports.filterSchemaComponentsOfType = _chunk4MMMEDQ7cjs.filterSchemaComponentsOfType; exports.findSchemaComponentsOfType = _chunk4MMMEDQ7cjs.findSchemaComponentsOfType; exports.first = _chunk4MMMEDQ7cjs.first; exports.firstOrNull = _chunk4MMMEDQ7cjs.firstOrNull; exports.formatSQL = _chunk4MMMEDQ7cjs.formatSQL; exports.fromDatabaseDriverType = _chunk4MMMEDQ7cjs.fromDatabaseDriverType; exports.getDatabaseDriverName = _chunk4MMMEDQ7cjs.getDatabaseDriverName; exports.getDatabaseMetadata = _chunk4MMMEDQ7cjs.getDatabaseMetadata; exports.getDatabaseType = _chunk4MMMEDQ7cjs.getDatabaseType; exports.getDefaultDatabase = _chunk4MMMEDQ7cjs.getDefaultDatabase; exports.getDefaultDatabaseAsync = _chunk4MMMEDQ7cjs.getDefaultDatabaseAsync; exports.getDefaultMigratorOptionsFromRegistry = _chunk4MMMEDQ7cjs.getDefaultMigratorOptionsFromRegistry; exports.getFormatter = _chunk4MMMEDQ7cjs.getFormatter; exports.indexSchemaComponent = _chunk4MMMEDQ7cjs.indexSchemaComponent; exports.isSQL = _chunk4MMMEDQ7cjs.isSQL; exports.isSchemaComponentOfType = _chunk4MMMEDQ7cjs.isSchemaComponentOfType; exports.isTokenizedSQL = _chunk4MMMEDQ7cjs.isTokenizedSQL; exports.jsonSerializer = _chunk4MMMEDQ7cjs.jsonSerializer; exports.mapANSISQLParamPlaceholder = _chunk4MMMEDQ7cjs.mapANSISQLParamPlaceholder; exports.mapColumnToBigint = _chunk4MMMEDQ7cjs.mapColumnToBigint; exports.mapColumnToDate = _chunk4MMMEDQ7cjs.mapColumnToDate; exports.mapColumnToJSON = _chunk4MMMEDQ7cjs.mapColumnToJSON; exports.mapDefaultSQLColumnProcessors = _chunk4MMMEDQ7cjs.mapDefaultSQLColumnProcessors; exports.mapRows = _chunk4MMMEDQ7cjs.mapRows; exports.mapSQLIdentifier = _chunk4MMMEDQ7cjs.mapSQLIdentifier; exports.mapSQLParamValue = _chunk4MMMEDQ7cjs.mapSQLParamValue; exports.mapSQLQueryResult = _chunk4MMMEDQ7cjs.mapSQLQueryResult; exports.mapSchemaComponentsOfType = _chunk4MMMEDQ7cjs.mapSchemaComponentsOfType; exports.mapToCamelCase = _chunk4MMMEDQ7cjs.mapToCamelCase; exports.migrationTableSchemaComponent = _chunk4MMMEDQ7cjs.migrationTableSchemaComponent; exports.parseConnectionString = parseConnectionString; exports.prettyJson = _chunk4MMMEDQ7cjs.prettyJson; exports.registerDefaultMigratorOptions = _chunk4MMMEDQ7cjs.registerDefaultMigratorOptions; exports.registerFormatter = _chunk4MMMEDQ7cjs.registerFormatter; exports.relationship = _chunk4MMMEDQ7cjs.relationship; exports.resolveDatabaseMetadata = _chunk4MMMEDQ7cjs.resolveDatabaseMetadata; exports.runSQLMigrations = _chunk4MMMEDQ7cjs.runSQLMigrations; exports.schemaComponent = _chunk4MMMEDQ7cjs.schemaComponent; exports.schemaComponentURN = _chunk4MMMEDQ7cjs.schemaComponentURN; exports.single = _chunk4MMMEDQ7cjs.single; exports.singleOrNull = _chunk4MMMEDQ7cjs.singleOrNull; exports.sqlExecutor = _chunk4MMMEDQ7cjs.sqlExecutor; exports.sqlExecutorInAmbientConnection = _chunk4MMMEDQ7cjs.sqlExecutorInAmbientConnection; exports.sqlExecutorInNewConnection = _chunk4MMMEDQ7cjs.sqlExecutorInNewConnection; exports.sqlMigration = _chunk4MMMEDQ7cjs.sqlMigration; exports.tableSchemaComponent = _chunk4MMMEDQ7cjs.tableSchemaComponent; exports.toCamelCase = _chunk4MMMEDQ7cjs.toCamelCase; exports.toDatabaseDriverType = _chunk4MMMEDQ7cjs.toDatabaseDriverType; exports.tracer = _chunk4MMMEDQ7cjs.tracer; exports.transactionFactoryWithAmbientConnection = _chunk4MMMEDQ7cjs.transactionFactoryWithAmbientConnection; exports.transactionFactoryWithAsyncAmbientConnection = _chunk4MMMEDQ7cjs.transactionFactoryWithAsyncAmbientConnection; exports.transactionFactoryWithDbClient = _chunk4MMMEDQ7cjs.transactionFactoryWithDbClient; exports.transactionFactoryWithNewConnection = _chunk4MMMEDQ7cjs.transactionFactoryWithNewConnection;
367
367
  //# sourceMappingURL=index.cjs.map
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import "./chunk-4SM4JJJZ.js";
2
- import "./chunk-WLWELSA2.js";
1
+ import "./chunk-33P5766L.js";
2
+ import "./chunk-UK7MXVS2.js";
3
3
  import {
4
4
  ANSISQLIdentifierQuote,
5
5
  ANSISQLParamPlaceholder,
@@ -161,7 +161,7 @@ import {
161
161
  transactionFactoryWithAsyncAmbientConnection,
162
162
  transactionFactoryWithDbClient,
163
163
  transactionFactoryWithNewConnection
164
- } from "./chunk-JKE6SULM.js";
164
+ } from "./chunk-H2JBS7HM.js";
165
165
 
166
166
  // src/storage/all/connections/connectionString.ts
167
167
  var parseConnectionString = (connectionString) => {
package/dist/pg.cjs CHANGED
@@ -11,7 +11,7 @@
11
11
 
12
12
 
13
13
 
14
- var _chunkUA542GT3cjs = require('./chunk-UA542GT3.cjs');
14
+ var _chunkGNH5XC6Dcjs = require('./chunk-GNH5XC6D.cjs');
15
15
 
16
16
 
17
17
 
@@ -22,7 +22,7 @@ var _chunkUA542GT3cjs = require('./chunk-UA542GT3.cjs');
22
22
 
23
23
 
24
24
 
25
- var _chunkMOPKHYYUcjs = require('./chunk-MOPKHYYU.cjs');
25
+ var _chunkNJI6PJFZcjs = require('./chunk-NJI6PJFZ.cjs');
26
26
 
27
27
 
28
28
 
@@ -34,7 +34,7 @@ var _chunkMOPKHYYUcjs = require('./chunk-MOPKHYYU.cjs');
34
34
 
35
35
 
36
36
 
37
- var _chunkGVR3PSDLcjs = require('./chunk-GVR3PSDL.cjs');
37
+ var _chunk4MMMEDQ7cjs = require('./chunk-4MMMEDQ7.cjs');
38
38
 
39
39
  // src/storage/postgresql/pg/connections/connection.ts
40
40
  var _pg = require('pg'); var _pg2 = _interopRequireDefault(_pg);
@@ -79,7 +79,7 @@ var pgSQLExecutor = ({
79
79
  return results[0];
80
80
  },
81
81
  batchCommand: (client, sqls, options) => batchCommand(client, sqls, serializer, options),
82
- formatter: _chunkUA542GT3cjs.pgFormatter
82
+ formatter: _chunkGNH5XC6Dcjs.pgFormatter
83
83
  });
84
84
  async function batchQuery(client, sqls, serializer, options) {
85
85
  const results = Array(
@@ -89,11 +89,11 @@ async function batchQuery(client, sqls, serializer, options) {
89
89
  await client.query(`SET statement_timeout = ${options.timeoutMs}`);
90
90
  }
91
91
  for (let i = 0; i < sqls.length; i++) {
92
- const { query, params } = _chunkUA542GT3cjs.pgFormatter.format(sqls[i], { serializer });
93
- _chunkGVR3PSDLcjs.tracer.info("db:sql:query", {
92
+ const { query, params } = _chunkGNH5XC6Dcjs.pgFormatter.format(sqls[i], { serializer });
93
+ _chunk4MMMEDQ7cjs.tracer.info("db:sql:query", {
94
94
  query,
95
95
  params,
96
- debugSQL: _chunkUA542GT3cjs.pgFormatter.describe(sqls[i], { serializer })
96
+ debugSQL: _chunkGNH5XC6Dcjs.pgFormatter.describe(sqls[i], { serializer })
97
97
  });
98
98
  try {
99
99
  let result = params.length > 0 ? await client.query(query, params) : await client.query(query);
@@ -101,14 +101,14 @@ async function batchQuery(client, sqls, serializer, options) {
101
101
  result = {
102
102
  ...result,
103
103
  rows: result.rows.map(
104
- (row) => _chunkGVR3PSDLcjs.mapSQLQueryResult.call(void 0, row, options.mapping)
104
+ (row) => _chunk4MMMEDQ7cjs.mapSQLQueryResult.call(void 0, row, options.mapping)
105
105
  )
106
106
  };
107
107
  }
108
108
  results[i] = { rowCount: result.rowCount, rows: result.rows };
109
109
  } catch (error) {
110
- _chunkGVR3PSDLcjs.tracer.error("db:sql:batch_query:execute:error", { error });
111
- throw _chunkUA542GT3cjs.mapPostgresError.call(void 0, error);
110
+ _chunk4MMMEDQ7cjs.tracer.error("db:sql:batch_query:execute:error", { error });
111
+ throw _chunkGNH5XC6Dcjs.mapPostgresError.call(void 0, error);
112
112
  }
113
113
  }
114
114
  return results;
@@ -121,11 +121,11 @@ async function batchCommand(client, sqls, serializer, options) {
121
121
  await client.query(`SET statement_timeout = ${options.timeoutMs}`);
122
122
  }
123
123
  for (let i = 0; i < sqls.length; i++) {
124
- const { query, params } = _chunkUA542GT3cjs.pgFormatter.format(sqls[i], { serializer });
125
- _chunkGVR3PSDLcjs.tracer.info("db:sql:command", {
124
+ const { query, params } = _chunkGNH5XC6Dcjs.pgFormatter.format(sqls[i], { serializer });
125
+ _chunk4MMMEDQ7cjs.tracer.info("db:sql:command", {
126
126
  query,
127
127
  params,
128
- debugSQL: _chunkUA542GT3cjs.pgFormatter.describe(sqls[i], { serializer })
128
+ debugSQL: _chunkGNH5XC6Dcjs.pgFormatter.describe(sqls[i], { serializer })
129
129
  });
130
130
  try {
131
131
  let result = params.length > 0 ? await client.query(query, params) : await client.query(query);
@@ -133,17 +133,17 @@ async function batchCommand(client, sqls, serializer, options) {
133
133
  result = {
134
134
  ...result,
135
135
  rows: result.rows.map(
136
- (row) => _chunkGVR3PSDLcjs.mapSQLQueryResult.call(void 0, row, options.mapping)
136
+ (row) => _chunk4MMMEDQ7cjs.mapSQLQueryResult.call(void 0, row, options.mapping)
137
137
  )
138
138
  };
139
139
  }
140
140
  results[i] = { rowCount: result.rowCount, rows: result.rows };
141
141
  if (_optionalChain([options, 'optionalAccess', _5 => _5.assertChanges]) && (_nullishCoalesce(results[i].rowCount, () => ( 0))) === 0) {
142
- throw new (0, _chunkGVR3PSDLcjs.BatchCommandNoChangesError)(i);
142
+ throw new (0, _chunk4MMMEDQ7cjs.BatchCommandNoChangesError)(i);
143
143
  }
144
144
  } catch (error) {
145
- _chunkGVR3PSDLcjs.tracer.error("db:sql:batch_command:execute:error", { error });
146
- throw _chunkUA542GT3cjs.mapPostgresError.call(void 0, error);
145
+ _chunk4MMMEDQ7cjs.tracer.error("db:sql:batch_command:execute:error", { error });
146
+ throw _chunkGNH5XC6Dcjs.mapPostgresError.call(void 0, error);
147
147
  }
148
148
  }
149
149
  return results;
@@ -180,7 +180,7 @@ var pgTransaction = (connection, serializer) => (getClient, options) => ({
180
180
  if (_optionalChain([options, 'optionalAccess', _11 => _11.close])) await _optionalChain([options, 'optionalAccess', _12 => _12.close, 'call', _13 => _13(client, error)]);
181
181
  }
182
182
  },
183
- execute: _chunkGVR3PSDLcjs.sqlExecutor.call(void 0, pgSQLExecutor({ serializer }), {
183
+ execute: _chunk4MMMEDQ7cjs.sqlExecutor.call(void 0, pgSQLExecutor({ serializer }), {
184
184
  connect: () => getClient
185
185
  }),
186
186
  _transactionOptions: _nullishCoalesce(options, () => ( {}))
@@ -190,7 +190,7 @@ var pgTransaction = (connection, serializer) => (getClient, options) => ({
190
190
  var PgDriverType = "PostgreSQL:pg";
191
191
  var pgClientConnection = (options) => {
192
192
  const { connect, close } = options;
193
- return _chunkGVR3PSDLcjs.createConnection.call(void 0, {
193
+ return _chunk4MMMEDQ7cjs.createConnection.call(void 0, {
194
194
  driverType: PgDriverType,
195
195
  connect,
196
196
  close,
@@ -201,7 +201,7 @@ var pgClientConnection = (options) => {
201
201
  };
202
202
  var pgPoolClientConnection = (options) => {
203
203
  const { connect, close } = options;
204
- return _chunkGVR3PSDLcjs.createConnection.call(void 0, {
204
+ return _chunk4MMMEDQ7cjs.createConnection.call(void 0, {
205
205
  driverType: PgDriverType,
206
206
  connect,
207
207
  close,
@@ -265,7 +265,7 @@ var pgNativePool = (options) => {
265
265
  });
266
266
  const open = () => Promise.resolve(getConnection());
267
267
  const close = () => endPgPool({ connectionString, database });
268
- return _chunkGVR3PSDLcjs.createConnectionPool.call(void 0, {
268
+ return _chunk4MMMEDQ7cjs.createConnectionPool.call(void 0, {
269
269
  driverType: PgDriverType,
270
270
  connection: open,
271
271
  close,
@@ -274,7 +274,7 @@ var pgNativePool = (options) => {
274
274
  };
275
275
  var pgAmbientNativePool = (options) => {
276
276
  const { pool } = options;
277
- return _chunkGVR3PSDLcjs.createConnectionPool.call(void 0, {
277
+ return _chunk4MMMEDQ7cjs.createConnectionPool.call(void 0, {
278
278
  driverType: PgDriverType,
279
279
  getConnection: () => pgConnection({
280
280
  type: "PoolClient",
@@ -286,14 +286,14 @@ var pgAmbientNativePool = (options) => {
286
286
  };
287
287
  var pgAmbientConnectionPool = (options) => {
288
288
  const { connection } = options;
289
- return _chunkGVR3PSDLcjs.createAmbientConnectionPool.call(void 0, {
289
+ return _chunk4MMMEDQ7cjs.createAmbientConnectionPool.call(void 0, {
290
290
  driverType: PgDriverType,
291
291
  connection
292
292
  });
293
293
  };
294
294
  var pgClientPool = (options) => {
295
295
  const { connectionString, database } = options;
296
- return _chunkGVR3PSDLcjs.createConnectionPool.call(void 0, {
296
+ return _chunk4MMMEDQ7cjs.createConnectionPool.call(void 0, {
297
297
  driverType: PgDriverType,
298
298
  getConnection: () => {
299
299
  const connect = async () => {
@@ -327,7 +327,7 @@ var pgAmbientClientPool = (options) => {
327
327
  };
328
328
  const open = () => Promise.resolve(getConnection());
329
329
  const close = () => Promise.resolve();
330
- return _chunkGVR3PSDLcjs.createConnectionPool.call(void 0, {
330
+ return _chunk4MMMEDQ7cjs.createConnectionPool.call(void 0, {
331
331
  driverType: PgDriverType,
332
332
  connection: open,
333
333
  close,
@@ -336,7 +336,7 @@ var pgAmbientClientPool = (options) => {
336
336
  };
337
337
  function pgPool(options) {
338
338
  const { connectionString, database } = options;
339
- const serializer = _nullishCoalesce(_optionalChain([options, 'access', _16 => _16.serialization, 'optionalAccess', _17 => _17.serializer]), () => ( _chunkGVR3PSDLcjs.JSONSerializer));
339
+ const serializer = _nullishCoalesce(_optionalChain([options, 'access', _16 => _16.serialization, 'optionalAccess', _17 => _17.serializer]), () => ( _chunk4MMMEDQ7cjs.JSONSerializer));
340
340
  if ("client" in options && options.client)
341
341
  return pgAmbientClientPool({ client: options.client, serializer });
342
342
  if ("connection" in options && options.connection)
@@ -358,7 +358,7 @@ var usageCounter = /* @__PURE__ */ new Map();
358
358
  var getPgPool = (connectionStringOrOptions) => {
359
359
  const connectionString = typeof connectionStringOrOptions === "string" ? connectionStringOrOptions : connectionStringOrOptions.connectionString;
360
360
  const poolOptions = typeof connectionStringOrOptions === "string" ? { connectionString } : connectionStringOrOptions;
361
- const database = _nullishCoalesce(poolOptions.database, () => ( (poolOptions.connectionString ? _nullishCoalesce(_chunkMOPKHYYUcjs.parseDatabaseName.call(void 0, poolOptions.connectionString), () => ( _chunkMOPKHYYUcjs.defaultPostgreSqlDatabase)) : void 0)));
361
+ const database = _nullishCoalesce(poolOptions.database, () => ( (poolOptions.connectionString ? _nullishCoalesce(_chunkNJI6PJFZcjs.parseDatabaseName.call(void 0, poolOptions.connectionString), () => ( _chunkNJI6PJFZcjs.defaultPostgreSqlDatabase)) : void 0)));
362
362
  const lookupKey = key(connectionString, database);
363
363
  updatePoolUsageCounter(lookupKey, 1);
364
364
  return _nullishCoalesce(pools.get(lookupKey), () => ( pools.set(lookupKey, new _pg2.default.Pool(poolOptions)).get(lookupKey)));
@@ -368,7 +368,7 @@ var endPgPool = async ({
368
368
  database,
369
369
  force
370
370
  }) => {
371
- database = _nullishCoalesce(_nullishCoalesce(database, () => ( _chunkMOPKHYYUcjs.parseDatabaseName.call(void 0, connectionString))), () => ( void 0));
371
+ database = _nullishCoalesce(_nullishCoalesce(database, () => ( _chunkNJI6PJFZcjs.parseDatabaseName.call(void 0, connectionString))), () => ( void 0));
372
372
  const lookupKey = key(connectionString, database);
373
373
  const pool = pools.get(lookupKey);
374
374
  if (pool && (updatePoolUsageCounter(lookupKey, -1) <= 0 || force === true)) {
@@ -379,14 +379,14 @@ var onEndPool = async (lookupKey, pool) => {
379
379
  try {
380
380
  await pool.end();
381
381
  } catch (error) {
382
- _chunkGVR3PSDLcjs.tracer.error("connection-closing-error", { lookupKey, error });
382
+ _chunk4MMMEDQ7cjs.tracer.error("connection-closing-error", { lookupKey, error });
383
383
  }
384
384
  pools.delete(lookupKey);
385
385
  };
386
386
  var endAllPgPools = () => Promise.all(
387
387
  [...pools.entries()].map(([lookupKey, pool]) => onEndPool(lookupKey, pool))
388
388
  );
389
- var key = (connectionString, database) => `${connectionString}|${_nullishCoalesce(database, () => ( _chunkMOPKHYYUcjs.defaultPostgreSqlDatabase))}`;
389
+ var key = (connectionString, database) => `${connectionString}|${_nullishCoalesce(database, () => ( _chunkNJI6PJFZcjs.defaultPostgreSqlDatabase))}`;
390
390
  var updatePoolUsageCounter = (lookupKey, by) => {
391
391
  const currentCounter = _nullishCoalesce(usageCounter.get(lookupKey), () => ( 0));
392
392
  const newCounter = currentCounter + by;
@@ -397,7 +397,7 @@ var updatePoolUsageCounter = (lookupKey, by) => {
397
397
  // src/storage/postgresql/pg/index.ts
398
398
  var tryParseConnectionString = (connectionString) => {
399
399
  try {
400
- return _chunkMOPKHYYUcjs.PostgreSQLConnectionString.call(void 0, connectionString);
400
+ return _chunkNJI6PJFZcjs.PostgreSQLConnectionString.call(void 0, connectionString);
401
401
  } catch (e) {
402
402
  return null;
403
403
  }
@@ -405,16 +405,16 @@ var tryParseConnectionString = (connectionString) => {
405
405
  var pgDumboDriver = {
406
406
  driverType: PgDriverType,
407
407
  createPool: (options) => pgPool(options),
408
- sqlFormatter: _chunkUA542GT3cjs.pgFormatter,
409
- defaultMigratorOptions: _chunkUA542GT3cjs.DefaultPostgreSQLMigratorOptions,
410
- canHandle: _chunkGVR3PSDLcjs.canHandleDriverWithConnectionString.call(void 0,
408
+ sqlFormatter: _chunkGNH5XC6Dcjs.pgFormatter,
409
+ defaultMigratorOptions: _chunkGNH5XC6Dcjs.DefaultPostgreSQLMigratorOptions,
410
+ canHandle: _chunk4MMMEDQ7cjs.canHandleDriverWithConnectionString.call(void 0,
411
411
  PgDriverType,
412
412
  tryParseConnectionString
413
413
  ),
414
- databaseMetadata: _chunkMOPKHYYUcjs.postgreSQLMetadata
414
+ databaseMetadata: _chunkNJI6PJFZcjs.postgreSQLMetadata
415
415
  };
416
416
  var usePgDumboDriver = () => {
417
- _chunkGVR3PSDLcjs.dumboDatabaseDriverRegistry.register(PgDriverType, pgDumboDriver);
417
+ _chunk4MMMEDQ7cjs.dumboDatabaseDriverRegistry.register(PgDriverType, pgDumboDriver);
418
418
  };
419
419
  usePgDumboDriver();
420
420
 
@@ -463,5 +463,5 @@ usePgDumboDriver();
463
463
 
464
464
 
465
465
 
466
- exports.AdvisoryLock = _chunkUA542GT3cjs.AdvisoryLock; exports.DefaultPostgreSQLMigratorOptions = _chunkUA542GT3cjs.DefaultPostgreSQLMigratorOptions; exports.PgDriverType = PgDriverType; exports.PostgreSQLArrayProcessor = _chunkUA542GT3cjs.PostgreSQLArrayProcessor; exports.PostgreSQLConnectionString = _chunkMOPKHYYUcjs.PostgreSQLConnectionString; exports.PostgreSQLDatabaseName = _chunkUA542GT3cjs.PostgreSQLDatabaseName; exports.PostgreSQLExpandSQLInProcessor = _chunkUA542GT3cjs.PostgreSQLExpandSQLInProcessor; exports.acquireAdvisoryLock = _chunkUA542GT3cjs.acquireAdvisoryLock; exports.advisoryLock = _chunkUA542GT3cjs.advisoryLock; exports.checkConnection = checkConnection; exports.defaultPostgreSQLConnectionString = _chunkMOPKHYYUcjs.defaultPostgreSQLConnectionString; exports.defaultPostgreSqlDatabase = _chunkMOPKHYYUcjs.defaultPostgreSqlDatabase; exports.endAllPgPools = endAllPgPools; exports.endPgPool = endPgPool; exports.functionExists = _chunkMOPKHYYUcjs.functionExists; exports.functionExistsSQL = _chunkMOPKHYYUcjs.functionExistsSQL; exports.getPgPool = getPgPool; exports.isPgClient = isPgClient; exports.isPgNativePool = isPgNativePool; exports.isPgPoolClient = isPgPoolClient; exports.mapPostgresError = _chunkUA542GT3cjs.mapPostgresError; exports.onEndPool = onEndPool; exports.parseDatabaseName = _chunkMOPKHYYUcjs.parseDatabaseName; exports.pgAmbientClientPool = pgAmbientClientPool; exports.pgAmbientConnectionPool = pgAmbientConnectionPool; exports.pgAmbientNativePool = pgAmbientNativePool; exports.pgClientConnection = pgClientConnection; exports.pgClientPool = pgClientPool; exports.pgConnection = pgConnection; exports.pgDumboDriver = pgDumboDriver; exports.pgExecute = pgExecute; exports.pgFormatter = _chunkUA542GT3cjs.pgFormatter; exports.pgNativePool = pgNativePool; exports.pgPool = pgPool; exports.pgPoolClientConnection = pgPoolClientConnection; exports.pgSQLExecutor = pgSQLExecutor; exports.pgTransaction = pgTransaction; exports.postgreSQLColumnProcessors = _chunkUA542GT3cjs.postgreSQLColumnProcessors; exports.postgreSQLMetadata = _chunkMOPKHYYUcjs.postgreSQLMetadata; exports.releaseAdvisoryLock = _chunkUA542GT3cjs.releaseAdvisoryLock; exports.setPgTypeParser = setPgTypeParser; exports.tableExists = _chunkMOPKHYYUcjs.tableExists; exports.tableExistsSQL = _chunkMOPKHYYUcjs.tableExistsSQL; exports.tryAcquireAdvisoryLock = _chunkUA542GT3cjs.tryAcquireAdvisoryLock; exports.usePgDumboDriver = usePgDumboDriver;
466
+ exports.AdvisoryLock = _chunkGNH5XC6Dcjs.AdvisoryLock; exports.DefaultPostgreSQLMigratorOptions = _chunkGNH5XC6Dcjs.DefaultPostgreSQLMigratorOptions; exports.PgDriverType = PgDriverType; exports.PostgreSQLArrayProcessor = _chunkGNH5XC6Dcjs.PostgreSQLArrayProcessor; exports.PostgreSQLConnectionString = _chunkNJI6PJFZcjs.PostgreSQLConnectionString; exports.PostgreSQLDatabaseName = _chunkGNH5XC6Dcjs.PostgreSQLDatabaseName; exports.PostgreSQLExpandSQLInProcessor = _chunkGNH5XC6Dcjs.PostgreSQLExpandSQLInProcessor; exports.acquireAdvisoryLock = _chunkGNH5XC6Dcjs.acquireAdvisoryLock; exports.advisoryLock = _chunkGNH5XC6Dcjs.advisoryLock; exports.checkConnection = checkConnection; exports.defaultPostgreSQLConnectionString = _chunkNJI6PJFZcjs.defaultPostgreSQLConnectionString; exports.defaultPostgreSqlDatabase = _chunkNJI6PJFZcjs.defaultPostgreSqlDatabase; exports.endAllPgPools = endAllPgPools; exports.endPgPool = endPgPool; exports.functionExists = _chunkNJI6PJFZcjs.functionExists; exports.functionExistsSQL = _chunkNJI6PJFZcjs.functionExistsSQL; exports.getPgPool = getPgPool; exports.isPgClient = isPgClient; exports.isPgNativePool = isPgNativePool; exports.isPgPoolClient = isPgPoolClient; exports.mapPostgresError = _chunkGNH5XC6Dcjs.mapPostgresError; exports.onEndPool = onEndPool; exports.parseDatabaseName = _chunkNJI6PJFZcjs.parseDatabaseName; exports.pgAmbientClientPool = pgAmbientClientPool; exports.pgAmbientConnectionPool = pgAmbientConnectionPool; exports.pgAmbientNativePool = pgAmbientNativePool; exports.pgClientConnection = pgClientConnection; exports.pgClientPool = pgClientPool; exports.pgConnection = pgConnection; exports.pgDumboDriver = pgDumboDriver; exports.pgExecute = pgExecute; exports.pgFormatter = _chunkGNH5XC6Dcjs.pgFormatter; exports.pgNativePool = pgNativePool; exports.pgPool = pgPool; exports.pgPoolClientConnection = pgPoolClientConnection; exports.pgSQLExecutor = pgSQLExecutor; exports.pgTransaction = pgTransaction; exports.postgreSQLColumnProcessors = _chunkGNH5XC6Dcjs.postgreSQLColumnProcessors; exports.postgreSQLMetadata = _chunkNJI6PJFZcjs.postgreSQLMetadata; exports.releaseAdvisoryLock = _chunkGNH5XC6Dcjs.releaseAdvisoryLock; exports.setPgTypeParser = setPgTypeParser; exports.tableExists = _chunkNJI6PJFZcjs.tableExists; exports.tableExistsSQL = _chunkNJI6PJFZcjs.tableExistsSQL; exports.tryAcquireAdvisoryLock = _chunkGNH5XC6Dcjs.tryAcquireAdvisoryLock; exports.usePgDumboDriver = usePgDumboDriver;
467
467
  //# sourceMappingURL=pg.cjs.map
package/dist/pg.js CHANGED
@@ -11,7 +11,7 @@ import {
11
11
  postgreSQLColumnProcessors,
12
12
  releaseAdvisoryLock,
13
13
  tryAcquireAdvisoryLock
14
- } from "./chunk-RA2L3FQW.js";
14
+ } from "./chunk-Y5TD53QE.js";
15
15
  import {
16
16
  PostgreSQLConnectionString,
17
17
  defaultPostgreSQLConnectionString,
@@ -22,7 +22,7 @@ import {
22
22
  postgreSQLMetadata,
23
23
  tableExists,
24
24
  tableExistsSQL
25
- } from "./chunk-4SM4JJJZ.js";
25
+ } from "./chunk-33P5766L.js";
26
26
  import {
27
27
  BatchCommandNoChangesError,
28
28
  JSONSerializer,
@@ -34,7 +34,7 @@ import {
34
34
  mapSQLQueryResult,
35
35
  sqlExecutor,
36
36
  tracer
37
- } from "./chunk-JKE6SULM.js";
37
+ } from "./chunk-H2JBS7HM.js";
38
38
 
39
39
  // src/storage/postgresql/pg/connections/connection.ts
40
40
  import pg2 from "pg";
@@ -11,7 +11,7 @@
11
11
 
12
12
 
13
13
 
14
- var _chunkUA542GT3cjs = require('./chunk-UA542GT3.cjs');
14
+ var _chunkGNH5XC6Dcjs = require('./chunk-GNH5XC6D.cjs');
15
15
 
16
16
 
17
17
 
@@ -22,8 +22,8 @@ var _chunkUA542GT3cjs = require('./chunk-UA542GT3.cjs');
22
22
 
23
23
 
24
24
 
25
- var _chunkMOPKHYYUcjs = require('./chunk-MOPKHYYU.cjs');
26
- require('./chunk-GVR3PSDL.cjs');
25
+ var _chunkNJI6PJFZcjs = require('./chunk-NJI6PJFZ.cjs');
26
+ require('./chunk-4MMMEDQ7.cjs');
27
27
 
28
28
 
29
29
 
@@ -46,5 +46,5 @@ require('./chunk-GVR3PSDL.cjs');
46
46
 
47
47
 
48
48
 
49
- exports.AdvisoryLock = _chunkUA542GT3cjs.AdvisoryLock; exports.DefaultPostgreSQLMigratorOptions = _chunkUA542GT3cjs.DefaultPostgreSQLMigratorOptions; exports.PostgreSQLArrayProcessor = _chunkUA542GT3cjs.PostgreSQLArrayProcessor; exports.PostgreSQLConnectionString = _chunkMOPKHYYUcjs.PostgreSQLConnectionString; exports.PostgreSQLDatabaseName = _chunkUA542GT3cjs.PostgreSQLDatabaseName; exports.PostgreSQLExpandSQLInProcessor = _chunkUA542GT3cjs.PostgreSQLExpandSQLInProcessor; exports.acquireAdvisoryLock = _chunkUA542GT3cjs.acquireAdvisoryLock; exports.advisoryLock = _chunkUA542GT3cjs.advisoryLock; exports.defaultPostgreSQLConnectionString = _chunkMOPKHYYUcjs.defaultPostgreSQLConnectionString; exports.defaultPostgreSqlDatabase = _chunkMOPKHYYUcjs.defaultPostgreSqlDatabase; exports.functionExists = _chunkMOPKHYYUcjs.functionExists; exports.functionExistsSQL = _chunkMOPKHYYUcjs.functionExistsSQL; exports.mapPostgresError = _chunkUA542GT3cjs.mapPostgresError; exports.parseDatabaseName = _chunkMOPKHYYUcjs.parseDatabaseName; exports.pgFormatter = _chunkUA542GT3cjs.pgFormatter; exports.postgreSQLColumnProcessors = _chunkUA542GT3cjs.postgreSQLColumnProcessors; exports.postgreSQLMetadata = _chunkMOPKHYYUcjs.postgreSQLMetadata; exports.releaseAdvisoryLock = _chunkUA542GT3cjs.releaseAdvisoryLock; exports.tableExists = _chunkMOPKHYYUcjs.tableExists; exports.tableExistsSQL = _chunkMOPKHYYUcjs.tableExistsSQL; exports.tryAcquireAdvisoryLock = _chunkUA542GT3cjs.tryAcquireAdvisoryLock;
49
+ exports.AdvisoryLock = _chunkGNH5XC6Dcjs.AdvisoryLock; exports.DefaultPostgreSQLMigratorOptions = _chunkGNH5XC6Dcjs.DefaultPostgreSQLMigratorOptions; exports.PostgreSQLArrayProcessor = _chunkGNH5XC6Dcjs.PostgreSQLArrayProcessor; exports.PostgreSQLConnectionString = _chunkNJI6PJFZcjs.PostgreSQLConnectionString; exports.PostgreSQLDatabaseName = _chunkGNH5XC6Dcjs.PostgreSQLDatabaseName; exports.PostgreSQLExpandSQLInProcessor = _chunkGNH5XC6Dcjs.PostgreSQLExpandSQLInProcessor; exports.acquireAdvisoryLock = _chunkGNH5XC6Dcjs.acquireAdvisoryLock; exports.advisoryLock = _chunkGNH5XC6Dcjs.advisoryLock; exports.defaultPostgreSQLConnectionString = _chunkNJI6PJFZcjs.defaultPostgreSQLConnectionString; exports.defaultPostgreSqlDatabase = _chunkNJI6PJFZcjs.defaultPostgreSqlDatabase; exports.functionExists = _chunkNJI6PJFZcjs.functionExists; exports.functionExistsSQL = _chunkNJI6PJFZcjs.functionExistsSQL; exports.mapPostgresError = _chunkGNH5XC6Dcjs.mapPostgresError; exports.parseDatabaseName = _chunkNJI6PJFZcjs.parseDatabaseName; exports.pgFormatter = _chunkGNH5XC6Dcjs.pgFormatter; exports.postgreSQLColumnProcessors = _chunkGNH5XC6Dcjs.postgreSQLColumnProcessors; exports.postgreSQLMetadata = _chunkNJI6PJFZcjs.postgreSQLMetadata; exports.releaseAdvisoryLock = _chunkGNH5XC6Dcjs.releaseAdvisoryLock; exports.tableExists = _chunkNJI6PJFZcjs.tableExists; exports.tableExistsSQL = _chunkNJI6PJFZcjs.tableExistsSQL; exports.tryAcquireAdvisoryLock = _chunkGNH5XC6Dcjs.tryAcquireAdvisoryLock;
50
50
  //# sourceMappingURL=postgresql.cjs.map
@@ -11,7 +11,7 @@ import {
11
11
  postgreSQLColumnProcessors,
12
12
  releaseAdvisoryLock,
13
13
  tryAcquireAdvisoryLock
14
- } from "./chunk-RA2L3FQW.js";
14
+ } from "./chunk-Y5TD53QE.js";
15
15
  import {
16
16
  PostgreSQLConnectionString,
17
17
  defaultPostgreSQLConnectionString,
@@ -22,8 +22,8 @@ import {
22
22
  postgreSQLMetadata,
23
23
  tableExists,
24
24
  tableExistsSQL
25
- } from "./chunk-4SM4JJJZ.js";
26
- import "./chunk-JKE6SULM.js";
25
+ } from "./chunk-33P5766L.js";
26
+ import "./chunk-H2JBS7HM.js";
27
27
  export {
28
28
  AdvisoryLock,
29
29
  DefaultPostgreSQLMigratorOptions,
package/dist/sqlite.cjs CHANGED
@@ -22,13 +22,13 @@
22
22
 
23
23
 
24
24
 
25
- var _chunkJ2S3DPDRcjs = require('./chunk-J2S3DPDR.cjs');
25
+ var _chunkJIZGCEPEcjs = require('./chunk-JIZGCEPE.cjs');
26
26
 
27
27
 
28
28
 
29
29
 
30
- var _chunkHZM7GDOTcjs = require('./chunk-HZM7GDOT.cjs');
31
- require('./chunk-GVR3PSDL.cjs');
30
+ var _chunkRQ3KKMTPcjs = require('./chunk-RQ3KKMTP.cjs');
31
+ require('./chunk-4MMMEDQ7.cjs');
32
32
 
33
33
 
34
34
 
@@ -56,5 +56,5 @@ require('./chunk-GVR3PSDL.cjs');
56
56
 
57
57
 
58
58
 
59
- exports.DEFAULT_SQLITE_PRAGMA_OPTIONS = _chunkJ2S3DPDRcjs.DEFAULT_SQLITE_PRAGMA_OPTIONS; exports.DefaultSQLiteMigratorOptions = _chunkJ2S3DPDRcjs.DefaultSQLiteMigratorOptions; exports.InMemorySQLiteDatabase = _chunkJ2S3DPDRcjs.InMemorySQLiteDatabase; exports.SQLiteConnectionString = _chunkJ2S3DPDRcjs.SQLiteConnectionString; exports.SQLiteDatabaseName = _chunkJ2S3DPDRcjs.SQLiteDatabaseName; exports.defaultSQLiteDatabase = _chunkHZM7GDOTcjs.defaultSQLiteDatabase; exports.isInMemoryDatabase = _chunkJ2S3DPDRcjs.isInMemoryDatabase; exports.isSQLiteError = _chunkJ2S3DPDRcjs.isSQLiteError; exports.mapSqliteError = _chunkJ2S3DPDRcjs.mapSqliteError; exports.parsePragmasFromConnectionString = _chunkJ2S3DPDRcjs.parsePragmasFromConnectionString; exports.sqliteAlwaysNewConnectionPool = _chunkJ2S3DPDRcjs.sqliteAlwaysNewConnectionPool; exports.sqliteAmbientClientConnection = _chunkJ2S3DPDRcjs.sqliteAmbientClientConnection; exports.sqliteAmbientConnectionPool = _chunkJ2S3DPDRcjs.sqliteAmbientConnectionPool; exports.sqliteClientConnection = _chunkJ2S3DPDRcjs.sqliteClientConnection; exports.sqliteConnection = _chunkJ2S3DPDRcjs.sqliteConnection; exports.sqliteExecute = _chunkJ2S3DPDRcjs.sqliteExecute; exports.sqliteFormatter = _chunkJ2S3DPDRcjs.sqliteFormatter; exports.sqliteMetadata = _chunkHZM7GDOTcjs.sqliteMetadata; exports.sqlitePool = _chunkJ2S3DPDRcjs.sqlitePool; exports.sqlitePoolClientConnection = _chunkJ2S3DPDRcjs.sqlitePoolClientConnection; exports.sqliteSQLExecutor = _chunkJ2S3DPDRcjs.sqliteSQLExecutor; exports.sqliteSingletonConnectionPool = _chunkJ2S3DPDRcjs.sqliteSingletonConnectionPool; exports.sqliteTransaction = _chunkJ2S3DPDRcjs.sqliteTransaction; exports.tableExists = _chunkHZM7GDOTcjs.tableExists; exports.toSqlitePoolOptions = _chunkJ2S3DPDRcjs.toSqlitePoolOptions; exports.transactionNestingCounter = _chunkJ2S3DPDRcjs.transactionNestingCounter;
59
+ exports.DEFAULT_SQLITE_PRAGMA_OPTIONS = _chunkJIZGCEPEcjs.DEFAULT_SQLITE_PRAGMA_OPTIONS; exports.DefaultSQLiteMigratorOptions = _chunkJIZGCEPEcjs.DefaultSQLiteMigratorOptions; exports.InMemorySQLiteDatabase = _chunkJIZGCEPEcjs.InMemorySQLiteDatabase; exports.SQLiteConnectionString = _chunkJIZGCEPEcjs.SQLiteConnectionString; exports.SQLiteDatabaseName = _chunkJIZGCEPEcjs.SQLiteDatabaseName; exports.defaultSQLiteDatabase = _chunkRQ3KKMTPcjs.defaultSQLiteDatabase; exports.isInMemoryDatabase = _chunkJIZGCEPEcjs.isInMemoryDatabase; exports.isSQLiteError = _chunkJIZGCEPEcjs.isSQLiteError; exports.mapSqliteError = _chunkJIZGCEPEcjs.mapSqliteError; exports.parsePragmasFromConnectionString = _chunkJIZGCEPEcjs.parsePragmasFromConnectionString; exports.sqliteAlwaysNewConnectionPool = _chunkJIZGCEPEcjs.sqliteAlwaysNewConnectionPool; exports.sqliteAmbientClientConnection = _chunkJIZGCEPEcjs.sqliteAmbientClientConnection; exports.sqliteAmbientConnectionPool = _chunkJIZGCEPEcjs.sqliteAmbientConnectionPool; exports.sqliteClientConnection = _chunkJIZGCEPEcjs.sqliteClientConnection; exports.sqliteConnection = _chunkJIZGCEPEcjs.sqliteConnection; exports.sqliteExecute = _chunkJIZGCEPEcjs.sqliteExecute; exports.sqliteFormatter = _chunkJIZGCEPEcjs.sqliteFormatter; exports.sqliteMetadata = _chunkRQ3KKMTPcjs.sqliteMetadata; exports.sqlitePool = _chunkJIZGCEPEcjs.sqlitePool; exports.sqlitePoolClientConnection = _chunkJIZGCEPEcjs.sqlitePoolClientConnection; exports.sqliteSQLExecutor = _chunkJIZGCEPEcjs.sqliteSQLExecutor; exports.sqliteSingletonConnectionPool = _chunkJIZGCEPEcjs.sqliteSingletonConnectionPool; exports.sqliteTransaction = _chunkJIZGCEPEcjs.sqliteTransaction; exports.tableExists = _chunkRQ3KKMTPcjs.tableExists; exports.toSqlitePoolOptions = _chunkJIZGCEPEcjs.toSqlitePoolOptions; exports.transactionNestingCounter = _chunkJIZGCEPEcjs.transactionNestingCounter;
60
60
  //# sourceMappingURL=sqlite.cjs.map
package/dist/sqlite.d.cts CHANGED
@@ -1,7 +1,12 @@
1
- import { g as DatabaseMetadata, h as DatabaseTransactionOptions, i as DatabaseTransaction, J as JSONSerializer, bg as InferDbClientFromConnection, bn as InferTransactionFromConnection, aE as DatabaseConnectionString, A as AnyConnection, ch as SQLExecutor, C as Connection, ce as SQLCommandOptions, aa as BatchSQLCommandOptions, e as ConnectionOptions, bi as InferDriverTypeFromConnection, bq as InitTransaction, m as DumboError, l as DbSQLExecutor, f as SQLFormatter, j as ConnectionPool, M as MigratorOptions, x as DatabaseDriverType } from './connectionString-Dch_MIRU.cjs';
1
+ import { g as DatabaseMetadata, m as DumboError, l as DbSQLExecutor, J as JSONSerializer, f as SQLFormatter, h as DatabaseTransactionOptions, i as DatabaseTransaction, bg as InferDbClientFromConnection, bn as InferTransactionFromConnection, aE as DatabaseConnectionString, A as AnyConnection, ch as SQLExecutor, C as Connection, ce as SQLCommandOptions, aa as BatchSQLCommandOptions, e as ConnectionOptions, bi as InferDriverTypeFromConnection, bq as InitTransaction, j as ConnectionPool, M as MigratorOptions, x as DatabaseDriverType } from './connectionString-Dch_MIRU.cjs';
2
2
 
3
3
  declare const sqliteMetadata: DatabaseMetadata<false, false, false>;
4
4
 
5
+ type SQLiteErrorMapper = (error: unknown) => DumboError;
6
+ declare const sqliteExecute: <Result = void>(database: SQLiteClient, handle: (client: SQLiteClient) => Promise<Result>) => Promise<Result>;
7
+ type SQLiteSQLExecutor<DriverType extends SQLiteDriverType = SQLiteDriverType> = DbSQLExecutor<DriverType, SQLiteClient>;
8
+ declare const sqliteSQLExecutor: <DriverType extends SQLiteDriverType = SQLiteDriverType>(driverType: DriverType, serializer: JSONSerializer, formatter?: SQLFormatter, errorMapper?: SQLiteErrorMapper) => SQLiteSQLExecutor<DriverType>;
9
+
5
10
  type SQLiteTransaction<ConnectionType extends AnySQLiteConnection = AnySQLiteConnection, TransactionOptions extends SQLiteTransactionOptions = SQLiteTransactionOptions> = DatabaseTransaction<ConnectionType, TransactionOptions>;
6
11
  type SQLiteTransactionMode = 'DEFERRED' | 'IMMEDIATE' | 'EXCLUSIVE';
7
12
  type SQLiteTransactionOptions = DatabaseTransactionOptions & {
@@ -12,6 +17,15 @@ declare const sqliteTransaction: <ConnectionType extends AnySQLiteConnection = A
12
17
  close: (client: InferDbClientFromConnection<ConnectionType>, error?: unknown) => Promise<void>;
13
18
  } & SQLiteTransactionOptions) => InferTransactionFromConnection<ConnectionType>;
14
19
 
20
+ type SQLitePragmaOptions = {
21
+ journal_mode?: 'DELETE' | 'TRUNCATE' | 'PERSIST' | 'MEMORY' | 'WAL' | 'OFF';
22
+ synchronous?: 'OFF' | 'NORMAL' | 'FULL' | 'EXTRA';
23
+ cache_size?: number;
24
+ foreign_keys?: boolean;
25
+ temp_store?: 'DEFAULT' | 'FILE' | 'MEMORY';
26
+ busy_timeout?: number;
27
+ mmap_size?: number;
28
+ };
15
29
  type SQLiteConnectionString = DatabaseConnectionString<'SQLite', `file:${string}` | `:memory:` | `/${string}` | `./${string}`>;
16
30
  declare const SQLiteConnectionString: (connectionString: string) => SQLiteConnectionString;
17
31
  declare const parsePragmasFromConnectionString: (connectionString: string | SQLiteConnectionString) => Partial<SQLitePragmaOptions>;
@@ -79,15 +93,7 @@ declare const sqlitePoolClientConnection: <SQLiteConnectionType extends AnySQLit
79
93
  declare function sqliteConnection<SQLiteConnectionType extends AnySQLiteConnection = AnySQLiteConnection, ClientOptions = SQLiteClientOptions>(options: SQLiteConnectionDefinitionOptions<SQLiteConnectionType, ClientOptions>): SQLiteConnectionType;
80
94
  type InMemorySQLiteDatabase = ':memory:';
81
95
  declare const InMemorySQLiteDatabase: SQLiteConnectionString;
82
- type SQLitePragmaOptions = {
83
- journal_mode?: 'DELETE' | 'TRUNCATE' | 'PERSIST' | 'MEMORY' | 'WAL' | 'OFF';
84
- synchronous?: 'OFF' | 'NORMAL' | 'FULL' | 'EXTRA';
85
- cache_size?: number;
86
- foreign_keys?: boolean;
87
- temp_store?: 'DEFAULT' | 'FILE' | 'MEMORY';
88
- busy_timeout?: number;
89
- mmap_size?: number;
90
- };
96
+
91
97
  declare const DEFAULT_SQLITE_PRAGMA_OPTIONS: SQLitePragmaOptions;
92
98
  type SQLiteClientOptions = {
93
99
  pragmaOptions?: Partial<SQLitePragmaOptions>;
@@ -106,11 +112,6 @@ type SQLiteClientOptions = {
106
112
  */
107
113
  declare const mapSqliteError: (error: unknown) => DumboError;
108
114
 
109
- type SQLiteErrorMapper = (error: unknown) => DumboError;
110
- declare const sqliteExecute: <Result = void>(database: SQLiteClient, handle: (client: SQLiteClient) => Promise<Result>) => Promise<Result>;
111
- type SQLiteSQLExecutor<DriverType extends SQLiteDriverType = SQLiteDriverType> = DbSQLExecutor<DriverType, SQLiteClient>;
112
- declare const sqliteSQLExecutor: <DriverType extends SQLiteDriverType = SQLiteDriverType>(driverType: DriverType, serializer: JSONSerializer, formatter?: SQLFormatter, errorMapper?: SQLiteErrorMapper) => SQLiteSQLExecutor<DriverType>;
113
-
114
115
  type SQLiteDualPoolOptions<SQLiteConnectionType extends AnySQLiteConnection, ConnectionOptions extends SQLiteConnectionOptions> = {
115
116
  driverType: SQLiteConnectionType['driverType'];
116
117
  dual?: true;
package/dist/sqlite.d.ts CHANGED
@@ -1,7 +1,12 @@
1
- import { g as DatabaseMetadata, h as DatabaseTransactionOptions, i as DatabaseTransaction, J as JSONSerializer, bg as InferDbClientFromConnection, bn as InferTransactionFromConnection, aE as DatabaseConnectionString, A as AnyConnection, ch as SQLExecutor, C as Connection, ce as SQLCommandOptions, aa as BatchSQLCommandOptions, e as ConnectionOptions, bi as InferDriverTypeFromConnection, bq as InitTransaction, m as DumboError, l as DbSQLExecutor, f as SQLFormatter, j as ConnectionPool, M as MigratorOptions, x as DatabaseDriverType } from './connectionString-Dch_MIRU.js';
1
+ import { g as DatabaseMetadata, m as DumboError, l as DbSQLExecutor, J as JSONSerializer, f as SQLFormatter, h as DatabaseTransactionOptions, i as DatabaseTransaction, bg as InferDbClientFromConnection, bn as InferTransactionFromConnection, aE as DatabaseConnectionString, A as AnyConnection, ch as SQLExecutor, C as Connection, ce as SQLCommandOptions, aa as BatchSQLCommandOptions, e as ConnectionOptions, bi as InferDriverTypeFromConnection, bq as InitTransaction, j as ConnectionPool, M as MigratorOptions, x as DatabaseDriverType } from './connectionString-Dch_MIRU.js';
2
2
 
3
3
  declare const sqliteMetadata: DatabaseMetadata<false, false, false>;
4
4
 
5
+ type SQLiteErrorMapper = (error: unknown) => DumboError;
6
+ declare const sqliteExecute: <Result = void>(database: SQLiteClient, handle: (client: SQLiteClient) => Promise<Result>) => Promise<Result>;
7
+ type SQLiteSQLExecutor<DriverType extends SQLiteDriverType = SQLiteDriverType> = DbSQLExecutor<DriverType, SQLiteClient>;
8
+ declare const sqliteSQLExecutor: <DriverType extends SQLiteDriverType = SQLiteDriverType>(driverType: DriverType, serializer: JSONSerializer, formatter?: SQLFormatter, errorMapper?: SQLiteErrorMapper) => SQLiteSQLExecutor<DriverType>;
9
+
5
10
  type SQLiteTransaction<ConnectionType extends AnySQLiteConnection = AnySQLiteConnection, TransactionOptions extends SQLiteTransactionOptions = SQLiteTransactionOptions> = DatabaseTransaction<ConnectionType, TransactionOptions>;
6
11
  type SQLiteTransactionMode = 'DEFERRED' | 'IMMEDIATE' | 'EXCLUSIVE';
7
12
  type SQLiteTransactionOptions = DatabaseTransactionOptions & {
@@ -12,6 +17,15 @@ declare const sqliteTransaction: <ConnectionType extends AnySQLiteConnection = A
12
17
  close: (client: InferDbClientFromConnection<ConnectionType>, error?: unknown) => Promise<void>;
13
18
  } & SQLiteTransactionOptions) => InferTransactionFromConnection<ConnectionType>;
14
19
 
20
+ type SQLitePragmaOptions = {
21
+ journal_mode?: 'DELETE' | 'TRUNCATE' | 'PERSIST' | 'MEMORY' | 'WAL' | 'OFF';
22
+ synchronous?: 'OFF' | 'NORMAL' | 'FULL' | 'EXTRA';
23
+ cache_size?: number;
24
+ foreign_keys?: boolean;
25
+ temp_store?: 'DEFAULT' | 'FILE' | 'MEMORY';
26
+ busy_timeout?: number;
27
+ mmap_size?: number;
28
+ };
15
29
  type SQLiteConnectionString = DatabaseConnectionString<'SQLite', `file:${string}` | `:memory:` | `/${string}` | `./${string}`>;
16
30
  declare const SQLiteConnectionString: (connectionString: string) => SQLiteConnectionString;
17
31
  declare const parsePragmasFromConnectionString: (connectionString: string | SQLiteConnectionString) => Partial<SQLitePragmaOptions>;
@@ -79,15 +93,7 @@ declare const sqlitePoolClientConnection: <SQLiteConnectionType extends AnySQLit
79
93
  declare function sqliteConnection<SQLiteConnectionType extends AnySQLiteConnection = AnySQLiteConnection, ClientOptions = SQLiteClientOptions>(options: SQLiteConnectionDefinitionOptions<SQLiteConnectionType, ClientOptions>): SQLiteConnectionType;
80
94
  type InMemorySQLiteDatabase = ':memory:';
81
95
  declare const InMemorySQLiteDatabase: SQLiteConnectionString;
82
- type SQLitePragmaOptions = {
83
- journal_mode?: 'DELETE' | 'TRUNCATE' | 'PERSIST' | 'MEMORY' | 'WAL' | 'OFF';
84
- synchronous?: 'OFF' | 'NORMAL' | 'FULL' | 'EXTRA';
85
- cache_size?: number;
86
- foreign_keys?: boolean;
87
- temp_store?: 'DEFAULT' | 'FILE' | 'MEMORY';
88
- busy_timeout?: number;
89
- mmap_size?: number;
90
- };
96
+
91
97
  declare const DEFAULT_SQLITE_PRAGMA_OPTIONS: SQLitePragmaOptions;
92
98
  type SQLiteClientOptions = {
93
99
  pragmaOptions?: Partial<SQLitePragmaOptions>;
@@ -106,11 +112,6 @@ type SQLiteClientOptions = {
106
112
  */
107
113
  declare const mapSqliteError: (error: unknown) => DumboError;
108
114
 
109
- type SQLiteErrorMapper = (error: unknown) => DumboError;
110
- declare const sqliteExecute: <Result = void>(database: SQLiteClient, handle: (client: SQLiteClient) => Promise<Result>) => Promise<Result>;
111
- type SQLiteSQLExecutor<DriverType extends SQLiteDriverType = SQLiteDriverType> = DbSQLExecutor<DriverType, SQLiteClient>;
112
- declare const sqliteSQLExecutor: <DriverType extends SQLiteDriverType = SQLiteDriverType>(driverType: DriverType, serializer: JSONSerializer, formatter?: SQLFormatter, errorMapper?: SQLiteErrorMapper) => SQLiteSQLExecutor<DriverType>;
113
-
114
115
  type SQLiteDualPoolOptions<SQLiteConnectionType extends AnySQLiteConnection, ConnectionOptions extends SQLiteConnectionOptions> = {
115
116
  driverType: SQLiteConnectionType['driverType'];
116
117
  dual?: true;
package/dist/sqlite.js CHANGED
@@ -22,13 +22,13 @@ import {
22
22
  sqliteTransaction,
23
23
  toSqlitePoolOptions,
24
24
  transactionNestingCounter
25
- } from "./chunk-CMHMR5VO.js";
25
+ } from "./chunk-6HAHSSPW.js";
26
26
  import {
27
27
  defaultSQLiteDatabase,
28
28
  sqliteMetadata,
29
29
  tableExists
30
- } from "./chunk-WLWELSA2.js";
31
- import "./chunk-JKE6SULM.js";
30
+ } from "./chunk-UK7MXVS2.js";
31
+ import "./chunk-H2JBS7HM.js";
32
32
  export {
33
33
  DEFAULT_SQLITE_PRAGMA_OPTIONS,
34
34
  DefaultSQLiteMigratorOptions,