@event-driven-io/dumbo 0.12.1 → 0.13.0-alpha.2

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 (101) hide show
  1. package/dist/chunk-2FKOO7MT.js +1 -0
  2. package/dist/chunk-2FKOO7MT.js.map +1 -0
  3. package/dist/chunk-3AZXA4Q4.cjs +1 -0
  4. package/dist/chunk-3AZXA4Q4.cjs.map +1 -0
  5. package/dist/chunk-55X4XXTZ.cjs +40 -0
  6. package/dist/chunk-55X4XXTZ.cjs.map +1 -0
  7. package/dist/chunk-72RN47FR.cjs +36 -0
  8. package/dist/chunk-72RN47FR.cjs.map +1 -0
  9. package/dist/chunk-DY2FMM5O.cjs +1 -0
  10. package/dist/chunk-DY2FMM5O.cjs.map +1 -0
  11. package/dist/chunk-DYX7V3LM.cjs +1409 -0
  12. package/dist/chunk-DYX7V3LM.cjs.map +1 -0
  13. package/dist/chunk-IIFZU7RA.js +1409 -0
  14. package/dist/chunk-IIFZU7RA.js.map +1 -0
  15. package/dist/chunk-KIWDFZ4Q.js +69 -0
  16. package/dist/chunk-KIWDFZ4Q.js.map +1 -0
  17. package/dist/chunk-L52DDJVT.js +1 -0
  18. package/dist/chunk-L52DDJVT.js.map +1 -0
  19. package/dist/chunk-LKLJL6B2.cjs +1 -0
  20. package/dist/chunk-LKLJL6B2.cjs.map +1 -0
  21. package/dist/chunk-ML7B25UO.js +40 -0
  22. package/dist/chunk-ML7B25UO.js.map +1 -0
  23. package/dist/chunk-PXIJTLLG.cjs +34 -0
  24. package/dist/chunk-PXIJTLLG.cjs.map +1 -0
  25. package/dist/chunk-QD3XOIUK.js +34 -0
  26. package/dist/chunk-QD3XOIUK.js.map +1 -0
  27. package/dist/chunk-SYFQT5SJ.js +1 -0
  28. package/dist/chunk-SYFQT5SJ.js.map +1 -0
  29. package/dist/chunk-TXXOMO2S.cjs +69 -0
  30. package/dist/chunk-TXXOMO2S.cjs.map +1 -0
  31. package/dist/chunk-VWPQS5RN.js +147 -0
  32. package/dist/chunk-VWPQS5RN.js.map +1 -0
  33. package/dist/chunk-Y7ETN53Q.cjs +147 -0
  34. package/dist/chunk-Y7ETN53Q.cjs.map +1 -0
  35. package/dist/chunk-YJF6HCJO.js +36 -0
  36. package/dist/chunk-YJF6HCJO.js.map +1 -0
  37. package/dist/connection-OKCNNQLA.cjs +17 -0
  38. package/dist/connection-OKCNNQLA.cjs.map +1 -0
  39. package/dist/connection-QSWKG7CD.js +17 -0
  40. package/dist/connection-QSWKG7CD.js.map +1 -0
  41. package/dist/connection.int.spec-4JZ5IO52.js +279 -0
  42. package/dist/connection.int.spec-4JZ5IO52.js.map +1 -0
  43. package/dist/connection.int.spec-WSLCBNOR.cjs +279 -0
  44. package/dist/connection.int.spec-WSLCBNOR.cjs.map +1 -0
  45. package/dist/connections-3374TYPY.js +20 -0
  46. package/dist/connections-3374TYPY.js.map +1 -0
  47. package/dist/connections-DM3XBOND.js +18 -0
  48. package/dist/connections-DM3XBOND.js.map +1 -0
  49. package/dist/connections-KNAIUBC5.cjs +18 -0
  50. package/dist/connections-KNAIUBC5.cjs.map +1 -0
  51. package/dist/connections-ROCX4PBC.cjs +20 -0
  52. package/dist/connections-ROCX4PBC.cjs.map +1 -0
  53. package/dist/core-FB34A5DC.js +38 -0
  54. package/dist/core-FB34A5DC.js.map +1 -0
  55. package/dist/core-ROYOQ2PP.cjs +38 -0
  56. package/dist/core-ROYOQ2PP.cjs.map +1 -0
  57. package/dist/execute-DVHVB627.cjs +10 -0
  58. package/dist/execute-DVHVB627.cjs.map +1 -0
  59. package/dist/execute-HCURO5PS.cjs +11 -0
  60. package/dist/execute-HCURO5PS.cjs.map +1 -0
  61. package/dist/execute-NABA4WBO.js +10 -0
  62. package/dist/execute-NABA4WBO.js.map +1 -0
  63. package/dist/execute-TDYAV2AC.js +11 -0
  64. package/dist/execute-TDYAV2AC.js.map +1 -0
  65. package/dist/index-C0xy8dwZ.d.cts +183 -0
  66. package/dist/index-C0xy8dwZ.d.ts +183 -0
  67. package/dist/index.cjs +91 -1294
  68. package/dist/index.cjs.map +1 -1
  69. package/dist/index.d.cts +14 -169
  70. package/dist/index.d.ts +14 -169
  71. package/dist/index.js +92 -1295
  72. package/dist/index.js.map +1 -1
  73. package/dist/pg.cjs +79 -0
  74. package/dist/pg.cjs.map +1 -0
  75. package/dist/pg.d.cts +3 -0
  76. package/dist/pg.d.ts +3 -0
  77. package/dist/pg.js +79 -0
  78. package/dist/pg.js.map +1 -0
  79. package/dist/pool-4C3RXVW5.cjs +20 -0
  80. package/dist/pool-4C3RXVW5.cjs.map +1 -0
  81. package/dist/pool-72E2RZLT.js +20 -0
  82. package/dist/pool-72E2RZLT.js.map +1 -0
  83. package/dist/sqlite-6TQBKUQW.js +8 -0
  84. package/dist/sqlite-6TQBKUQW.js.map +1 -0
  85. package/dist/sqlite-V3G6SXM3.cjs +8 -0
  86. package/dist/sqlite-V3G6SXM3.cjs.map +1 -0
  87. package/dist/sqlite3-MGFULTOS.cjs +20 -0
  88. package/dist/sqlite3-MGFULTOS.cjs.map +1 -0
  89. package/dist/sqlite3-YRIOHH6U.js +20 -0
  90. package/dist/sqlite3-YRIOHH6U.js.map +1 -0
  91. package/dist/sqlite3.cjs +49 -0
  92. package/dist/sqlite3.cjs.map +1 -0
  93. package/dist/sqlite3.d.cts +125 -0
  94. package/dist/sqlite3.d.ts +125 -0
  95. package/dist/sqlite3.js +49 -0
  96. package/dist/sqlite3.js.map +1 -0
  97. package/dist/transactions-7RPMRDZJ.cjs +10 -0
  98. package/dist/transactions-7RPMRDZJ.cjs.map +1 -0
  99. package/dist/transactions-KIOZ2TLT.js +10 -0
  100. package/dist/transactions-KIOZ2TLT.js.map +1 -0
  101. package/package.json +43 -8
package/dist/index.d.ts CHANGED
@@ -1,13 +1,7 @@
1
+ import { Q as QueryResultRow, d as QueryResult, S as SQLExecutor, e as SQL, a as ConnectionPool, C as Connection, J as JSONSerializer, b as DatabaseTransaction, D as DbSQLExecutor } from './index-C0xy8dwZ.js';
2
+ export { f as ConnectionFactory, i as ConnectionPoolFactory, c as ConnectorTypeName, p as ConnectorTypeParts, g as CreateConnectionOptions, o as DatabaseDriverName, k as DatabaseTransactionFactory, n as DatabaseType, L as JSONObjectCodec, M as JSONObjectCodecOptions, F as JSONReplacer, G as JSONReplacers, H as JSONReviver, I as JSONRevivers, O as ObjectCodec, R as RawJSONSerializer, v as SQLCommandOptions, u as SQLQueryOptions, A as Serializer, T as TransactionResult, W as WithSQLExecutor, B as composeJSONReplacers, E as composeJSONRevivers, h as createConnection, j as createConnectionPool, z as executeInNewConnection, y as executeInNewDbClient, l as executeInTransaction, r as fromConnectorType, s as getDriverName, N as identifier, P as isSQL, K as jsonSerializer, U as literal, V as plainString, X as rawSql, Y as sql, w as sqlExecutor, x as sqlExecutorInNewConnection, q as toConnectorType, t as transactionFactoryWithDbClient, m as transactionFactoryWithNewConnection } from './index-C0xy8dwZ.js';
1
3
  import pg from 'pg';
2
4
 
3
- interface QueryResultRow {
4
- [column: string]: any;
5
- }
6
- type QueryResult<Result extends QueryResultRow = QueryResultRow> = {
7
- rowCount: number | null;
8
- rows: Result[];
9
- };
10
-
11
5
  declare const mapRows: <Result extends QueryResultRow = QueryResultRow, Mapped = unknown>(getResult: Promise<QueryResult<Result>>, map: (row: Result) => Mapped) => Promise<Mapped[]>;
12
6
  declare const toCamelCase: (snakeStr: string) => string;
13
7
  declare const mapToCamelCase: <T extends Record<string, unknown>>(obj: Record<string, unknown>) => T;
@@ -25,109 +19,6 @@ type ExistsSQLQueryResult = {
25
19
  };
26
20
  declare const exists: (getResult: Promise<QueryResult<ExistsSQLQueryResult>>) => Promise<boolean>;
27
21
 
28
- declare const sql: (sqlQuery: string, ...params: unknown[]) => SQL;
29
- declare const rawSql: (sqlQuery: string) => SQL;
30
- declare const isSQL: (literal: unknown) => literal is SQL;
31
- declare const literal: (value: unknown) => {
32
- type: string;
33
- value: unknown;
34
- };
35
- declare const identifier: (value: string) => {
36
- type: string;
37
- value: string;
38
- };
39
- declare const plainString: (value: string) => {
40
- type: string;
41
- value: string;
42
- };
43
- type SQL = string & {
44
- __brand: 'sql';
45
- };
46
- declare function SQL(strings: TemplateStringsArray, ...values: unknown[]): SQL;
47
-
48
- type SQLQueryOptions = {
49
- timeoutMs?: number;
50
- };
51
- type SQLCommandOptions = {
52
- timeoutMs?: number;
53
- };
54
- interface DbSQLExecutor<ConnectorType extends string = string, DbClient = unknown> {
55
- type: ConnectorType;
56
- query<Result extends QueryResultRow = QueryResultRow>(client: DbClient, sql: SQL, options?: SQLQueryOptions): Promise<QueryResult<Result>>;
57
- batchQuery<Result extends QueryResultRow = QueryResultRow>(client: DbClient, sqls: SQL[], options?: SQLQueryOptions): Promise<QueryResult<Result>[]>;
58
- command<Result extends QueryResultRow = QueryResultRow>(client: DbClient, sql: SQL, options?: SQLCommandOptions): Promise<QueryResult<Result>>;
59
- batchCommand<Result extends QueryResultRow = QueryResultRow>(client: DbClient, sqls: SQL[], options?: SQLCommandOptions): Promise<QueryResult<Result>[]>;
60
- }
61
- interface SQLExecutor {
62
- query<Result extends QueryResultRow = QueryResultRow>(sql: SQL, options?: SQLQueryOptions): Promise<QueryResult<Result>>;
63
- batchQuery<Result extends QueryResultRow = QueryResultRow>(sqls: SQL[], options?: SQLQueryOptions): Promise<QueryResult<Result>[]>;
64
- command<Result extends QueryResultRow = QueryResultRow>(sql: SQL, options?: SQLCommandOptions): Promise<QueryResult<Result>>;
65
- batchCommand<Result extends QueryResultRow = QueryResultRow>(sqls: SQL[], options?: SQLCommandOptions): Promise<QueryResult<Result>[]>;
66
- }
67
- interface WithSQLExecutor {
68
- execute: SQLExecutor;
69
- }
70
- declare const sqlExecutor: <DbClient = unknown, DbExecutor extends DbSQLExecutor = DbSQLExecutor<string, unknown>>(sqlExecutor: DbExecutor, options: {
71
- connect: () => Promise<DbClient>;
72
- close?: (client: DbClient, error?: unknown) => Promise<void>;
73
- }) => SQLExecutor;
74
- declare const sqlExecutorInNewConnection: <ConnectionType extends Connection>(options: {
75
- connection: () => Promise<ConnectionType>;
76
- }) => SQLExecutor;
77
- declare const executeInNewDbClient: <DbClient = unknown, Result = unknown>(handle: (client: DbClient) => Promise<Result>, options: {
78
- connect: () => Promise<DbClient>;
79
- close?: (client: DbClient, error?: unknown) => Promise<void>;
80
- }) => Promise<Result>;
81
- declare const executeInNewConnection: <ConnectionType extends Connection, Result>(handle: (connection: ConnectionType) => Promise<Result>, options: {
82
- connection: () => Promise<ConnectionType>;
83
- }) => Promise<Result>;
84
-
85
- interface DatabaseTransaction<ConnectorType extends string = string, DbClient = unknown> extends WithSQLExecutor {
86
- type: ConnectorType;
87
- connection: Connection<ConnectorType, DbClient>;
88
- begin: () => Promise<void>;
89
- commit: () => Promise<void>;
90
- rollback: (error?: unknown) => Promise<void>;
91
- }
92
- interface DatabaseTransactionFactory<ConnectorType extends string = string, DbClient = unknown> {
93
- transaction: () => DatabaseTransaction<ConnectorType, DbClient>;
94
- withTransaction: <Result = never>(handle: (transaction: DatabaseTransaction<ConnectorType, DbClient>) => Promise<TransactionResult<Result> | Result>) => Promise<Result>;
95
- }
96
- type TransactionResult<Result> = {
97
- success: boolean;
98
- result: Result;
99
- };
100
- declare const executeInTransaction: <ConnectorType extends string = string, DbClient = unknown, Result = void>(transaction: DatabaseTransaction<ConnectorType, DbClient>, handle: (transaction: DatabaseTransaction<ConnectorType, DbClient>) => Promise<TransactionResult<Result> | Result>) => Promise<Result>;
101
- declare const transactionFactoryWithDbClient: <ConnectorType extends string = string, DbClient = unknown>(connect: () => Promise<DbClient>, initTransaction: (client: Promise<DbClient>) => DatabaseTransaction<ConnectorType, DbClient>) => DatabaseTransactionFactory<ConnectorType, DbClient>;
102
- declare const transactionFactoryWithNewConnection: <ConnectionType extends Connection = Connection<string, unknown>>(connect: () => ConnectionType) => DatabaseTransactionFactory<ConnectionType["type"]>;
103
-
104
- interface Connection<ConnectorType extends string = string, DbClient = unknown> extends WithSQLExecutor, DatabaseTransactionFactory<ConnectorType> {
105
- type: ConnectorType;
106
- open: () => Promise<DbClient>;
107
- close: () => Promise<void>;
108
- }
109
- interface ConnectionFactory<ConnectionType extends Connection = Connection> {
110
- connection: () => Promise<ConnectionType>;
111
- withConnection: <Result = unknown>(handle: (connection: ConnectionType) => Promise<Result>) => Promise<Result>;
112
- }
113
- type CreateConnectionOptions<ConnectorType extends string = string, DbClient = unknown, ConnectionType extends Connection<ConnectorType, DbClient> = Connection<ConnectorType, DbClient>, Executor extends DbSQLExecutor = DbSQLExecutor> = {
114
- type: ConnectorType;
115
- connect: Promise<DbClient>;
116
- close: (client: DbClient) => Promise<void>;
117
- initTransaction: (connection: () => ConnectionType) => (client: Promise<DbClient>) => DatabaseTransaction<ConnectorType, DbClient>;
118
- executor: () => Executor;
119
- };
120
- declare const createConnection: <ConnectorType extends string = string, DbClient = unknown, ConnectionType extends Connection<ConnectorType, DbClient> = Connection<ConnectorType, DbClient>, Executor extends DbSQLExecutor = DbSQLExecutor<string, unknown>>(options: CreateConnectionOptions<ConnectorType, DbClient, ConnectionType, Executor>) => ConnectionType;
121
-
122
- interface ConnectionPool<ConnectionType extends Connection = Connection> extends WithSQLExecutor, ConnectionFactory<ConnectionType>, DatabaseTransactionFactory<ConnectionType['type']> {
123
- type: ConnectionType['type'];
124
- close: () => Promise<void>;
125
- }
126
- type ConnectionPoolFactory<ConnectionPoolType extends ConnectionPool = ConnectionPool, ConnectionPoolOptions = unknown> = (options: ConnectionPoolOptions) => ConnectionPoolType;
127
- declare const createConnectionPool: <ConnectionType extends Connection, ConnectionPoolType extends ConnectionPool<ConnectionType>>(pool: Pick<ConnectionPool<ConnectionType>, "type"> & Partial<ConnectionPool<ConnectionType>> & {
128
- getConnection: () => ConnectionType;
129
- }) => ConnectionPoolType;
130
-
131
22
  type MigrationStyle = 'None' | 'CreateOrUpdate';
132
23
  type SQLMigration = {
133
24
  name: string;
@@ -172,54 +63,6 @@ declare const schemaComponent: (type: string, migrationsOrComponents: {
172
63
  components: ReadonlyArray<SchemaComponent>;
173
64
  }) => SchemaComponent;
174
65
 
175
- type JSONSerializerOptions = {
176
- disableBigIntSerialization?: boolean;
177
- };
178
- type JSONSerializeOptions = {
179
- replacer?: JSONReplacer;
180
- } & JSONSerializerOptions;
181
- type JSONDeserializeOptions = {
182
- reviver?: JSONReviver;
183
- } & JSONSerializerOptions;
184
- type JSONObjectCodecOptions<SerializeOptions = JSONSerializeOptions, DeserializeOptions = JSONDeserializeOptions> = {
185
- serializer?: JSONSerializer<SerializeOptions, DeserializeOptions>;
186
- } | {
187
- serializerOptions?: JSONSerializerOptions;
188
- };
189
- declare const composeJSONReplacers: (...replacers: JSONReplacer[]) => JSONReplacer;
190
- declare const composeJSONRevivers: (...revivers: JSONReviver[]) => JSONReviver;
191
- type JSONReplacer = (this: any, key: string, value: any) => any;
192
- declare const JSONReplacer: (opts?: JSONSerializeOptions) => JSONReplacer | undefined;
193
- type JSONReviver = (this: any, key: string, value: any) => any;
194
- declare const JSONReviver: (opts?: JSONDeserializeOptions) => JSONReviver | undefined;
195
- declare const JSONReplacers: {
196
- bigInt: JSONReplacer;
197
- };
198
- declare const JSONRevivers: {
199
- bigInt: JSONReviver;
200
- };
201
- declare const jsonSerializer: (options?: JSONSerializerOptions) => JSONSerializer;
202
- interface JSONSerializer<SerializeOptions = JSONSerializeOptions, DeserializeOptions = JSONDeserializeOptions> extends Serializer<string, SerializeOptions, DeserializeOptions> {
203
- serialize<T>(object: T, options?: SerializeOptions): string;
204
- deserialize<T>(payload: string, options?: DeserializeOptions): T;
205
- }
206
- declare const JSONSerializer: JSONSerializer<JSONSerializeOptions, JSONDeserializeOptions>;
207
- declare const RawJSONSerializer: JSONSerializer<JSONSerializeOptions, JSONDeserializeOptions>;
208
- interface JSONObjectCodec<T, SerializeOptions = JSONSerializeOptions, DeserializeOptions = JSONDeserializeOptions> extends ObjectCodec<T, string> {
209
- encode(object: T, options?: SerializeOptions): string;
210
- decode(payload: string, options?: DeserializeOptions): T;
211
- }
212
- declare const JSONObjectCodec: <T, SerializeOptions = JSONSerializeOptions, DeserializeOptions = JSONDeserializeOptions>(options: JSONObjectCodecOptions<SerializeOptions, DeserializeOptions>) => JSONObjectCodec<T, SerializeOptions, DeserializeOptions>;
213
-
214
- interface Serializer<Payload, SerializeOptions = never, DeserializeOptions = SerializeOptions> {
215
- serialize<T>(object: T, options?: SerializeOptions): Payload;
216
- deserialize<T>(payload: Payload, options?: DeserializeOptions): T;
217
- }
218
- interface ObjectCodec<T, Payload> {
219
- encode(object: T): Payload;
220
- decode(payload: Payload): T;
221
- }
222
-
223
66
  declare const color: {
224
67
  level: 0 | 1;
225
68
  hex: (value: string) => (text: string) => string;
@@ -310,20 +153,22 @@ declare const advisoryLock: (execute: SQLExecutor, options: DatabaseLockOptions)
310
153
 
311
154
  declare const NodePostgresConnectorType = "PostgreSQL:pg";
312
155
  type NodePostgresConnector = 'PostgreSQL:pg';
313
- type NodePostgresClient = pg.PoolClient | pg.Client;
314
- type NodePostgresPoolOrClient = pg.Pool | pg.PoolClient | pg.Client;
315
- type NodePostgresClientConnection = Connection<NodePostgresConnector, pg.Client>;
316
- type NodePostgresPoolClientConnection = Connection<NodePostgresConnector, pg.PoolClient>;
156
+ type NodePostgresPoolClient = pg.PoolClient;
157
+ type NodePostgresClient = pg.Client;
158
+ type NodePostgresClientOrPoolClient = NodePostgresPoolClient | NodePostgresClient;
159
+ type NodePostgresPoolOrClient = pg.Pool | NodePostgresPoolClient | NodePostgresClient;
160
+ type NodePostgresClientConnection = Connection<NodePostgresConnector, NodePostgresClient>;
161
+ type NodePostgresPoolClientConnection = Connection<NodePostgresConnector, NodePostgresPoolClient>;
317
162
  type NodePostgresConnection = NodePostgresPoolClientConnection | NodePostgresClientConnection;
318
163
  type NodePostgresPoolClientOptions = {
319
164
  type: 'PoolClient';
320
- connect: Promise<pg.PoolClient>;
321
- close: (client: pg.PoolClient) => Promise<void>;
165
+ connect: Promise<NodePostgresPoolClient>;
166
+ close: (client: NodePostgresPoolClient) => Promise<void>;
322
167
  };
323
168
  type NodePostgresClientOptions = {
324
169
  type: 'Client';
325
- connect: Promise<pg.Client>;
326
- close: (client: pg.Client) => Promise<void>;
170
+ connect: Promise<NodePostgresClient>;
171
+ close: (client: NodePostgresClient) => Promise<void>;
327
172
  };
328
173
  declare const nodePostgresClientConnection: (options: NodePostgresClientOptions) => NodePostgresClientConnection;
329
174
  declare const nodePostgresPoolClientConnection: (options: NodePostgresPoolClientOptions) => NodePostgresPoolClientConnection;
@@ -427,7 +272,7 @@ declare const isNodePostgresNativePool: (poolOrClient: pg.Pool | pg.PoolClient |
427
272
  declare const isNodePostgresClient: (poolOrClient: pg.Pool | pg.PoolClient | pg.Client) => poolOrClient is pg.Client;
428
273
  declare const isNodePostgresPoolClient: (poolOrClient: pg.Pool | pg.PoolClient | pg.Client) => poolOrClient is pg.PoolClient;
429
274
  declare const nodePostgresExecute: <Result = void>(poolOrClient: pg.Pool | pg.PoolClient | pg.Client, handle: (client: pg.PoolClient | pg.Client) => Promise<Result>) => Promise<Result>;
430
- type NodePostgresSQLExecutor = DbSQLExecutor<NodePostgresConnector, NodePostgresClient>;
275
+ type NodePostgresSQLExecutor = DbSQLExecutor<NodePostgresConnector, NodePostgresClientOrPoolClient>;
431
276
  declare const nodePostgresSQLExecutor: () => NodePostgresSQLExecutor;
432
277
  type BatchQueryOptions = {
433
278
  timeoutMs?: number;
@@ -450,4 +295,4 @@ type Dumbo = PostgresPool;
450
295
  declare const connectionPool: <PoolOptionsType extends DumboOptions>(options: PoolOptionsType) => NodePostgresNativePool;
451
296
  declare const dumbo: <DumboOptionsType extends DumboOptions = DumboOptions>(options: DumboOptionsType) => Dumbo;
452
297
 
453
- export { type AcquireDatabaseLockMode, type AcquireDatabaseLockOptions, AdvisoryLock, type BatchQueryOptions, type Connection, type ConnectionCheckResult, type ConnectionFactory, type ConnectionPool, type ConnectionPoolFactory, type ConnectorType, type CountSQLQueryResult, type CreateConnectionOptions, type DatabaseLock, type DatabaseLockOptions, type DatabaseTransaction, type DatabaseTransactionFactory, type DbSQLExecutor, type Dumbo, type DumboOptions, type ExistsSQLQueryResult, JSONObjectCodec, type JSONObjectCodecOptions, JSONReplacer, JSONReplacers, JSONReviver, JSONRevivers, JSONSerializer, LogLevel, LogStyle, type LogType, MIGRATIONS_LOCK_ID, type MigrationRecord, type MigrationStyle, type MigratorOptions, type NodePostgresAmbientClientPool, type NodePostgresAmbientConnectionPool, type NodePostgresClient, type NodePostgresClientConnection, type NodePostgresClientOptions, type NodePostgresConnection, type NodePostgresConnector, NodePostgresConnectorType, type NodePostgresNativePool, type NodePostgresPool, type NodePostgresPoolClientConnection, type NodePostgresPoolClientOptions, type NodePostgresPoolNotPooledOptions, type NodePostgresPoolOptions, type NodePostgresPoolOrClient, type NodePostgresPoolPooledOptions, type NodePostgresSQLExecutor, type NodePostgresTransaction, type ObjectCodec, type PoolOptions, type PostgreSQLMigratorOptions, type PostgresConnection, type PostgresConnector, type PostgresPool, type PostgresPoolOptions, type QueryResult, type QueryResultRow, RawJSONSerializer, type ReleaseDatabaseLockOptions, SQL, type SQLCommandOptions, type SQLExecutor, type SQLMigration, type SQLQueryOptions, type SchemaComponent, type SchemaComponentMigrationsOptions, type Serializer, type TransactionResult, type WithSQLExecutor, acquireAdvisoryLock, advisoryLock, checkConnection, color, combineMigrations, composeJSONReplacers, composeJSONRevivers, connectionPool, count, createConnection, createConnectionPool, defaultDatabaseLockOptions, defaultPostgreSQLConenctionString, defaultPostgreSqlDatabase, dumbo, endAllPools, endPool, executeInNewConnection, executeInNewDbClient, executeInTransaction, exists, first, firstOrNull, functionExists, functionExistsSQL, getDatabaseNameOrDefault, getPool, identifier, isNodePostgresClient, isNodePostgresNativePool, isNodePostgresPoolClient, isSQL, jsonSerializer, literal, mapRows, mapToCamelCase, migrationTableSchemaComponent, nodePostgresAmbientClientPool, nodePostgresAmbientConnectionPool, nodePostgresAmbientNativePool, nodePostgresClientConnection, nodePostgresClientPool, nodePostgresConnection, nodePostgresExecute, nodePostgresNativePool, nodePostgresPool, nodePostgresPoolClientConnection, nodePostgresSQLExecutor, nodePostgresTransaction, onEndPool, plainString, postgresPool, prettyJson, rawSql, releaseAdvisoryLock, runPostgreSQLMigrations, runSQLMigrations, schemaComponent, setNodePostgresTypeParser, single, singleOrNull, sql, sqlExecutor, sqlExecutorInNewConnection, sqlMigration, tableExists, tableExistsSQL, toCamelCase, tracer, transactionFactoryWithDbClient, transactionFactoryWithNewConnection, tryAcquireAdvisoryLock };
298
+ export { type AcquireDatabaseLockMode, type AcquireDatabaseLockOptions, AdvisoryLock, type BatchQueryOptions, Connection, type ConnectionCheckResult, ConnectionPool, type ConnectorType, type CountSQLQueryResult, type DatabaseLock, type DatabaseLockOptions, DatabaseTransaction, DbSQLExecutor, type Dumbo, type DumboOptions, type ExistsSQLQueryResult, JSONSerializer, LogLevel, LogStyle, type LogType, MIGRATIONS_LOCK_ID, type MigrationRecord, type MigrationStyle, type MigratorOptions, type NodePostgresAmbientClientPool, type NodePostgresAmbientConnectionPool, type NodePostgresClient, type NodePostgresClientConnection, type NodePostgresClientOptions, type NodePostgresClientOrPoolClient, type NodePostgresConnection, type NodePostgresConnector, NodePostgresConnectorType, type NodePostgresNativePool, type NodePostgresPool, type NodePostgresPoolClient, type NodePostgresPoolClientConnection, type NodePostgresPoolClientOptions, type NodePostgresPoolNotPooledOptions, type NodePostgresPoolOptions, type NodePostgresPoolOrClient, type NodePostgresPoolPooledOptions, type NodePostgresSQLExecutor, type NodePostgresTransaction, type PoolOptions, type PostgreSQLMigratorOptions, type PostgresConnection, type PostgresConnector, type PostgresPool, type PostgresPoolOptions, QueryResult, QueryResultRow, type ReleaseDatabaseLockOptions, SQL, SQLExecutor, type SQLMigration, type SchemaComponent, type SchemaComponentMigrationsOptions, acquireAdvisoryLock, advisoryLock, checkConnection, color, combineMigrations, connectionPool, count, defaultDatabaseLockOptions, defaultPostgreSQLConenctionString, defaultPostgreSqlDatabase, dumbo, endAllPools, endPool, exists, first, firstOrNull, functionExists, functionExistsSQL, getDatabaseNameOrDefault, getPool, isNodePostgresClient, isNodePostgresNativePool, isNodePostgresPoolClient, mapRows, mapToCamelCase, migrationTableSchemaComponent, nodePostgresAmbientClientPool, nodePostgresAmbientConnectionPool, nodePostgresAmbientNativePool, nodePostgresClientConnection, nodePostgresClientPool, nodePostgresConnection, nodePostgresExecute, nodePostgresNativePool, nodePostgresPool, nodePostgresPoolClientConnection, nodePostgresSQLExecutor, nodePostgresTransaction, onEndPool, postgresPool, prettyJson, releaseAdvisoryLock, runPostgreSQLMigrations, runSQLMigrations, schemaComponent, setNodePostgresTypeParser, single, singleOrNull, sqlMigration, tableExists, tableExistsSQL, toCamelCase, tracer, tryAcquireAdvisoryLock };