@event-driven-io/dumbo 0.13.0-beta.4 → 0.13.0-beta.41

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 (83) hide show
  1. package/dist/cloudflare.cjs +397 -0
  2. package/dist/cloudflare.cjs.map +1 -0
  3. package/dist/cloudflare.d.cts +99 -0
  4. package/dist/cloudflare.d.ts +99 -0
  5. package/dist/cloudflare.js +361 -0
  6. package/dist/cloudflare.js.map +1 -0
  7. package/dist/core-BMeDuqBQ.js +2265 -0
  8. package/dist/core-BMeDuqBQ.js.map +1 -0
  9. package/dist/core-BPNgo5b6.js +379 -0
  10. package/dist/core-BPNgo5b6.js.map +1 -0
  11. package/dist/core-CIVu4cNp.cjs +588 -0
  12. package/dist/core-CIVu4cNp.cjs.map +1 -0
  13. package/dist/core-D5W_5J8k.cjs +3246 -0
  14. package/dist/core-D5W_5J8k.cjs.map +1 -0
  15. package/dist/core-DqUjje4u.cjs +450 -0
  16. package/dist/core-DqUjje4u.cjs.map +1 -0
  17. package/dist/core-gu5fi784.js +451 -0
  18. package/dist/core-gu5fi784.js.map +1 -0
  19. package/dist/{index-C2z_XBn6.d.ts → index-B-q2er0S.d.cts} +122 -75
  20. package/dist/{index-C0h0c380.d.cts → index-B5qbt5nP.d.ts} +122 -75
  21. package/dist/index-BJJAkyuJ.d.ts +68 -0
  22. package/dist/index-CRbkvVjT.d.ts +1587 -0
  23. package/dist/index-Cmdlb0KP.d.cts +1587 -0
  24. package/dist/index-D7qxqMf9.d.cts +67 -0
  25. package/dist/index-DtRCGhFP.d.cts +68 -0
  26. package/dist/index-m5LDyNNF.d.ts +67 -0
  27. package/dist/index.cjs +219 -270
  28. package/dist/index.cjs.map +1 -1
  29. package/dist/index.d.cts +3 -127
  30. package/dist/index.d.ts +3 -127
  31. package/dist/index.js +56 -269
  32. package/dist/index.js.map +1 -1
  33. package/dist/pg.cjs +373 -659
  34. package/dist/pg.cjs.map +1 -1
  35. package/dist/pg.d.cts +140 -153
  36. package/dist/pg.d.ts +140 -153
  37. package/dist/pg.js +326 -658
  38. package/dist/pg.js.map +1 -1
  39. package/dist/postgreSQLMetadata-Khf1e9CT.js +65 -0
  40. package/dist/postgreSQLMetadata-Khf1e9CT.js.map +1 -0
  41. package/dist/postgreSQLMetadata-Ri_p5u6i.cjs +118 -0
  42. package/dist/postgreSQLMetadata-Ri_p5u6i.cjs.map +1 -0
  43. package/dist/postgresql.cjs +25 -0
  44. package/dist/postgresql.d.cts +3 -0
  45. package/dist/postgresql.d.ts +3 -0
  46. package/dist/postgresql.js +4 -0
  47. package/dist/sqlite.cjs +30 -0
  48. package/dist/sqlite.d.cts +3 -0
  49. package/dist/sqlite.d.ts +3 -0
  50. package/dist/sqlite.js +4 -0
  51. package/dist/sqlite3.cjs +437 -273
  52. package/dist/sqlite3.cjs.map +1 -1
  53. package/dist/sqlite3.d.cts +92 -70
  54. package/dist/sqlite3.d.ts +92 -70
  55. package/dist/sqlite3.js +402 -272
  56. package/dist/sqlite3.js.map +1 -1
  57. package/dist/sqliteMetadata-CpmoZxqb.cjs +46 -0
  58. package/dist/sqliteMetadata-CpmoZxqb.cjs.map +1 -0
  59. package/dist/sqliteMetadata-viYmVwA5.js +29 -0
  60. package/dist/sqliteMetadata-viYmVwA5.js.map +1 -0
  61. package/package.json +60 -37
  62. package/dist/chunk-32AL3EAS.cjs +0 -47
  63. package/dist/chunk-32AL3EAS.cjs.map +0 -1
  64. package/dist/chunk-6IHCIJ7S.js +0 -47
  65. package/dist/chunk-6IHCIJ7S.js.map +0 -1
  66. package/dist/chunk-IYEHOE4S.cjs +0 -405
  67. package/dist/chunk-IYEHOE4S.cjs.map +0 -1
  68. package/dist/chunk-N7RWT46K.js +0 -2011
  69. package/dist/chunk-N7RWT46K.js.map +0 -1
  70. package/dist/chunk-OJ34O3Q2.cjs +0 -2011
  71. package/dist/chunk-OJ34O3Q2.cjs.map +0 -1
  72. package/dist/chunk-XVV3OOQX.js +0 -405
  73. package/dist/chunk-XVV3OOQX.js.map +0 -1
  74. package/dist/columnProcessors-BX-sH7ah.d.cts +0 -8
  75. package/dist/columnProcessors-DMPpTPqM.d.ts +0 -8
  76. package/dist/connectionString-B1wm0TFc.d.cts +0 -1271
  77. package/dist/connectionString-B1wm0TFc.d.ts +0 -1271
  78. package/dist/d1.cjs +0 -277
  79. package/dist/d1.cjs.map +0 -1
  80. package/dist/d1.d.cts +0 -72
  81. package/dist/d1.d.ts +0 -72
  82. package/dist/d1.js +0 -277
  83. package/dist/d1.js.map +0 -1
package/dist/pg.d.ts CHANGED
@@ -1,171 +1,158 @@
1
- import { dv as DatabaseConnectionString, as as SQLExecutor, aC as AcquireDatabaseLockOptions, aD as ReleaseDatabaseLockOptions, aF as DatabaseLock, aA as DatabaseLockOptions, aB as AcquireDatabaseLockMode, M as MigratorOptions, cU as SQL, b as ConnectionPool, S as SQLFormatter, q as DatabaseDriverType, C as Connection, cy as JSONSerializer, D as DatabaseTransaction, v as AnyConnection, a as DatabaseTransactionOptions, c as DbSQLExecutor, d as DumboDatabaseDriver } from './connectionString-B1wm0TFc.js';
2
- import pg from 'pg';
3
- import { D as DefaultSQLColumnProcessors } from './columnProcessors-DMPpTPqM.js';
1
+ import { D as Connection, E as AnyConnection, Gt as DbSQLExecutor, K as DatabaseTransaction, co as JSONSerializer, ft as DumboDatabaseDriver, oo as JSONSerializationOptions, p as ConnectionPool, q as DatabaseTransactionOptions, r as postgreSQLMetadata } from "./index-CRbkvVjT.js";
2
+ import { _ as tryAcquireAdvisoryLock, a as PostgreSQLExpandSQLInProcessor, b as defaultPostgreSQLConnectionString, c as functionExists, d as tableExistsSQL, f as DefaultPostgreSQLMigratorOptions, g as releaseAdvisoryLock, h as advisoryLock, i as PostgreSQLArrayProcessor, l as functionExistsSQL, m as acquireAdvisoryLock, n as PostgreSQLDriverType, o as pgFormatter, p as AdvisoryLock, r as postgreSQLColumnProcessors, s as defaultPostgreSqlDatabase, t as PostgreSQLDatabaseName, u as tableExists, v as mapPostgresError, x as parseDatabaseName, y as PostgreSQLConnectionString } from "./index-BJJAkyuJ.js";
3
+ import pg from "pg";
4
4
 
5
- declare const defaultPostgreSQLConnectionString: PostgreSQLConnectionString;
6
- declare const getDatabaseNameOrDefault: (connectionString: string) => string;
7
- type PostgreSQLConnectionString = DatabaseConnectionString<'PostgreSQL', `postgresql://${string}` | `postgres://${string}`>;
8
- declare const PostgreSQLConnectionString: (connectionString: string) => PostgreSQLConnectionString;
9
-
10
- declare const tryAcquireAdvisoryLock: (execute: SQLExecutor, options: AcquireDatabaseLockOptions) => Promise<boolean>;
11
- declare const releaseAdvisoryLock: (execute: SQLExecutor, options: ReleaseDatabaseLockOptions) => Promise<boolean>;
12
- declare const acquireAdvisoryLock: (execute: SQLExecutor, options: AcquireDatabaseLockOptions) => Promise<void>;
13
- declare const AdvisoryLock: DatabaseLock;
14
- declare const advisoryLock: (execute: SQLExecutor, options: DatabaseLockOptions) => {
15
- acquire: (acquireOptions?: {
16
- mode: AcquireDatabaseLockMode;
17
- }) => Promise<void>;
18
- tryAcquire: (acquireOptions?: {
19
- mode: AcquireDatabaseLockMode;
20
- }) => Promise<boolean>;
21
- release: () => Promise<boolean>;
22
- withAcquire: <Result>(handle: () => Promise<Result>, acquireOptions?: {
23
- mode: AcquireDatabaseLockMode;
24
- }) => Promise<Result>;
5
+ //#region src/storage/postgresql/pg/connections/transaction.d.ts
6
+ type PgTransaction = DatabaseTransaction<PgConnection, PgTransactionOptions>;
7
+ type PgIsolationLevel = 'READ UNCOMMITTED' | 'READ COMMITTED' | 'REPEATABLE READ' | 'SERIALIZABLE';
8
+ type PgTransactionOptions = DatabaseTransactionOptions & {
9
+ isolationLevel?: PgIsolationLevel;
25
10
  };
26
-
27
- declare const DefaultPostgreSQLMigratorOptions: MigratorOptions;
28
-
29
- declare const defaultPostgreSqlDatabase = "postgres";
30
- declare const tableExistsSQL: (tableName: string) => SQL;
31
- declare const tableExists: (pool: ConnectionPool, tableName: string) => Promise<boolean>;
32
- declare const functionExistsSQL: (functionName: string) => SQL;
33
- declare const functionExists: (pool: ConnectionPool, tableName: string) => Promise<boolean>;
34
-
35
- declare const pgFormatter: SQLFormatter;
36
-
37
- declare const postgreSQLColumnProcessors: DefaultSQLColumnProcessors;
38
-
39
- type PostgreSQLDatabaseName = 'PostgreSQL';
40
- declare const PostgreSQLDatabaseName = "PostgreSQL";
41
- type PostgreSQLDriverType<DriverName extends string = string> = DatabaseDriverType<PostgreSQLDatabaseName, DriverName>;
42
-
43
- type NodePostgresDriverType = PostgreSQLDriverType<'pg'>;
44
- declare const NodePostgresDriverType: NodePostgresDriverType;
45
- type NodePostgresPoolClient = pg.PoolClient;
46
- type NodePostgresClient = pg.Client;
47
- type NodePostgresClientOrPoolClient = NodePostgresPoolClient | NodePostgresClient;
48
- type NodePostgresPoolOrClient = pg.Pool | NodePostgresPoolClient | NodePostgresClient;
49
- type NodePostgresClientConnection = Connection<NodePostgresClientConnection, NodePostgresDriverType, NodePostgresClient>;
50
- type NodePostgresPoolClientConnection = Connection<NodePostgresPoolClientConnection, NodePostgresDriverType, NodePostgresPoolClient>;
51
- type NodePostgresConnection = NodePostgresPoolClientConnection | NodePostgresClientConnection;
52
- type NodePostgresPoolClientOptions = {
53
- type: 'PoolClient';
54
- connect: () => Promise<NodePostgresPoolClient>;
55
- close: (client: NodePostgresPoolClient) => Promise<void>;
11
+ declare const pgTransaction: <ConnectionType extends AnyConnection = AnyConnection>(connection: () => ConnectionType, serializer: JSONSerializer) => <DbClient extends PgPoolOrClient = PgPoolOrClient>(getClient: Promise<DbClient>, options?: {
12
+ close: (client: DbClient, error?: unknown) => Promise<void>;
13
+ } & PgTransactionOptions) => DatabaseTransaction<ConnectionType>;
14
+ //#endregion
15
+ //#region src/storage/postgresql/pg/connections/connection.d.ts
16
+ type PgDriverType = PostgreSQLDriverType<'pg'>;
17
+ declare const PgDriverType: PgDriverType;
18
+ type PgPoolClient = pg.PoolClient;
19
+ type PgClient = pg.Client;
20
+ type PgClientOrPoolClient = PgPoolClient | PgClient;
21
+ type PgPoolOrClient = pg.Pool | PgPoolClient | PgClient;
22
+ type PgClientConnection = Connection<PgClientConnection, PgDriverType, PgClient, DatabaseTransaction<PgClientConnection, PgTransactionOptions>>;
23
+ type PgPoolClientConnection = Connection<PgPoolClientConnection, PgDriverType, PgPoolClient, DatabaseTransaction<PgPoolClientConnection, PgTransactionOptions>>;
24
+ type PgConnection = PgPoolClientConnection | PgClientConnection;
25
+ type PgPoolClientOptions = {
26
+ type: 'PoolClient';
27
+ connect: () => Promise<PgPoolClient>;
28
+ close: (client: PgPoolClient) => Promise<void>;
29
+ };
30
+ type PgClientOptions = {
31
+ type: 'Client';
32
+ connect: () => Promise<PgClient>;
33
+ close: (client: PgClient) => Promise<void>;
34
+ };
35
+ type PgClientConnectionOptions = PgClientOptions & {
36
+ serializer: JSONSerializer;
56
37
  };
57
- type NodePostgresClientOptions = {
58
- type: 'Client';
59
- connect: () => Promise<NodePostgresClient>;
60
- close: (client: NodePostgresClient) => Promise<void>;
38
+ type PgPoolClientConnectionOptions = PgPoolClientOptions & {
39
+ serializer: JSONSerializer;
61
40
  };
62
- declare const nodePostgresClientConnection: (options: NodePostgresClientOptions) => NodePostgresClientConnection;
63
- declare const nodePostgresPoolClientConnection: (options: NodePostgresPoolClientOptions) => NodePostgresPoolClientConnection;
64
- declare function nodePostgresConnection(options: NodePostgresPoolClientOptions): NodePostgresPoolClientConnection;
65
- declare function nodePostgresConnection(options: NodePostgresClientOptions): NodePostgresClientConnection;
41
+ declare const pgClientConnection: (options: PgClientConnectionOptions) => PgClientConnection;
42
+ declare const pgPoolClientConnection: (options: PgPoolClientConnectionOptions) => PgPoolClientConnection;
43
+ type PgConnectionOptions = PgPoolClientConnectionOptions | PgClientConnectionOptions;
44
+ declare function pgConnection(options: PgPoolClientConnectionOptions): PgPoolClientConnection;
45
+ declare function pgConnection(options: PgClientConnectionOptions): PgClientConnection;
66
46
  type ConnectionCheckResult = {
67
- successful: true;
47
+ successful: true;
68
48
  } | {
69
- successful: false;
70
- code: string | undefined;
71
- errorType: 'ConnectionRefused' | 'Authentication' | 'Unknown';
72
- error: unknown;
49
+ successful: false;
50
+ code: string | undefined;
51
+ errorType: 'ConnectionRefused' | 'Authentication' | 'Unknown';
52
+ error: unknown;
73
53
  };
74
54
  declare const checkConnection: (connectionString: string) => Promise<ConnectionCheckResult>;
75
-
76
- type NodePostgresNativePool = ConnectionPool<NodePostgresPoolClientConnection>;
77
- type NodePostgresAmbientClientPool = ConnectionPool<NodePostgresClientConnection>;
78
- type NodePostgresAmbientConnectionPool = ConnectionPool<NodePostgresPoolClientConnection | NodePostgresClientConnection>;
79
- type NodePostgresPool = NodePostgresNativePool | NodePostgresAmbientClientPool | NodePostgresAmbientConnectionPool;
80
- declare const nodePostgresNativePool: (options: {
81
- connectionString: string;
82
- database?: string | undefined;
83
- }) => NodePostgresNativePool;
84
- declare const nodePostgresAmbientNativePool: (options: {
85
- pool: pg.Pool;
86
- }) => NodePostgresNativePool;
87
- declare const nodePostgresAmbientConnectionPool: (options: {
88
- connection: NodePostgresPoolClientConnection | NodePostgresClientConnection;
89
- }) => NodePostgresAmbientConnectionPool;
90
- declare const nodePostgresClientPool: (options: {
91
- connectionString: string;
92
- database?: string | undefined;
93
- }) => NodePostgresAmbientClientPool;
94
- declare const nodePostgresAmbientClientPool: (options: {
95
- client: pg.Client;
96
- }) => NodePostgresAmbientClientPool;
97
- type NodePostgresPoolPooledOptions = {
98
- connectionString: string;
99
- database?: string;
100
- pooled: true;
101
- pool: pg.Pool;
55
+ //#endregion
56
+ //#region src/storage/postgresql/pg/connections/pool.d.ts
57
+ type PgNativePool = ConnectionPool<PgPoolClientConnection>;
58
+ type PgAmbientClientPool = ConnectionPool<PgClientConnection>;
59
+ type PgAmbientConnectionPool = ConnectionPool<PgPoolClientConnection | PgClientConnection>;
60
+ type PgPool = PgNativePool | PgAmbientClientPool | PgAmbientConnectionPool;
61
+ declare const pgNativePool: (options: {
62
+ connectionString: string;
63
+ database?: string | undefined;
64
+ serializer: JSONSerializer;
65
+ }) => PgNativePool;
66
+ declare const pgAmbientNativePool: (options: {
67
+ pool: pg.Pool;
68
+ serializer: JSONSerializer;
69
+ }) => PgNativePool;
70
+ declare const pgAmbientConnectionPool: (options: {
71
+ connection: PgPoolClientConnection | PgClientConnection;
72
+ }) => PgAmbientConnectionPool;
73
+ declare const pgClientPool: (options: {
74
+ connectionString: string;
75
+ database?: string | undefined;
76
+ serializer: JSONSerializer;
77
+ }) => PgAmbientClientPool;
78
+ declare const pgAmbientClientPool: (options: {
79
+ client: pg.Client;
80
+ serializer: JSONSerializer;
81
+ }) => PgAmbientClientPool;
82
+ type PgPoolPooledOptions = {
83
+ connectionString: string;
84
+ database?: string;
85
+ pooled: true;
86
+ pool: pg.Pool;
102
87
  } | {
103
- connectionString: string;
104
- database?: string;
105
- pool: pg.Pool;
88
+ connectionString: string;
89
+ database?: string;
90
+ pool: pg.Pool;
106
91
  } | {
107
- connectionString: string;
108
- database?: string;
109
- pooled: true;
92
+ connectionString: string;
93
+ database?: string;
94
+ pooled: true;
110
95
  } | {
111
- connectionString: string;
112
- database?: string;
96
+ connectionString: string;
97
+ database?: string;
113
98
  };
114
- type NodePostgresPoolNotPooledOptions = {
115
- connectionString: string;
116
- database?: string;
117
- pooled: false;
118
- client: pg.Client;
99
+ type PgPoolNotPooledOptions = {
100
+ connectionString: string;
101
+ database?: string;
102
+ pooled: false;
103
+ client: pg.Client;
119
104
  } | {
120
- connectionString: string;
121
- database?: string;
122
- client: pg.Client;
105
+ connectionString: string;
106
+ database?: string;
107
+ client: pg.Client;
123
108
  } | {
124
- connectionString: string;
125
- database?: string;
126
- pooled: false;
109
+ connectionString: string;
110
+ database?: string;
111
+ pooled: false;
127
112
  } | {
128
- connectionString: string;
129
- database?: string;
130
- connection: NodePostgresPoolClientConnection | NodePostgresClientConnection;
131
- pooled?: false;
132
- };
133
- type NodePostgresPoolOptions = (NodePostgresPoolPooledOptions | NodePostgresPoolNotPooledOptions) & {
134
- serializer?: JSONSerializer;
113
+ connectionString: string;
114
+ database?: string;
115
+ connection: PgPoolClientConnection | PgClientConnection;
116
+ pooled?: false;
135
117
  };
136
- declare function nodePostgresPool(options: NodePostgresPoolPooledOptions): NodePostgresNativePool;
137
- declare function nodePostgresPool(options: NodePostgresPoolNotPooledOptions): NodePostgresAmbientClientPool;
138
- declare const getPool: (connectionStringOrOptions: string | pg.PoolConfig) => pg.Pool;
139
- declare const endPool: ({ connectionString, database, force, }: {
140
- connectionString: string;
141
- database?: string | undefined;
142
- force?: boolean;
118
+ type PgPoolOptions = (PgPoolPooledOptions | PgPoolNotPooledOptions) & JSONSerializationOptions;
119
+ declare function pgPool(options: PgPoolPooledOptions): PgNativePool;
120
+ declare function pgPool(options: PgPoolNotPooledOptions): PgAmbientClientPool;
121
+ declare const getPgPool: (connectionStringOrOptions: string | pg.PoolConfig) => pg.Pool;
122
+ declare const endPgPool: ({
123
+ connectionString,
124
+ database,
125
+ force
126
+ }: {
127
+ connectionString: string;
128
+ database?: string | undefined;
129
+ force?: boolean;
143
130
  }) => Promise<void>;
144
131
  declare const onEndPool: (lookupKey: string, pool: pg.Pool) => Promise<void>;
145
- declare const endAllPools: () => Promise<void[]>;
146
-
147
- type NodePostgresTransaction = DatabaseTransaction<NodePostgresConnection>;
148
- declare const nodePostgresTransaction: <ConnectionType extends AnyConnection = AnyConnection>(connection: () => ConnectionType) => <DbClient extends NodePostgresPoolOrClient = NodePostgresPoolOrClient>(getClient: Promise<DbClient>, options?: {
149
- close: (client: DbClient, error?: unknown) => Promise<void>;
150
- } & DatabaseTransactionOptions) => DatabaseTransaction<ConnectionType>;
151
-
152
- declare const isNodePostgresNativePool: (poolOrClient: pg.Pool | pg.PoolClient | pg.Client) => poolOrClient is pg.Pool;
153
- declare const isNodePostgresClient: (poolOrClient: pg.Pool | pg.PoolClient | pg.Client) => poolOrClient is pg.Client;
154
- declare const isNodePostgresPoolClient: (poolOrClient: pg.Pool | pg.PoolClient | pg.Client) => poolOrClient is pg.PoolClient;
155
- declare const nodePostgresExecute: <Result = void>(poolOrClient: pg.Pool | pg.PoolClient | pg.Client, handle: (client: pg.PoolClient | pg.Client) => Promise<Result>) => Promise<Result>;
156
- type NodePostgresSQLExecutor = DbSQLExecutor<NodePostgresDriverType, NodePostgresClientOrPoolClient>;
157
- declare const nodePostgresSQLExecutor: () => NodePostgresSQLExecutor;
158
-
159
- declare const setNodePostgresTypeParser: (jsonSerializer: JSONSerializer) => void;
160
-
161
- declare const pgDatabaseDriver: DumboDatabaseDriver<NodePostgresConnection, NodePostgresPoolOptions>;
162
- declare const usePgDatabaseDriver: () => void;
163
-
164
- type PostgresDriverType = NodePostgresDriverType;
165
- type PostgresPool = NodePostgresPool;
166
- type PostgresConnection = NodePostgresConnection;
167
- type PostgresPoolOptions = NodePostgresPoolOptions;
168
- declare const postgresPool: typeof nodePostgresPool;
169
- declare const connectionPool: typeof nodePostgresPool;
170
-
171
- export { AdvisoryLock, type ConnectionCheckResult, DefaultPostgreSQLMigratorOptions, type NodePostgresAmbientClientPool, type NodePostgresAmbientConnectionPool, type NodePostgresClient, type NodePostgresClientConnection, type NodePostgresClientOptions, type NodePostgresClientOrPoolClient, type NodePostgresConnection, NodePostgresDriverType, type NodePostgresNativePool, type NodePostgresPool, type NodePostgresPoolClient, type NodePostgresPoolClientConnection, type NodePostgresPoolClientOptions, type NodePostgresPoolNotPooledOptions, type NodePostgresPoolOptions, type NodePostgresPoolOrClient, type NodePostgresPoolPooledOptions, type NodePostgresSQLExecutor, type NodePostgresTransaction, PostgreSQLConnectionString, PostgreSQLDatabaseName, type PostgreSQLDriverType, type PostgresConnection, type PostgresDriverType, type PostgresPool, type PostgresPoolOptions, acquireAdvisoryLock, advisoryLock, checkConnection, connectionPool, pgDatabaseDriver as databaseDriver, defaultPostgreSQLConnectionString, defaultPostgreSqlDatabase, endAllPools, endPool, functionExists, functionExistsSQL, getDatabaseNameOrDefault, getPool, isNodePostgresClient, isNodePostgresNativePool, isNodePostgresPoolClient, nodePostgresAmbientClientPool, nodePostgresAmbientConnectionPool, nodePostgresAmbientNativePool, nodePostgresClientConnection, nodePostgresClientPool, nodePostgresConnection, nodePostgresExecute, nodePostgresNativePool, nodePostgresPool, nodePostgresPoolClientConnection, nodePostgresSQLExecutor, nodePostgresTransaction, onEndPool, pgDatabaseDriver, pgFormatter, postgreSQLColumnProcessors, postgresPool, releaseAdvisoryLock, setNodePostgresTypeParser, tableExists, tableExistsSQL, tryAcquireAdvisoryLock, usePgDatabaseDriver };
132
+ declare const endAllPgPools: () => Promise<void[]>;
133
+ //#endregion
134
+ //#region src/storage/postgresql/pg/execute/execute.d.ts
135
+ declare const isPgNativePool: (poolOrClient: pg.Pool | pg.PoolClient | pg.Client) => poolOrClient is pg.Pool;
136
+ declare const isPgClient: (poolOrClient: pg.Pool | pg.PoolClient | pg.Client) => poolOrClient is pg.Client;
137
+ declare const isPgPoolClient: (poolOrClient: pg.Pool | pg.PoolClient | pg.Client) => poolOrClient is pg.PoolClient;
138
+ declare const pgExecute: <Result = void>(poolOrClient: pg.Pool | pg.PoolClient | pg.Client, handle: (client: pg.PoolClient | pg.Client) => Promise<Result>) => Promise<Result>;
139
+ type PgSQLExecutor = DbSQLExecutor<PgDriverType, PgClientOrPoolClient>;
140
+ declare const pgSQLExecutor: ({
141
+ serializer
142
+ }: {
143
+ serializer: JSONSerializer;
144
+ }) => PgSQLExecutor;
145
+ //#endregion
146
+ //#region src/storage/postgresql/pg/serialization/index.d.ts
147
+ declare const setPgTypeParser: (client: pg.Client | pg.PoolClient, options?: {
148
+ parseBigInts?: boolean;
149
+ serializer: JSONSerializer;
150
+ }) => void;
151
+ //#endregion
152
+ //#region src/storage/postgresql/pg/index.d.ts
153
+ declare const pgDumboDriver: DumboDatabaseDriver<PgConnection, PgPoolOptions, PgPool>;
154
+ declare const usePgDumboDriver: () => void;
155
+ type PgDumboOptions = PgPoolOptions;
156
+ //#endregion
157
+ export { AdvisoryLock, ConnectionCheckResult, DefaultPostgreSQLMigratorOptions, PgAmbientClientPool, PgAmbientConnectionPool, PgClient, PgClientConnection, PgClientConnectionOptions, PgClientOptions, PgClientOrPoolClient, PgConnection, PgConnectionOptions, PgDriverType, PgDumboOptions, PgIsolationLevel, PgNativePool, PgPool, PgPoolClient, PgPoolClientConnection, PgPoolClientConnectionOptions, PgPoolClientOptions, PgPoolNotPooledOptions, PgPoolOptions, PgPoolOrClient, PgPoolPooledOptions, PgSQLExecutor, PgTransaction, PgTransactionOptions, PostgreSQLArrayProcessor, PostgreSQLConnectionString, PostgreSQLDatabaseName, PostgreSQLDriverType, PostgreSQLExpandSQLInProcessor, acquireAdvisoryLock, advisoryLock, checkConnection, defaultPostgreSQLConnectionString, defaultPostgreSqlDatabase, endAllPgPools, endPgPool, functionExists, functionExistsSQL, getPgPool, isPgClient, isPgNativePool, isPgPoolClient, mapPostgresError, onEndPool, parseDatabaseName, pgAmbientClientPool, pgAmbientConnectionPool, pgAmbientNativePool, pgClientConnection, pgClientPool, pgConnection, pgDumboDriver, pgExecute, pgFormatter, pgNativePool, pgPool, pgPoolClientConnection, pgSQLExecutor, pgTransaction, postgreSQLColumnProcessors, postgreSQLMetadata, releaseAdvisoryLock, setPgTypeParser, tableExists, tableExistsSQL, tryAcquireAdvisoryLock, usePgDumboDriver };
158
+ //# sourceMappingURL=pg.d.ts.map