@event-driven-io/dumbo 0.13.0-beta.46 → 0.13.0-beta.47
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.
- package/dist/cloudflare.cjs +432 -69
- package/dist/cloudflare.cjs.map +1 -1
- package/dist/cloudflare.d.cts +2 -2
- package/dist/cloudflare.d.ts +2 -2
- package/dist/cloudflare.js +432 -69
- package/dist/cloudflare.js.map +1 -1
- package/dist/{index-B5krjjrh.d.ts → index-4hcCG4SA.d.ts} +66 -30
- package/dist/{index-BaLXbc2l.d.ts → index-B7366zWR.d.ts} +1 -1
- package/dist/{index-_dj3upBo.d.cts → index-BJ-dm7dG.d.cts} +66 -30
- package/dist/{index-kYttgYkC.d.cts → index-BkJ1pipM.d.cts} +1 -1
- package/dist/{index-C9B46a1u.d.ts → index-CQokD3za.d.cts} +2 -2
- package/dist/{index-BoLWBnxd.d.cts → index-DIJv-L6M.d.ts} +2 -2
- package/dist/index.cjs +523 -269
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +522 -270
- package/dist/index.js.map +1 -1
- package/dist/pg.cjs +168 -28
- package/dist/pg.cjs.map +1 -1
- package/dist/pg.d.cts +2 -2
- package/dist/pg.d.ts +2 -2
- package/dist/pg.js +168 -28
- package/dist/pg.js.map +1 -1
- package/dist/postgresql.cjs +4 -0
- package/dist/postgresql.cjs.map +1 -1
- package/dist/postgresql.d.cts +2 -2
- package/dist/postgresql.d.ts +2 -2
- package/dist/postgresql.js +4 -0
- package/dist/postgresql.js.map +1 -1
- package/dist/sqlite.cjs +429 -68
- package/dist/sqlite.cjs.map +1 -1
- package/dist/sqlite.d.cts +2 -2
- package/dist/sqlite.d.ts +2 -2
- package/dist/sqlite.js +429 -68
- package/dist/sqlite.js.map +1 -1
- package/dist/sqlite3.cjs +639 -343
- package/dist/sqlite3.cjs.map +1 -1
- package/dist/sqlite3.d.cts +10 -10
- package/dist/sqlite3.d.ts +10 -10
- package/dist/sqlite3.js +639 -343
- package/dist/sqlite3.js.map +1 -1
- package/package.json +1 -1
|
@@ -1092,6 +1092,31 @@ declare const schemaComponentURN: {
|
|
|
1092
1092
|
readonly extractName: (urn: string) => string;
|
|
1093
1093
|
};
|
|
1094
1094
|
//#endregion
|
|
1095
|
+
//#region src/core/taskProcessing/abort.d.ts
|
|
1096
|
+
type Abort = {
|
|
1097
|
+
signal: AbortSignal;
|
|
1098
|
+
};
|
|
1099
|
+
type AbortOptions = {
|
|
1100
|
+
abort?: Abort | undefined;
|
|
1101
|
+
};
|
|
1102
|
+
type AbortContext = {
|
|
1103
|
+
abort: Abort;
|
|
1104
|
+
};
|
|
1105
|
+
type AbortScope = Abort & {
|
|
1106
|
+
abort: (reason?: unknown) => void;
|
|
1107
|
+
dispose: () => void;
|
|
1108
|
+
};
|
|
1109
|
+
declare const Abort: {
|
|
1110
|
+
readonly execute: <Result>(operation: () => Promise<Result>, options?: AbortOptions) => Promise<Result>;
|
|
1111
|
+
readonly from: (options?: AbortOptions) => Abort;
|
|
1112
|
+
readonly never: Abort;
|
|
1113
|
+
readonly onAbort: (abort: Abort | undefined, handle: (reason: Error) => void) => (() => void);
|
|
1114
|
+
readonly reason: (abort: Abort | AbortSignal) => Error;
|
|
1115
|
+
readonly rejectIfAborted: (options?: AbortOptions) => Promise<never> | undefined;
|
|
1116
|
+
readonly scope: (parent?: Abort, onAbort?: (reason: Error) => void) => AbortScope;
|
|
1117
|
+
readonly throwIfAborted: (options?: AbortOptions) => void;
|
|
1118
|
+
};
|
|
1119
|
+
//#endregion
|
|
1095
1120
|
//#region src/core/errors/index.d.ts
|
|
1096
1121
|
declare class DumboError extends Error {
|
|
1097
1122
|
static readonly ErrorCode: number;
|
|
@@ -1243,11 +1268,11 @@ declare const mapSQLQueryResult: <T>(result: T, mapping: SQLQueryResultColumnMap
|
|
|
1243
1268
|
type SQLQueryResultColumnMapping = {
|
|
1244
1269
|
[column: string]: (value: unknown) => unknown;
|
|
1245
1270
|
};
|
|
1246
|
-
type SQLQueryOptions = {
|
|
1271
|
+
type SQLQueryOptions = AbortOptions & {
|
|
1247
1272
|
timeoutMs?: number | undefined;
|
|
1248
1273
|
mapping?: SQLQueryResultColumnMapping;
|
|
1249
1274
|
};
|
|
1250
|
-
type SQLCommandOptions = {
|
|
1275
|
+
type SQLCommandOptions = AbortOptions & {
|
|
1251
1276
|
timeoutMs?: number | undefined;
|
|
1252
1277
|
mapping?: SQLQueryResultColumnMapping;
|
|
1253
1278
|
};
|
|
@@ -1281,27 +1306,27 @@ interface WithSQLExecutor {
|
|
|
1281
1306
|
execute: SQLExecutor;
|
|
1282
1307
|
}
|
|
1283
1308
|
declare const sqlExecutor: <DbClient = unknown, DbExecutor extends DbSQLExecutor = DbSQLExecutor>(sqlExecutor: DbExecutor, options: {
|
|
1284
|
-
connect: () => Promise<DbClient>;
|
|
1309
|
+
connect: (context: AbortContext) => Promise<DbClient>;
|
|
1285
1310
|
close?: (client: DbClient, error?: unknown) => Promise<void>;
|
|
1286
1311
|
}) => SQLExecutor;
|
|
1287
1312
|
declare const sqlExecutorInNewConnection: <ConnectionType extends Connection>(options: {
|
|
1288
1313
|
driverType: ConnectionType["driverType"];
|
|
1289
|
-
connection: () => Promise<ConnectionType>;
|
|
1314
|
+
connection: (context: AbortContext) => Promise<ConnectionType>;
|
|
1290
1315
|
}) => SQLExecutor;
|
|
1291
1316
|
declare const sqlExecutorInAmbientConnection: <ConnectionType extends Connection>(options: {
|
|
1292
1317
|
driverType: ConnectionType["driverType"];
|
|
1293
|
-
connection: () => Promise<ConnectionType>;
|
|
1318
|
+
connection: (context: AbortContext) => Promise<ConnectionType>;
|
|
1294
1319
|
}) => SQLExecutor;
|
|
1295
1320
|
declare const executeInNewDbClient: <DbClient = unknown, Result = unknown>(handle: (client: DbClient) => Promise<Result>, options: {
|
|
1296
|
-
connect: () => Promise<DbClient>;
|
|
1321
|
+
connect: (context: AbortContext) => Promise<DbClient>;
|
|
1297
1322
|
close?: (client: DbClient, error?: unknown) => Promise<void>;
|
|
1298
|
-
}) => Promise<Result>;
|
|
1323
|
+
} & AbortOptions) => Promise<Result>;
|
|
1299
1324
|
declare const executeInNewConnection: <ConnectionType extends Connection, Result>(handle: (connection: ConnectionType) => Promise<Result>, options: {
|
|
1300
|
-
connection: () => Promise<ConnectionType>;
|
|
1301
|
-
}) => Promise<Result>;
|
|
1325
|
+
connection: (context: AbortContext) => Promise<ConnectionType>;
|
|
1326
|
+
} & AbortOptions) => Promise<Result>;
|
|
1302
1327
|
declare const executeInAmbientConnection: <ConnectionType extends Connection, Result>(handle: (connection: ConnectionType) => Promise<Result>, options: {
|
|
1303
|
-
connection: () => Promise<ConnectionType>;
|
|
1304
|
-
}) => Promise<Result>;
|
|
1328
|
+
connection: (context: AbortContext) => Promise<ConnectionType>;
|
|
1329
|
+
} & AbortOptions) => Promise<Result>;
|
|
1305
1330
|
//#endregion
|
|
1306
1331
|
//#region src/core/schema/databaseMetadata/databaseMetadata.d.ts
|
|
1307
1332
|
interface DatabaseCapabilities<SupportsMultipleDatabases extends boolean, SupportsSchemas extends boolean, SupportsFunctions extends boolean> {
|
|
@@ -1472,10 +1497,11 @@ interface DatabaseTransaction<ConnectionType extends AnyConnection = AnyConnecti
|
|
|
1472
1497
|
begin: () => Promise<void>;
|
|
1473
1498
|
commit: () => Promise<void>;
|
|
1474
1499
|
rollback: (error?: unknown) => Promise<void>;
|
|
1500
|
+
withTransaction: <Result = never>(handle: (transaction: DatabaseTransaction<ConnectionType, TransactionOptionsType>, context: AbortContext) => Promise<TransactionResult<Result> | Result>, options?: TransactionOptionsType) => Promise<Result>;
|
|
1475
1501
|
_transactionOptions: TransactionOptionsType;
|
|
1476
1502
|
}
|
|
1477
1503
|
type AnyDatabaseTransaction = DatabaseTransaction<any, any>;
|
|
1478
|
-
type DatabaseTransactionOptions = {
|
|
1504
|
+
type DatabaseTransactionOptions = AbortOptions & {
|
|
1479
1505
|
allowNestedTransactions?: boolean;
|
|
1480
1506
|
readonly?: boolean;
|
|
1481
1507
|
};
|
|
@@ -1497,24 +1523,33 @@ declare const databaseTransaction: (backend: Pick<DatabaseTransaction, "begin" |
|
|
|
1497
1523
|
type InferTransactionOptionsFromTransaction<C extends AnyDatabaseTransaction> = C extends DatabaseTransaction<any, infer TO> ? TO : never;
|
|
1498
1524
|
interface WithDatabaseTransactionFactory<ConnectionType extends AnyConnection = AnyConnection> {
|
|
1499
1525
|
transaction: (options?: InferTransactionOptionsFromConnection<ConnectionType>) => InferTransactionFromConnection<ConnectionType>;
|
|
1500
|
-
withTransaction: <Result = never>(handle: (transaction: InferTransactionFromConnection<ConnectionType
|
|
1526
|
+
withTransaction: <Result = never>(handle: (transaction: InferTransactionFromConnection<ConnectionType>, context: AbortContext) => Promise<TransactionResult<Result> | Result>, options?: InferTransactionOptionsFromConnection<ConnectionType>) => Promise<Result>;
|
|
1501
1527
|
}
|
|
1502
1528
|
type TransactionResult<Result> = {
|
|
1503
1529
|
success: boolean;
|
|
1504
1530
|
result: Result;
|
|
1505
1531
|
};
|
|
1506
|
-
|
|
1507
|
-
|
|
1532
|
+
type TransactionLifecycle = {
|
|
1533
|
+
begin: () => Promise<void>;
|
|
1534
|
+
commit: () => Promise<void>;
|
|
1535
|
+
rollback: (error?: unknown) => Promise<void>;
|
|
1536
|
+
};
|
|
1537
|
+
type NestedTransactionLifecycle<TransactionOptionsType extends DatabaseTransactionOptions> = TransactionLifecycle & {
|
|
1538
|
+
_transactionOptions: TransactionOptionsType;
|
|
1539
|
+
};
|
|
1540
|
+
declare const executeInTransaction: <DatabaseTransactionType extends TransactionLifecycle = TransactionLifecycle, Result = void>(transaction: DatabaseTransactionType, handle: (transaction: DatabaseTransactionType, context: AbortContext) => Promise<TransactionResult<Result> | Result>, context?: AbortContext) => Promise<Result>;
|
|
1541
|
+
declare const executeInNestedTransaction: <TransactionOptionsType extends DatabaseTransactionOptions = DatabaseTransactionOptions, DatabaseTransactionType extends NestedTransactionLifecycle<TransactionOptionsType> = NestedTransactionLifecycle<TransactionOptionsType>, Result = void>(transaction: DatabaseTransactionType, handle: (transaction: DatabaseTransactionType, context: AbortContext) => Promise<TransactionResult<Result> | Result>, options?: TransactionOptionsType, context?: AbortContext) => Promise<Result>;
|
|
1542
|
+
declare const transactionFactoryWithDbClient: <ConnectionType extends AnyConnection = AnyConnection>(connect: (context: AbortContext) => Promise<InferDbClientFromConnection<ConnectionType>>, initTransaction: (client: Promise<InferDbClientFromConnection<ConnectionType>>, options?: InferTransactionOptionsFromConnection<ConnectionType> & {
|
|
1508
1543
|
close: (client: InferDbClientFromConnection<ConnectionType>, error?: unknown) => Promise<void>;
|
|
1509
1544
|
}) => InferTransactionFromConnection<ConnectionType>) => WithDatabaseTransactionFactory<ConnectionType>;
|
|
1510
|
-
declare const transactionFactoryWithNewConnection: <ConnectionType extends AnyConnection = AnyConnection>(connect: () => ConnectionType) => WithDatabaseTransactionFactory<ConnectionType>;
|
|
1511
|
-
declare const transactionFactoryWithAmbientConnection: <ConnectionType extends AnyConnection = AnyConnection>(connect: () => ConnectionType) => WithDatabaseTransactionFactory<ConnectionType>;
|
|
1512
|
-
declare const transactionFactoryWithAsyncAmbientConnection: <ConnectionType extends AnyConnection = AnyConnection>(driverType: ConnectionType["driverType"], connect: () => Promise<ConnectionType>, close?: (connection: ConnectionType) => void | Promise<void>) => WithDatabaseTransactionFactory<ConnectionType>;
|
|
1545
|
+
declare const transactionFactoryWithNewConnection: <ConnectionType extends AnyConnection = AnyConnection>(connect: (context: AbortContext) => ConnectionType) => WithDatabaseTransactionFactory<ConnectionType>;
|
|
1546
|
+
declare const transactionFactoryWithAmbientConnection: <ConnectionType extends AnyConnection = AnyConnection>(connect: (context: AbortContext) => ConnectionType) => WithDatabaseTransactionFactory<ConnectionType>;
|
|
1547
|
+
declare const transactionFactoryWithAsyncAmbientConnection: <ConnectionType extends AnyConnection = AnyConnection>(driverType: ConnectionType["driverType"], connect: (context: AbortContext) => Promise<ConnectionType>, close?: (connection: ConnectionType) => void | Promise<void>) => WithDatabaseTransactionFactory<ConnectionType>;
|
|
1513
1548
|
//#endregion
|
|
1514
1549
|
//#region src/core/connections/connection.d.ts
|
|
1515
1550
|
interface Connection<Self extends AnyConnection = AnyConnection, DriverType extends DatabaseDriverType = DatabaseDriverType, DbClient = unknown, TransactionType extends DatabaseTransaction<Self, any> = DatabaseTransaction<Self, any>> extends WithSQLExecutor, WithDatabaseTransactionFactory<Self> {
|
|
1516
1551
|
driverType: DriverType;
|
|
1517
|
-
open: () => Promise<DbClient>;
|
|
1552
|
+
open: (context?: AbortContext) => Promise<DbClient>;
|
|
1518
1553
|
close: () => Promise<void>;
|
|
1519
1554
|
_transactionType: TransactionType;
|
|
1520
1555
|
}
|
|
@@ -1528,19 +1563,19 @@ type ConnectionOptions<ConnectionType extends AnyConnection = AnyConnection> = {
|
|
|
1528
1563
|
transactionOptions?: InferTransactionOptionsFromConnection<ConnectionType>;
|
|
1529
1564
|
};
|
|
1530
1565
|
type ConnectionFactory<ConnectionType extends AnyConnection = AnyConnection> = (options: ConnectionOptions<ConnectionType>) => ConnectionType;
|
|
1531
|
-
type WithConnectionOptions = {
|
|
1566
|
+
type WithConnectionOptions = AbortOptions & {
|
|
1532
1567
|
readonly?: boolean;
|
|
1533
1568
|
};
|
|
1534
1569
|
interface WithConnectionFactory<ConnectionType extends AnyConnection = AnyConnection> {
|
|
1535
1570
|
connection: (options?: WithConnectionOptions) => Promise<ConnectionType>;
|
|
1536
|
-
withConnection: <Result = unknown>(handle: (connection: ConnectionType) => Promise<Result>, options?: WithConnectionOptions) => Promise<Result>;
|
|
1571
|
+
withConnection: <Result = unknown>(handle: (connection: ConnectionType, context: AbortContext) => Promise<Result>, options?: WithConnectionOptions) => Promise<Result>;
|
|
1537
1572
|
}
|
|
1538
1573
|
type InitTransaction<ConnectionType extends AnyConnection = AnyConnection> = (connection: () => ConnectionType) => (client: Promise<InferDbClientFromConnection<ConnectionType>>, options?: InferTransactionOptionsFromConnection<ConnectionType> & {
|
|
1539
1574
|
close: (client: InferDbClientFromConnection<ConnectionType>, error?: unknown) => Promise<void>;
|
|
1540
1575
|
}) => InferTransactionFromConnection<ConnectionType>;
|
|
1541
1576
|
type CreateConnectionOptions<ConnectionType extends AnyConnection = AnyConnection, Executor extends DbSQLExecutor = DbSQLExecutor> = {
|
|
1542
1577
|
driverType: InferDriverTypeFromConnection<ConnectionType>;
|
|
1543
|
-
connect: () => Promise<InferDbClientFromConnection<ConnectionType>>;
|
|
1578
|
+
connect: (context: AbortContext) => Promise<InferDbClientFromConnection<ConnectionType>>;
|
|
1544
1579
|
close: (client: InferDbClientFromConnection<ConnectionType>) => Promise<void>;
|
|
1545
1580
|
initTransaction: InitTransaction<ConnectionType>;
|
|
1546
1581
|
serializer: JSONSerializer;
|
|
@@ -1556,7 +1591,7 @@ type CreateAmbientConnectionOptions<ConnectionType extends AnyConnection = AnyCo
|
|
|
1556
1591
|
declare const createAmbientConnection: <ConnectionType extends AnyConnection = AnyConnection, Executor extends DbSQLExecutor = DbSQLExecutor>(options: CreateAmbientConnectionOptions<ConnectionType, Executor>) => ConnectionType;
|
|
1557
1592
|
type CreateSingletonConnectionOptions<ConnectionType extends AnyConnection = AnyConnection, Executor extends DbSQLExecutor = DbSQLExecutor> = {
|
|
1558
1593
|
driverType: InferDriverTypeFromConnection<ConnectionType>;
|
|
1559
|
-
connect: () => Promise<InferDbClientFromConnection<ConnectionType>>;
|
|
1594
|
+
connect: (context: AbortContext) => Promise<InferDbClientFromConnection<ConnectionType>>;
|
|
1560
1595
|
close: (client: InferDbClientFromConnection<ConnectionType>) => Promise<void>;
|
|
1561
1596
|
initTransaction: InitTransaction<ConnectionType>;
|
|
1562
1597
|
serializer: JSONSerializer;
|
|
@@ -1565,7 +1600,7 @@ type CreateSingletonConnectionOptions<ConnectionType extends AnyConnection = Any
|
|
|
1565
1600
|
declare const createSingletonConnection: <ConnectionType extends AnyConnection = AnyConnection, Executor extends DbSQLExecutor = DbSQLExecutor>(options: CreateSingletonConnectionOptions<ConnectionType, Executor>) => ConnectionType;
|
|
1566
1601
|
type CreateTransientConnectionOptions<ConnectionType extends AnyConnection = AnyConnection, Executor extends DbSQLExecutor = DbSQLExecutor> = {
|
|
1567
1602
|
driverType: InferDriverTypeFromConnection<ConnectionType>;
|
|
1568
|
-
open: () => Promise<InferDbClientFromConnection<ConnectionType>>;
|
|
1603
|
+
open: (context?: AbortContext) => Promise<InferDbClientFromConnection<ConnectionType>>;
|
|
1569
1604
|
close: () => Promise<void>;
|
|
1570
1605
|
initTransaction: InitTransaction<ConnectionType>;
|
|
1571
1606
|
serializer: JSONSerializer;
|
|
@@ -1577,6 +1612,7 @@ declare const createConnection: <ConnectionType extends AnyConnection = AnyConne
|
|
|
1577
1612
|
//#region src/core/connections/pool.d.ts
|
|
1578
1613
|
type PoolCloseOptions = {
|
|
1579
1614
|
force?: boolean;
|
|
1615
|
+
closeDeadline?: number;
|
|
1580
1616
|
};
|
|
1581
1617
|
interface ConnectionPool<ConnectionType extends AnyConnection = AnyConnection> extends WithSQLExecutor, WithConnectionFactory<ConnectionType>, WithDatabaseTransactionFactory<ConnectionType> {
|
|
1582
1618
|
driverType: ConnectionType['driverType'];
|
|
@@ -1590,14 +1626,14 @@ type AmbientConnectionPoolOptions<ConnectionType extends AnyConnection> = {
|
|
|
1590
1626
|
declare const createAmbientConnectionPool: <ConnectionType extends AnyConnection>(options: AmbientConnectionPoolOptions<ConnectionType>) => ConnectionPool<ConnectionType>;
|
|
1591
1627
|
type SingletonConnectionPoolOptions<ConnectionType extends AnyConnection> = {
|
|
1592
1628
|
driverType: ConnectionType['driverType'];
|
|
1593
|
-
getConnection: () => ConnectionType | Promise<ConnectionType>;
|
|
1629
|
+
getConnection: (context: AbortContext) => ConnectionType | Promise<ConnectionType>;
|
|
1594
1630
|
closeConnection?: (connection: ConnectionType) => void | Promise<void>;
|
|
1595
1631
|
connectionOptions?: never;
|
|
1596
1632
|
};
|
|
1597
1633
|
declare const createSingletonConnectionPool: <ConnectionType extends AnyConnection>(options: SingletonConnectionPoolOptions<ConnectionType>) => ConnectionPool<ConnectionType>;
|
|
1598
1634
|
type CreateBoundedConnectionPoolOptions<ConnectionType extends AnyConnection> = {
|
|
1599
1635
|
driverType: ConnectionType['driverType'];
|
|
1600
|
-
getConnection: () => ConnectionType | Promise<ConnectionType>;
|
|
1636
|
+
getConnection: (context: AbortContext) => ConnectionType | Promise<ConnectionType>;
|
|
1601
1637
|
maxConnections: number;
|
|
1602
1638
|
};
|
|
1603
1639
|
declare const createBoundedConnectionPool: <ConnectionType extends AnyConnection>(options: CreateBoundedConnectionPoolOptions<ConnectionType>) => ConnectionPool<ConnectionType>;
|
|
@@ -1611,16 +1647,16 @@ type SingletonClientConnectionPoolOptions<ConnectionType extends AnyConnection>
|
|
|
1611
1647
|
declare const createSingletonClientConnectionPool: <ConnectionType extends AnyConnection>(options: SingletonClientConnectionPoolOptions<ConnectionType>) => ConnectionPool<ConnectionType>;
|
|
1612
1648
|
type CreateAlwaysNewConnectionPoolOptions<ConnectionType extends AnyConnection, ConnectionOptions extends Record<string, unknown> | undefined = undefined> = ConnectionOptions extends undefined ? {
|
|
1613
1649
|
driverType: ConnectionType['driverType'];
|
|
1614
|
-
getConnection: () => ConnectionType;
|
|
1650
|
+
getConnection: (context: AbortContext) => ConnectionType;
|
|
1615
1651
|
connectionOptions?: never;
|
|
1616
1652
|
} : {
|
|
1617
1653
|
driverType: ConnectionType['driverType'];
|
|
1618
|
-
getConnection: (options: ConnectionOptions) => ConnectionType;
|
|
1654
|
+
getConnection: (options: ConnectionOptions, context: AbortContext) => ConnectionType;
|
|
1619
1655
|
connectionOptions: ConnectionOptions;
|
|
1620
1656
|
};
|
|
1621
1657
|
declare const createAlwaysNewConnectionPool: <ConnectionType extends AnyConnection, ConnectionOptions extends Record<string, unknown> | undefined = undefined>(options: CreateAlwaysNewConnectionPoolOptions<ConnectionType, ConnectionOptions>) => ConnectionPool<ConnectionType>;
|
|
1622
1658
|
type CreateConnectionPoolOptions<ConnectionType extends AnyConnection> = Pick<ConnectionPool<ConnectionType>, 'driverType'> & Partial<ConnectionPool<ConnectionType>> & {
|
|
1623
|
-
getConnection: () => ConnectionType;
|
|
1659
|
+
getConnection: (context: AbortContext) => ConnectionType;
|
|
1624
1660
|
};
|
|
1625
1661
|
declare const createConnectionPool: <ConnectionType extends AnyConnection>(pool: CreateConnectionPoolOptions<ConnectionType>) => ConnectionPool<ConnectionType>;
|
|
1626
1662
|
//#endregion
|
|
@@ -1696,4 +1732,4 @@ declare function dumbo<DatabaseDriver extends AnyDumboDatabaseDriver = AnyDumboD
|
|
|
1696
1732
|
driver?: never;
|
|
1697
1733
|
}): ExtractDumboTypeFromDriver<DatabaseDriver>;
|
|
1698
1734
|
//#endregion
|
|
1699
|
-
export { DatabaseTransaction as $,
|
|
1735
|
+
export { DatabaseTransaction as $, JSONValueTypeName as $a, SQL as $i, AbortScope as $n, tableSchemaComponent as $r, BatchCommandNoChangesError as $t, createConnectionPool as A, AnySQLProcessor as Aa, TableColumnName as Ai, QueryResultRow as An, JSONReplacer as Ao, FormatTableLevel as Ar, migrationTableSchemaComponent as At, CreateTransientConnectionOptions as B, mapANSISQLParamPlaceholder as Ba, ColumnURN as Bi, InsufficientResourcesError as Bn, composeJSONRevivers as Bo, AnyDatabaseSchemaSchemaComponent as Br, DatabaseLock as Bt, CreateConnectionPoolOptions as C, ExpandSQLInProcessor as Ca, LookupColumnType as Ci, firstOrNull as Cn, ParametrizedSQL as Co, ValidateSchemaTables as Cr, DumboDatabaseDriver as Ct, createAlwaysNewConnectionPool as D, mapDefaultSQLColumnProcessors as Da, RelationshipDefinition as Di, mapToCamelCase as Dn, JSONCodec as Do, FormatRelationshipBlock as Dr, canHandleDriverWithConnectionString as Dt, SingletonConnectionPoolOptions as E, DefaultSQLColumnProcessors as Ea, ParseReferencePath as Ei, mapRows as En, Serializer as Eo, FormatDatabaseValidationErrors as Er, ExtractDumboTypeFromDriver as Et, ConnectionFactory as F, ANSISQLParamPlaceholder as Fa, IndexURNType as Fi, DataError as Fn, JSONSerializationOptions as Fo, DatabaseSchemaComponent as Fr, getDefaultMigratorOptionsFromRegistry as Ft, InitTransaction as G, AutoIncrementSQLColumnToken as Ga, FormatSQLOptions as Gi, QueryCanceledError as Gn, databaseSchemaSchemaComponent as Gr, DatabaseCapabilities as Gt, InferDriverTypeFromConnection as H, mapSQLParamValue as Ha, columnSchemaComponent as Hi, InvalidOperationError as Hn, DbClientSetup as Ho, DatabaseSchemaTables as Hr, NoDatabaseLock as Ht, ConnectionOptions as I, DefaultMapSQLParamValueOptions as Ia, indexSchemaComponent as Ii, DeadlockError as In, JSONSerializeOptions as Io, DatabaseSchemas as Ir, registerDefaultMigratorOptions as It, createAmbientConnection as J, ColumnTypeToken as Ja, describeSQL as Ji, TransientDatabaseError as Jn, InferTableSchemaComponentTypes as Jr, dumboDatabaseMetadataRegistry as Jt, WithConnectionFactory as K, BigIntegerToken as Ka, SQLFormatter as Ki, SerializationError as Kn, AnyTableSchemaComponent as Kr, DatabaseMetadata as Kt, CreateAmbientConnectionOptions as L, MapSQLParamValue as La, AnyColumnSchemaComponent as Li, DumboError as Ln, JSONSerializer as Lo, DatabaseURN as Lr, runSQLMigrations as Lt, createSingletonConnectionPool as M, SQLProcessorContext as Ma, relationship as Mi, CheckViolationError as Mn, JSONReviver as Mo, IndentErrors as Mr, MigratorOptions as Mt, AnyConnection as N, SQLProcessorOptions as Na, IndexSchemaComponent as Ni, ConcurrencyError as Nn, JSONReviverContext as No, Join as Nr, RunSQLMigrationsResult as Nt, createAmbientConnectionPool as O, SQLProcessorsReadonlyRegistry as Oa, RelationshipType as Oi, toCamelCase as On, JSONCodecOptions as Oo, FormatSchemaLevel as Or, dumboDatabaseDriverRegistry as Ot, Connection as P, ANSISQLIdentifierQuote as Pa, IndexURN as Pi, ConnectionError as Pn, JSONRevivers as Po, AnyDatabaseSchemaComponent as Pr, combineMigrations as Pt, AnyDatabaseTransaction as Q, JSONValueType as Qa, RawSQL as Qi, AbortOptions as Qn, TableURNType as Qr, resolveDatabaseMetadata as Qt, CreateConnectionOptions as R, MapSQLParamValueOptions as Ra, ColumnSchemaComponent as Ri, ExclusionViolationError as Rn, JSONSerializerOptions as Ro, DatabaseURNType as Rr, AcquireDatabaseLockMode as Rt, CreateBoundedConnectionPoolOptions as S, ExpandArrayProcessor as Sa, ExtractTableNames as Si, first as Sn, SQLToken as So, ValidateRelationshipLength as Sr, AnyDumboDatabaseDriver as St, SingletonClientConnectionPoolOptions as T, MapLiteralProcessor as Ta, NormalizeReference as Ti, singleOrNull as Tn, SerializationCodec as To, ValidateTableRelationships as Tr, ExtractDumboDatabaseDriverOptions as Tt, InferTransactionFromConnection as U, ansiSqlReservedMap as Ua, JSONParam as Ui, LockNotAvailableError as Un, DatabaseSchemaURN as Ur, ReleaseDatabaseLockOptions as Ut, InferDbClientFromConnection as V, mapSQLIdentifier as Va, ColumnURNType as Vi, IntegrityConstraintViolationError as Vn, jsonSerializer as Vo, DatabaseSchemaSchemaComponent as Vr, DatabaseLockOptions as Vt, InferTransactionOptionsFromConnection as W, AnyColumnTypeToken as Wa, FormatContext as Wi, NotNullViolationError as Wn, DatabaseSchemaURNType as Wr, defaultDatabaseLockOptions as Wt, createSingletonConnection as X, IntegerToken as Xa, getFormatter as Xi, Abort as Xn, TableSchemaComponent as Xr, getDefaultDatabase as Xt, createConnection as Y, DefaultSQLColumnToken as Ya, formatSQL as Yi, UniqueConstraintError as Yn, TableColumns as Yr, getDatabaseMetadata as Yt, createTransientConnection as Z, JSONBToken as Za, registerFormatter as Zi, AbortContext as Zn, TableURN as Zr, getDefaultDatabaseAsync as Zt, IsOK as _, MigrationRecord as _a, ColumnPathToReference as _i, sqlExecutorInNewConnection as _n, SQLDefaultTokensTypes as _o, ValidateDatabaseSchemasWithMessages as _r, InferDriverDatabaseType as _t, parseConnectionString as a, AnySchemaComponent as aa, TableColumnType as ai, SQLQueryOptions as an, SQLColumnToken as ao, ColumnReferenceTypeMismatchError as ar, databaseTransaction as at, ConnectionPoolFactory as b, sqlMigration as ba, ExtractColumnTypeName as bi, count as bn, SQLLiteral as bo, ValidateRelationship as br, getDatabaseType as bt, LogLevel as c, ExtractAdditionalData as ca, AllColumnReferences as ci, executeInAmbientConnection as cn, SerialToken as co, RelationshipColumnsMismatchError as cr, transactionFactoryWithAmbientConnection as ct, tracer as d, SchemaComponentType as da, AllColumnTypesInSchema as di, mapColumnToBigint as dn, VarcharToken as do, SchemaTablesWithSingle as dr, transactionFactoryWithNewConnection as dt, SQLTag as ea, InferColumnType as ei, BatchSQLCommandOptions as en, JavaScriptValueType as eo, schemaComponentURN as er, DatabaseTransactionOptions as et, prettyJson as f, filterSchemaComponentsOfType as fa, AnyRelationshipDefinition as fi, mapColumnToDate as fn, AnySQLToken as fo, ValidateColumnReference as fr, transactionNestingCounter as ft, IsError as g, schemaComponent as ga, ColumnPath as gi, sqlExecutorInAmbientConnection as gn, SQLDefaultTokens as go, ValidateDatabaseSchemas as gr, DatabaseType as gt, Expect as h, mapSchemaComponentsOfType as ha, ColumnName$1 as hi, sqlExecutor as hn, SQLArrayMode as ho, ValidateDatabaseSchema as hr, DatabaseDriverTypeParts as ht, DatabaseConnectionString as i, dumboSchema as ia, TableColumnNames as ii, SQLExecutor as in, NullableSQLColumnTokenProps as io, ColumnReferenceExistanceError as ir, WithDatabaseTransactionFactory as it, createSingletonClientConnectionPool as j, SQLProcessor as ja, TableRelationships as ji, AdminShutdownError as jn, JSONReplacers as jo, FormatValidationErrors as jr, MIGRATIONS_LOCK_ID as jt, createBoundedConnectionPool as k, SQLProcessorsRegistry as ka, SchemaColumnName as ki, QueryResult as kn, JSONDeserializeOptions as ko, FormatSingleError as kr, SchemaComponentMigrator as kt, LogStyle as l, SchemaComponent as la, AllColumnReferencesInSchema as li, executeInNewConnection as ln, TimestampToken as lo, RelationshipReferencesLengthMismatchError as lr, transactionFactoryWithAsyncAmbientConnection as lt, Equals as m, isSchemaComponentOfType as ma, AnyTableRelationshipDefinitionWithColumns as mi, mapSQLQueryResult as mn, SQLArray as mo, ValidateColumnsMatch as mr, DatabaseDriverType as mt, sqliteMetadata as n, TokenizedSQL as na, InferSchemaTables as ni, DbSQLExecutorOptions as nn, JavaScriptValueTypeToNameMap as no, CollectRelationshipErrors as nr, TransactionNestingCounter as nt, Dumbo as o, AnySchemaComponentOfType as oa, TableRowType as oi, SQLQueryResultColumnMapping as on, SQLColumnTypeTokens as oo, DatabaseSchemasWithSingle as or, executeInNestedTransaction as ot, color as p, findSchemaComponentsOfType as pa, AnyTableRelationshipDefinition as pi, mapColumnToJSON as pn, ExtractSQLTokenType as po, ValidateColumnTypeMatch as pr, DatabaseDriverName as pt, WithConnectionOptions as q, BigSerialToken as qa, SQLFormatterOptions as qi, SystemError as qn, InferTableSchemaComponentColumns as qr, DumboDatabaseMetadataRegistry as qt, postgreSQLMetadata as r, isTokenizedSQL as ra, InferTableRow as ri, SQLCommandOptions as rn, NotNullableSQLColumnTokenProps as ro, ColumnReferenceError as rr, TransactionResult as rt, DumboConnectionOptions as s, DumboSchemaComponentType as sa, Writable as si, WithSQLExecutor as sn, SQLColumnTypeTokensFactory as so, NoError as sr, executeInTransaction as st, dumbo as t, isSQL as ta, InferDatabaseSchemas as ti, DbSQLExecutor as tn, JavaScriptValueTypeName as to, CollectReferencesErrors as tr, InferTransactionOptionsFromTransaction as tt, LogType as u, SchemaComponentOptions as ua, AllColumnTypes as ui, executeInNewDbClient as un, TimestamptzToken as uo, RelationshipValidationError as ur, transactionFactoryWithDbClient as ut, AmbientConnectionPoolOptions as v, MigrationStyle as va, ColumnReference as vi, CountSQLQueryResult as vn, SQLIdentifier as vo, ValidateReference as vr, fromDatabaseDriverType as vt, PoolCloseOptions as w, FormatIdentifierProcessor as wa, NormalizeColumnPath as wi, single as wn, ParametrizedSQLBuilder as wo, ValidateTable as wr, DumboDatabaseDriverRegistry as wt, CreateAlwaysNewConnectionPoolOptions as x, defaultProcessorsRegistry as xa, ExtractSchemaNames as xi, exists as xn, SQLPlain as xo, ValidateRelationshipColumns as xr, toDatabaseDriverType as xt, ConnectionPool as y, SQLMigration as ya, ExtractColumnNames as yi, ExistsSQLQueryResult as yn, SQLIn as yo, ValidateReferences as yr, getDatabaseDriverName as yt, CreateSingletonConnectionOptions as z, SQLValueMapper as za, ColumnSchemaComponentOptions as zi, ForeignKeyViolationError as zn, composeJSONReplacers as zo, databaseSchemaComponent as zr, AcquireDatabaseLockOptions as zt };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { $i as SQL, Bt as DatabaseLock, Ea as DefaultSQLColumnProcessors, Ki as SQLFormatter, Ln as DumboError, Mt as MigratorOptions, Rt as AcquireDatabaseLockMode, Ut as ReleaseDatabaseLockOptions, Vt as DatabaseLockOptions, i as DatabaseConnectionString, in as SQLExecutor, ja as SQLProcessor, mo as SQLArray, mt as DatabaseDriverType, xo as SQLPlain, yo as SQLIn, zt as AcquireDatabaseLockOptions } from "./index-4hcCG4SA.js";
|
|
2
2
|
|
|
3
3
|
//#region src/storage/postgresql/core/connections/connectionString.d.ts
|
|
4
4
|
declare const defaultPostgreSQLConnectionString: PostgreSQLConnectionString;
|
|
@@ -1092,6 +1092,31 @@ declare const schemaComponentURN: {
|
|
|
1092
1092
|
readonly extractName: (urn: string) => string;
|
|
1093
1093
|
};
|
|
1094
1094
|
//#endregion
|
|
1095
|
+
//#region src/core/taskProcessing/abort.d.ts
|
|
1096
|
+
type Abort = {
|
|
1097
|
+
signal: AbortSignal;
|
|
1098
|
+
};
|
|
1099
|
+
type AbortOptions = {
|
|
1100
|
+
abort?: Abort | undefined;
|
|
1101
|
+
};
|
|
1102
|
+
type AbortContext = {
|
|
1103
|
+
abort: Abort;
|
|
1104
|
+
};
|
|
1105
|
+
type AbortScope = Abort & {
|
|
1106
|
+
abort: (reason?: unknown) => void;
|
|
1107
|
+
dispose: () => void;
|
|
1108
|
+
};
|
|
1109
|
+
declare const Abort: {
|
|
1110
|
+
readonly execute: <Result>(operation: () => Promise<Result>, options?: AbortOptions) => Promise<Result>;
|
|
1111
|
+
readonly from: (options?: AbortOptions) => Abort;
|
|
1112
|
+
readonly never: Abort;
|
|
1113
|
+
readonly onAbort: (abort: Abort | undefined, handle: (reason: Error) => void) => (() => void);
|
|
1114
|
+
readonly reason: (abort: Abort | AbortSignal) => Error;
|
|
1115
|
+
readonly rejectIfAborted: (options?: AbortOptions) => Promise<never> | undefined;
|
|
1116
|
+
readonly scope: (parent?: Abort, onAbort?: (reason: Error) => void) => AbortScope;
|
|
1117
|
+
readonly throwIfAborted: (options?: AbortOptions) => void;
|
|
1118
|
+
};
|
|
1119
|
+
//#endregion
|
|
1095
1120
|
//#region src/core/errors/index.d.ts
|
|
1096
1121
|
declare class DumboError extends Error {
|
|
1097
1122
|
static readonly ErrorCode: number;
|
|
@@ -1243,11 +1268,11 @@ declare const mapSQLQueryResult: <T>(result: T, mapping: SQLQueryResultColumnMap
|
|
|
1243
1268
|
type SQLQueryResultColumnMapping = {
|
|
1244
1269
|
[column: string]: (value: unknown) => unknown;
|
|
1245
1270
|
};
|
|
1246
|
-
type SQLQueryOptions = {
|
|
1271
|
+
type SQLQueryOptions = AbortOptions & {
|
|
1247
1272
|
timeoutMs?: number | undefined;
|
|
1248
1273
|
mapping?: SQLQueryResultColumnMapping;
|
|
1249
1274
|
};
|
|
1250
|
-
type SQLCommandOptions = {
|
|
1275
|
+
type SQLCommandOptions = AbortOptions & {
|
|
1251
1276
|
timeoutMs?: number | undefined;
|
|
1252
1277
|
mapping?: SQLQueryResultColumnMapping;
|
|
1253
1278
|
};
|
|
@@ -1281,27 +1306,27 @@ interface WithSQLExecutor {
|
|
|
1281
1306
|
execute: SQLExecutor;
|
|
1282
1307
|
}
|
|
1283
1308
|
declare const sqlExecutor: <DbClient = unknown, DbExecutor extends DbSQLExecutor = DbSQLExecutor>(sqlExecutor: DbExecutor, options: {
|
|
1284
|
-
connect: () => Promise<DbClient>;
|
|
1309
|
+
connect: (context: AbortContext) => Promise<DbClient>;
|
|
1285
1310
|
close?: (client: DbClient, error?: unknown) => Promise<void>;
|
|
1286
1311
|
}) => SQLExecutor;
|
|
1287
1312
|
declare const sqlExecutorInNewConnection: <ConnectionType extends Connection>(options: {
|
|
1288
1313
|
driverType: ConnectionType["driverType"];
|
|
1289
|
-
connection: () => Promise<ConnectionType>;
|
|
1314
|
+
connection: (context: AbortContext) => Promise<ConnectionType>;
|
|
1290
1315
|
}) => SQLExecutor;
|
|
1291
1316
|
declare const sqlExecutorInAmbientConnection: <ConnectionType extends Connection>(options: {
|
|
1292
1317
|
driverType: ConnectionType["driverType"];
|
|
1293
|
-
connection: () => Promise<ConnectionType>;
|
|
1318
|
+
connection: (context: AbortContext) => Promise<ConnectionType>;
|
|
1294
1319
|
}) => SQLExecutor;
|
|
1295
1320
|
declare const executeInNewDbClient: <DbClient = unknown, Result = unknown>(handle: (client: DbClient) => Promise<Result>, options: {
|
|
1296
|
-
connect: () => Promise<DbClient>;
|
|
1321
|
+
connect: (context: AbortContext) => Promise<DbClient>;
|
|
1297
1322
|
close?: (client: DbClient, error?: unknown) => Promise<void>;
|
|
1298
|
-
}) => Promise<Result>;
|
|
1323
|
+
} & AbortOptions) => Promise<Result>;
|
|
1299
1324
|
declare const executeInNewConnection: <ConnectionType extends Connection, Result>(handle: (connection: ConnectionType) => Promise<Result>, options: {
|
|
1300
|
-
connection: () => Promise<ConnectionType>;
|
|
1301
|
-
}) => Promise<Result>;
|
|
1325
|
+
connection: (context: AbortContext) => Promise<ConnectionType>;
|
|
1326
|
+
} & AbortOptions) => Promise<Result>;
|
|
1302
1327
|
declare const executeInAmbientConnection: <ConnectionType extends Connection, Result>(handle: (connection: ConnectionType) => Promise<Result>, options: {
|
|
1303
|
-
connection: () => Promise<ConnectionType>;
|
|
1304
|
-
}) => Promise<Result>;
|
|
1328
|
+
connection: (context: AbortContext) => Promise<ConnectionType>;
|
|
1329
|
+
} & AbortOptions) => Promise<Result>;
|
|
1305
1330
|
//#endregion
|
|
1306
1331
|
//#region src/core/schema/databaseMetadata/databaseMetadata.d.ts
|
|
1307
1332
|
interface DatabaseCapabilities<SupportsMultipleDatabases extends boolean, SupportsSchemas extends boolean, SupportsFunctions extends boolean> {
|
|
@@ -1472,10 +1497,11 @@ interface DatabaseTransaction<ConnectionType extends AnyConnection = AnyConnecti
|
|
|
1472
1497
|
begin: () => Promise<void>;
|
|
1473
1498
|
commit: () => Promise<void>;
|
|
1474
1499
|
rollback: (error?: unknown) => Promise<void>;
|
|
1500
|
+
withTransaction: <Result = never>(handle: (transaction: DatabaseTransaction<ConnectionType, TransactionOptionsType>, context: AbortContext) => Promise<TransactionResult<Result> | Result>, options?: TransactionOptionsType) => Promise<Result>;
|
|
1475
1501
|
_transactionOptions: TransactionOptionsType;
|
|
1476
1502
|
}
|
|
1477
1503
|
type AnyDatabaseTransaction = DatabaseTransaction<any, any>;
|
|
1478
|
-
type DatabaseTransactionOptions = {
|
|
1504
|
+
type DatabaseTransactionOptions = AbortOptions & {
|
|
1479
1505
|
allowNestedTransactions?: boolean;
|
|
1480
1506
|
readonly?: boolean;
|
|
1481
1507
|
};
|
|
@@ -1497,24 +1523,33 @@ declare const databaseTransaction: (backend: Pick<DatabaseTransaction, "begin" |
|
|
|
1497
1523
|
type InferTransactionOptionsFromTransaction<C extends AnyDatabaseTransaction> = C extends DatabaseTransaction<any, infer TO> ? TO : never;
|
|
1498
1524
|
interface WithDatabaseTransactionFactory<ConnectionType extends AnyConnection = AnyConnection> {
|
|
1499
1525
|
transaction: (options?: InferTransactionOptionsFromConnection<ConnectionType>) => InferTransactionFromConnection<ConnectionType>;
|
|
1500
|
-
withTransaction: <Result = never>(handle: (transaction: InferTransactionFromConnection<ConnectionType
|
|
1526
|
+
withTransaction: <Result = never>(handle: (transaction: InferTransactionFromConnection<ConnectionType>, context: AbortContext) => Promise<TransactionResult<Result> | Result>, options?: InferTransactionOptionsFromConnection<ConnectionType>) => Promise<Result>;
|
|
1501
1527
|
}
|
|
1502
1528
|
type TransactionResult<Result> = {
|
|
1503
1529
|
success: boolean;
|
|
1504
1530
|
result: Result;
|
|
1505
1531
|
};
|
|
1506
|
-
|
|
1507
|
-
|
|
1532
|
+
type TransactionLifecycle = {
|
|
1533
|
+
begin: () => Promise<void>;
|
|
1534
|
+
commit: () => Promise<void>;
|
|
1535
|
+
rollback: (error?: unknown) => Promise<void>;
|
|
1536
|
+
};
|
|
1537
|
+
type NestedTransactionLifecycle<TransactionOptionsType extends DatabaseTransactionOptions> = TransactionLifecycle & {
|
|
1538
|
+
_transactionOptions: TransactionOptionsType;
|
|
1539
|
+
};
|
|
1540
|
+
declare const executeInTransaction: <DatabaseTransactionType extends TransactionLifecycle = TransactionLifecycle, Result = void>(transaction: DatabaseTransactionType, handle: (transaction: DatabaseTransactionType, context: AbortContext) => Promise<TransactionResult<Result> | Result>, context?: AbortContext) => Promise<Result>;
|
|
1541
|
+
declare const executeInNestedTransaction: <TransactionOptionsType extends DatabaseTransactionOptions = DatabaseTransactionOptions, DatabaseTransactionType extends NestedTransactionLifecycle<TransactionOptionsType> = NestedTransactionLifecycle<TransactionOptionsType>, Result = void>(transaction: DatabaseTransactionType, handle: (transaction: DatabaseTransactionType, context: AbortContext) => Promise<TransactionResult<Result> | Result>, options?: TransactionOptionsType, context?: AbortContext) => Promise<Result>;
|
|
1542
|
+
declare const transactionFactoryWithDbClient: <ConnectionType extends AnyConnection = AnyConnection>(connect: (context: AbortContext) => Promise<InferDbClientFromConnection<ConnectionType>>, initTransaction: (client: Promise<InferDbClientFromConnection<ConnectionType>>, options?: InferTransactionOptionsFromConnection<ConnectionType> & {
|
|
1508
1543
|
close: (client: InferDbClientFromConnection<ConnectionType>, error?: unknown) => Promise<void>;
|
|
1509
1544
|
}) => InferTransactionFromConnection<ConnectionType>) => WithDatabaseTransactionFactory<ConnectionType>;
|
|
1510
|
-
declare const transactionFactoryWithNewConnection: <ConnectionType extends AnyConnection = AnyConnection>(connect: () => ConnectionType) => WithDatabaseTransactionFactory<ConnectionType>;
|
|
1511
|
-
declare const transactionFactoryWithAmbientConnection: <ConnectionType extends AnyConnection = AnyConnection>(connect: () => ConnectionType) => WithDatabaseTransactionFactory<ConnectionType>;
|
|
1512
|
-
declare const transactionFactoryWithAsyncAmbientConnection: <ConnectionType extends AnyConnection = AnyConnection>(driverType: ConnectionType["driverType"], connect: () => Promise<ConnectionType>, close?: (connection: ConnectionType) => void | Promise<void>) => WithDatabaseTransactionFactory<ConnectionType>;
|
|
1545
|
+
declare const transactionFactoryWithNewConnection: <ConnectionType extends AnyConnection = AnyConnection>(connect: (context: AbortContext) => ConnectionType) => WithDatabaseTransactionFactory<ConnectionType>;
|
|
1546
|
+
declare const transactionFactoryWithAmbientConnection: <ConnectionType extends AnyConnection = AnyConnection>(connect: (context: AbortContext) => ConnectionType) => WithDatabaseTransactionFactory<ConnectionType>;
|
|
1547
|
+
declare const transactionFactoryWithAsyncAmbientConnection: <ConnectionType extends AnyConnection = AnyConnection>(driverType: ConnectionType["driverType"], connect: (context: AbortContext) => Promise<ConnectionType>, close?: (connection: ConnectionType) => void | Promise<void>) => WithDatabaseTransactionFactory<ConnectionType>;
|
|
1513
1548
|
//#endregion
|
|
1514
1549
|
//#region src/core/connections/connection.d.ts
|
|
1515
1550
|
interface Connection<Self extends AnyConnection = AnyConnection, DriverType extends DatabaseDriverType = DatabaseDriverType, DbClient = unknown, TransactionType extends DatabaseTransaction<Self, any> = DatabaseTransaction<Self, any>> extends WithSQLExecutor, WithDatabaseTransactionFactory<Self> {
|
|
1516
1551
|
driverType: DriverType;
|
|
1517
|
-
open: () => Promise<DbClient>;
|
|
1552
|
+
open: (context?: AbortContext) => Promise<DbClient>;
|
|
1518
1553
|
close: () => Promise<void>;
|
|
1519
1554
|
_transactionType: TransactionType;
|
|
1520
1555
|
}
|
|
@@ -1528,19 +1563,19 @@ type ConnectionOptions<ConnectionType extends AnyConnection = AnyConnection> = {
|
|
|
1528
1563
|
transactionOptions?: InferTransactionOptionsFromConnection<ConnectionType>;
|
|
1529
1564
|
};
|
|
1530
1565
|
type ConnectionFactory<ConnectionType extends AnyConnection = AnyConnection> = (options: ConnectionOptions<ConnectionType>) => ConnectionType;
|
|
1531
|
-
type WithConnectionOptions = {
|
|
1566
|
+
type WithConnectionOptions = AbortOptions & {
|
|
1532
1567
|
readonly?: boolean;
|
|
1533
1568
|
};
|
|
1534
1569
|
interface WithConnectionFactory<ConnectionType extends AnyConnection = AnyConnection> {
|
|
1535
1570
|
connection: (options?: WithConnectionOptions) => Promise<ConnectionType>;
|
|
1536
|
-
withConnection: <Result = unknown>(handle: (connection: ConnectionType) => Promise<Result>, options?: WithConnectionOptions) => Promise<Result>;
|
|
1571
|
+
withConnection: <Result = unknown>(handle: (connection: ConnectionType, context: AbortContext) => Promise<Result>, options?: WithConnectionOptions) => Promise<Result>;
|
|
1537
1572
|
}
|
|
1538
1573
|
type InitTransaction<ConnectionType extends AnyConnection = AnyConnection> = (connection: () => ConnectionType) => (client: Promise<InferDbClientFromConnection<ConnectionType>>, options?: InferTransactionOptionsFromConnection<ConnectionType> & {
|
|
1539
1574
|
close: (client: InferDbClientFromConnection<ConnectionType>, error?: unknown) => Promise<void>;
|
|
1540
1575
|
}) => InferTransactionFromConnection<ConnectionType>;
|
|
1541
1576
|
type CreateConnectionOptions<ConnectionType extends AnyConnection = AnyConnection, Executor extends DbSQLExecutor = DbSQLExecutor> = {
|
|
1542
1577
|
driverType: InferDriverTypeFromConnection<ConnectionType>;
|
|
1543
|
-
connect: () => Promise<InferDbClientFromConnection<ConnectionType>>;
|
|
1578
|
+
connect: (context: AbortContext) => Promise<InferDbClientFromConnection<ConnectionType>>;
|
|
1544
1579
|
close: (client: InferDbClientFromConnection<ConnectionType>) => Promise<void>;
|
|
1545
1580
|
initTransaction: InitTransaction<ConnectionType>;
|
|
1546
1581
|
serializer: JSONSerializer;
|
|
@@ -1556,7 +1591,7 @@ type CreateAmbientConnectionOptions<ConnectionType extends AnyConnection = AnyCo
|
|
|
1556
1591
|
declare const createAmbientConnection: <ConnectionType extends AnyConnection = AnyConnection, Executor extends DbSQLExecutor = DbSQLExecutor>(options: CreateAmbientConnectionOptions<ConnectionType, Executor>) => ConnectionType;
|
|
1557
1592
|
type CreateSingletonConnectionOptions<ConnectionType extends AnyConnection = AnyConnection, Executor extends DbSQLExecutor = DbSQLExecutor> = {
|
|
1558
1593
|
driverType: InferDriverTypeFromConnection<ConnectionType>;
|
|
1559
|
-
connect: () => Promise<InferDbClientFromConnection<ConnectionType>>;
|
|
1594
|
+
connect: (context: AbortContext) => Promise<InferDbClientFromConnection<ConnectionType>>;
|
|
1560
1595
|
close: (client: InferDbClientFromConnection<ConnectionType>) => Promise<void>;
|
|
1561
1596
|
initTransaction: InitTransaction<ConnectionType>;
|
|
1562
1597
|
serializer: JSONSerializer;
|
|
@@ -1565,7 +1600,7 @@ type CreateSingletonConnectionOptions<ConnectionType extends AnyConnection = Any
|
|
|
1565
1600
|
declare const createSingletonConnection: <ConnectionType extends AnyConnection = AnyConnection, Executor extends DbSQLExecutor = DbSQLExecutor>(options: CreateSingletonConnectionOptions<ConnectionType, Executor>) => ConnectionType;
|
|
1566
1601
|
type CreateTransientConnectionOptions<ConnectionType extends AnyConnection = AnyConnection, Executor extends DbSQLExecutor = DbSQLExecutor> = {
|
|
1567
1602
|
driverType: InferDriverTypeFromConnection<ConnectionType>;
|
|
1568
|
-
open: () => Promise<InferDbClientFromConnection<ConnectionType>>;
|
|
1603
|
+
open: (context?: AbortContext) => Promise<InferDbClientFromConnection<ConnectionType>>;
|
|
1569
1604
|
close: () => Promise<void>;
|
|
1570
1605
|
initTransaction: InitTransaction<ConnectionType>;
|
|
1571
1606
|
serializer: JSONSerializer;
|
|
@@ -1577,6 +1612,7 @@ declare const createConnection: <ConnectionType extends AnyConnection = AnyConne
|
|
|
1577
1612
|
//#region src/core/connections/pool.d.ts
|
|
1578
1613
|
type PoolCloseOptions = {
|
|
1579
1614
|
force?: boolean;
|
|
1615
|
+
closeDeadline?: number;
|
|
1580
1616
|
};
|
|
1581
1617
|
interface ConnectionPool<ConnectionType extends AnyConnection = AnyConnection> extends WithSQLExecutor, WithConnectionFactory<ConnectionType>, WithDatabaseTransactionFactory<ConnectionType> {
|
|
1582
1618
|
driverType: ConnectionType['driverType'];
|
|
@@ -1590,14 +1626,14 @@ type AmbientConnectionPoolOptions<ConnectionType extends AnyConnection> = {
|
|
|
1590
1626
|
declare const createAmbientConnectionPool: <ConnectionType extends AnyConnection>(options: AmbientConnectionPoolOptions<ConnectionType>) => ConnectionPool<ConnectionType>;
|
|
1591
1627
|
type SingletonConnectionPoolOptions<ConnectionType extends AnyConnection> = {
|
|
1592
1628
|
driverType: ConnectionType['driverType'];
|
|
1593
|
-
getConnection: () => ConnectionType | Promise<ConnectionType>;
|
|
1629
|
+
getConnection: (context: AbortContext) => ConnectionType | Promise<ConnectionType>;
|
|
1594
1630
|
closeConnection?: (connection: ConnectionType) => void | Promise<void>;
|
|
1595
1631
|
connectionOptions?: never;
|
|
1596
1632
|
};
|
|
1597
1633
|
declare const createSingletonConnectionPool: <ConnectionType extends AnyConnection>(options: SingletonConnectionPoolOptions<ConnectionType>) => ConnectionPool<ConnectionType>;
|
|
1598
1634
|
type CreateBoundedConnectionPoolOptions<ConnectionType extends AnyConnection> = {
|
|
1599
1635
|
driverType: ConnectionType['driverType'];
|
|
1600
|
-
getConnection: () => ConnectionType | Promise<ConnectionType>;
|
|
1636
|
+
getConnection: (context: AbortContext) => ConnectionType | Promise<ConnectionType>;
|
|
1601
1637
|
maxConnections: number;
|
|
1602
1638
|
};
|
|
1603
1639
|
declare const createBoundedConnectionPool: <ConnectionType extends AnyConnection>(options: CreateBoundedConnectionPoolOptions<ConnectionType>) => ConnectionPool<ConnectionType>;
|
|
@@ -1611,16 +1647,16 @@ type SingletonClientConnectionPoolOptions<ConnectionType extends AnyConnection>
|
|
|
1611
1647
|
declare const createSingletonClientConnectionPool: <ConnectionType extends AnyConnection>(options: SingletonClientConnectionPoolOptions<ConnectionType>) => ConnectionPool<ConnectionType>;
|
|
1612
1648
|
type CreateAlwaysNewConnectionPoolOptions<ConnectionType extends AnyConnection, ConnectionOptions extends Record<string, unknown> | undefined = undefined> = ConnectionOptions extends undefined ? {
|
|
1613
1649
|
driverType: ConnectionType['driverType'];
|
|
1614
|
-
getConnection: () => ConnectionType;
|
|
1650
|
+
getConnection: (context: AbortContext) => ConnectionType;
|
|
1615
1651
|
connectionOptions?: never;
|
|
1616
1652
|
} : {
|
|
1617
1653
|
driverType: ConnectionType['driverType'];
|
|
1618
|
-
getConnection: (options: ConnectionOptions) => ConnectionType;
|
|
1654
|
+
getConnection: (options: ConnectionOptions, context: AbortContext) => ConnectionType;
|
|
1619
1655
|
connectionOptions: ConnectionOptions;
|
|
1620
1656
|
};
|
|
1621
1657
|
declare const createAlwaysNewConnectionPool: <ConnectionType extends AnyConnection, ConnectionOptions extends Record<string, unknown> | undefined = undefined>(options: CreateAlwaysNewConnectionPoolOptions<ConnectionType, ConnectionOptions>) => ConnectionPool<ConnectionType>;
|
|
1622
1658
|
type CreateConnectionPoolOptions<ConnectionType extends AnyConnection> = Pick<ConnectionPool<ConnectionType>, 'driverType'> & Partial<ConnectionPool<ConnectionType>> & {
|
|
1623
|
-
getConnection: () => ConnectionType;
|
|
1659
|
+
getConnection: (context: AbortContext) => ConnectionType;
|
|
1624
1660
|
};
|
|
1625
1661
|
declare const createConnectionPool: <ConnectionType extends AnyConnection>(pool: CreateConnectionPoolOptions<ConnectionType>) => ConnectionPool<ConnectionType>;
|
|
1626
1662
|
//#endregion
|
|
@@ -1696,4 +1732,4 @@ declare function dumbo<DatabaseDriver extends AnyDumboDatabaseDriver = AnyDumboD
|
|
|
1696
1732
|
driver?: never;
|
|
1697
1733
|
}): ExtractDumboTypeFromDriver<DatabaseDriver>;
|
|
1698
1734
|
//#endregion
|
|
1699
|
-
export { DatabaseTransaction as $,
|
|
1735
|
+
export { DatabaseTransaction as $, JSONValueTypeName as $a, SQL as $i, AbortScope as $n, tableSchemaComponent as $r, BatchCommandNoChangesError as $t, createConnectionPool as A, AnySQLProcessor as Aa, TableColumnName as Ai, QueryResultRow as An, JSONReplacer as Ao, FormatTableLevel as Ar, migrationTableSchemaComponent as At, CreateTransientConnectionOptions as B, mapANSISQLParamPlaceholder as Ba, ColumnURN as Bi, InsufficientResourcesError as Bn, composeJSONRevivers as Bo, AnyDatabaseSchemaSchemaComponent as Br, DatabaseLock as Bt, CreateConnectionPoolOptions as C, ExpandSQLInProcessor as Ca, LookupColumnType as Ci, firstOrNull as Cn, ParametrizedSQL as Co, ValidateSchemaTables as Cr, DumboDatabaseDriver as Ct, createAlwaysNewConnectionPool as D, mapDefaultSQLColumnProcessors as Da, RelationshipDefinition as Di, mapToCamelCase as Dn, JSONCodec as Do, FormatRelationshipBlock as Dr, canHandleDriverWithConnectionString as Dt, SingletonConnectionPoolOptions as E, DefaultSQLColumnProcessors as Ea, ParseReferencePath as Ei, mapRows as En, Serializer as Eo, FormatDatabaseValidationErrors as Er, ExtractDumboTypeFromDriver as Et, ConnectionFactory as F, ANSISQLParamPlaceholder as Fa, IndexURNType as Fi, DataError as Fn, JSONSerializationOptions as Fo, DatabaseSchemaComponent as Fr, getDefaultMigratorOptionsFromRegistry as Ft, InitTransaction as G, AutoIncrementSQLColumnToken as Ga, FormatSQLOptions as Gi, QueryCanceledError as Gn, databaseSchemaSchemaComponent as Gr, DatabaseCapabilities as Gt, InferDriverTypeFromConnection as H, mapSQLParamValue as Ha, columnSchemaComponent as Hi, InvalidOperationError as Hn, DbClientSetup as Ho, DatabaseSchemaTables as Hr, NoDatabaseLock as Ht, ConnectionOptions as I, DefaultMapSQLParamValueOptions as Ia, indexSchemaComponent as Ii, DeadlockError as In, JSONSerializeOptions as Io, DatabaseSchemas as Ir, registerDefaultMigratorOptions as It, createAmbientConnection as J, ColumnTypeToken as Ja, describeSQL as Ji, TransientDatabaseError as Jn, InferTableSchemaComponentTypes as Jr, dumboDatabaseMetadataRegistry as Jt, WithConnectionFactory as K, BigIntegerToken as Ka, SQLFormatter as Ki, SerializationError as Kn, AnyTableSchemaComponent as Kr, DatabaseMetadata as Kt, CreateAmbientConnectionOptions as L, MapSQLParamValue as La, AnyColumnSchemaComponent as Li, DumboError as Ln, JSONSerializer as Lo, DatabaseURN as Lr, runSQLMigrations as Lt, createSingletonConnectionPool as M, SQLProcessorContext as Ma, relationship as Mi, CheckViolationError as Mn, JSONReviver as Mo, IndentErrors as Mr, MigratorOptions as Mt, AnyConnection as N, SQLProcessorOptions as Na, IndexSchemaComponent as Ni, ConcurrencyError as Nn, JSONReviverContext as No, Join as Nr, RunSQLMigrationsResult as Nt, createAmbientConnectionPool as O, SQLProcessorsReadonlyRegistry as Oa, RelationshipType as Oi, toCamelCase as On, JSONCodecOptions as Oo, FormatSchemaLevel as Or, dumboDatabaseDriverRegistry as Ot, Connection as P, ANSISQLIdentifierQuote as Pa, IndexURN as Pi, ConnectionError as Pn, JSONRevivers as Po, AnyDatabaseSchemaComponent as Pr, combineMigrations as Pt, AnyDatabaseTransaction as Q, JSONValueType as Qa, RawSQL as Qi, AbortOptions as Qn, TableURNType as Qr, resolveDatabaseMetadata as Qt, CreateConnectionOptions as R, MapSQLParamValueOptions as Ra, ColumnSchemaComponent as Ri, ExclusionViolationError as Rn, JSONSerializerOptions as Ro, DatabaseURNType as Rr, AcquireDatabaseLockMode as Rt, CreateBoundedConnectionPoolOptions as S, ExpandArrayProcessor as Sa, ExtractTableNames as Si, first as Sn, SQLToken as So, ValidateRelationshipLength as Sr, AnyDumboDatabaseDriver as St, SingletonClientConnectionPoolOptions as T, MapLiteralProcessor as Ta, NormalizeReference as Ti, singleOrNull as Tn, SerializationCodec as To, ValidateTableRelationships as Tr, ExtractDumboDatabaseDriverOptions as Tt, InferTransactionFromConnection as U, ansiSqlReservedMap as Ua, JSONParam as Ui, LockNotAvailableError as Un, DatabaseSchemaURN as Ur, ReleaseDatabaseLockOptions as Ut, InferDbClientFromConnection as V, mapSQLIdentifier as Va, ColumnURNType as Vi, IntegrityConstraintViolationError as Vn, jsonSerializer as Vo, DatabaseSchemaSchemaComponent as Vr, DatabaseLockOptions as Vt, InferTransactionOptionsFromConnection as W, AnyColumnTypeToken as Wa, FormatContext as Wi, NotNullViolationError as Wn, DatabaseSchemaURNType as Wr, defaultDatabaseLockOptions as Wt, createSingletonConnection as X, IntegerToken as Xa, getFormatter as Xi, Abort as Xn, TableSchemaComponent as Xr, getDefaultDatabase as Xt, createConnection as Y, DefaultSQLColumnToken as Ya, formatSQL as Yi, UniqueConstraintError as Yn, TableColumns as Yr, getDatabaseMetadata as Yt, createTransientConnection as Z, JSONBToken as Za, registerFormatter as Zi, AbortContext as Zn, TableURN as Zr, getDefaultDatabaseAsync as Zt, IsOK as _, MigrationRecord as _a, ColumnPathToReference as _i, sqlExecutorInNewConnection as _n, SQLDefaultTokensTypes as _o, ValidateDatabaseSchemasWithMessages as _r, InferDriverDatabaseType as _t, parseConnectionString as a, AnySchemaComponent as aa, TableColumnType as ai, SQLQueryOptions as an, SQLColumnToken as ao, ColumnReferenceTypeMismatchError as ar, databaseTransaction as at, ConnectionPoolFactory as b, sqlMigration as ba, ExtractColumnTypeName as bi, count as bn, SQLLiteral as bo, ValidateRelationship as br, getDatabaseType as bt, LogLevel as c, ExtractAdditionalData as ca, AllColumnReferences as ci, executeInAmbientConnection as cn, SerialToken as co, RelationshipColumnsMismatchError as cr, transactionFactoryWithAmbientConnection as ct, tracer as d, SchemaComponentType as da, AllColumnTypesInSchema as di, mapColumnToBigint as dn, VarcharToken as do, SchemaTablesWithSingle as dr, transactionFactoryWithNewConnection as dt, SQLTag as ea, InferColumnType as ei, BatchSQLCommandOptions as en, JavaScriptValueType as eo, schemaComponentURN as er, DatabaseTransactionOptions as et, prettyJson as f, filterSchemaComponentsOfType as fa, AnyRelationshipDefinition as fi, mapColumnToDate as fn, AnySQLToken as fo, ValidateColumnReference as fr, transactionNestingCounter as ft, IsError as g, schemaComponent as ga, ColumnPath as gi, sqlExecutorInAmbientConnection as gn, SQLDefaultTokens as go, ValidateDatabaseSchemas as gr, DatabaseType as gt, Expect as h, mapSchemaComponentsOfType as ha, ColumnName$1 as hi, sqlExecutor as hn, SQLArrayMode as ho, ValidateDatabaseSchema as hr, DatabaseDriverTypeParts as ht, DatabaseConnectionString as i, dumboSchema as ia, TableColumnNames as ii, SQLExecutor as in, NullableSQLColumnTokenProps as io, ColumnReferenceExistanceError as ir, WithDatabaseTransactionFactory as it, createSingletonClientConnectionPool as j, SQLProcessor as ja, TableRelationships as ji, AdminShutdownError as jn, JSONReplacers as jo, FormatValidationErrors as jr, MIGRATIONS_LOCK_ID as jt, createBoundedConnectionPool as k, SQLProcessorsRegistry as ka, SchemaColumnName as ki, QueryResult as kn, JSONDeserializeOptions as ko, FormatSingleError as kr, SchemaComponentMigrator as kt, LogStyle as l, SchemaComponent as la, AllColumnReferencesInSchema as li, executeInNewConnection as ln, TimestampToken as lo, RelationshipReferencesLengthMismatchError as lr, transactionFactoryWithAsyncAmbientConnection as lt, Equals as m, isSchemaComponentOfType as ma, AnyTableRelationshipDefinitionWithColumns as mi, mapSQLQueryResult as mn, SQLArray as mo, ValidateColumnsMatch as mr, DatabaseDriverType as mt, sqliteMetadata as n, TokenizedSQL as na, InferSchemaTables as ni, DbSQLExecutorOptions as nn, JavaScriptValueTypeToNameMap as no, CollectRelationshipErrors as nr, TransactionNestingCounter as nt, Dumbo as o, AnySchemaComponentOfType as oa, TableRowType as oi, SQLQueryResultColumnMapping as on, SQLColumnTypeTokens as oo, DatabaseSchemasWithSingle as or, executeInNestedTransaction as ot, color as p, findSchemaComponentsOfType as pa, AnyTableRelationshipDefinition as pi, mapColumnToJSON as pn, ExtractSQLTokenType as po, ValidateColumnTypeMatch as pr, DatabaseDriverName as pt, WithConnectionOptions as q, BigSerialToken as qa, SQLFormatterOptions as qi, SystemError as qn, InferTableSchemaComponentColumns as qr, DumboDatabaseMetadataRegistry as qt, postgreSQLMetadata as r, isTokenizedSQL as ra, InferTableRow as ri, SQLCommandOptions as rn, NotNullableSQLColumnTokenProps as ro, ColumnReferenceError as rr, TransactionResult as rt, DumboConnectionOptions as s, DumboSchemaComponentType as sa, Writable as si, WithSQLExecutor as sn, SQLColumnTypeTokensFactory as so, NoError as sr, executeInTransaction as st, dumbo as t, isSQL as ta, InferDatabaseSchemas as ti, DbSQLExecutor as tn, JavaScriptValueTypeName as to, CollectReferencesErrors as tr, InferTransactionOptionsFromTransaction as tt, LogType as u, SchemaComponentOptions as ua, AllColumnTypes as ui, executeInNewDbClient as un, TimestamptzToken as uo, RelationshipValidationError as ur, transactionFactoryWithDbClient as ut, AmbientConnectionPoolOptions as v, MigrationStyle as va, ColumnReference as vi, CountSQLQueryResult as vn, SQLIdentifier as vo, ValidateReference as vr, fromDatabaseDriverType as vt, PoolCloseOptions as w, FormatIdentifierProcessor as wa, NormalizeColumnPath as wi, single as wn, ParametrizedSQLBuilder as wo, ValidateTable as wr, DumboDatabaseDriverRegistry as wt, CreateAlwaysNewConnectionPoolOptions as x, defaultProcessorsRegistry as xa, ExtractSchemaNames as xi, exists as xn, SQLPlain as xo, ValidateRelationshipColumns as xr, toDatabaseDriverType as xt, ConnectionPool as y, SQLMigration as ya, ExtractColumnNames as yi, ExistsSQLQueryResult as yn, SQLIn as yo, ValidateReferences as yr, getDatabaseDriverName as yt, CreateSingletonConnectionOptions as z, SQLValueMapper as za, ColumnSchemaComponentOptions as zi, ForeignKeyViolationError as zn, composeJSONReplacers as zo, databaseSchemaComponent as zr, AcquireDatabaseLockOptions as zt };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { $i as SQL, Bt as DatabaseLock, Ea as DefaultSQLColumnProcessors, Ki as SQLFormatter, Ln as DumboError, Mt as MigratorOptions, Rt as AcquireDatabaseLockMode, Ut as ReleaseDatabaseLockOptions, Vt as DatabaseLockOptions, i as DatabaseConnectionString, in as SQLExecutor, ja as SQLProcessor, mo as SQLArray, mt as DatabaseDriverType, xo as SQLPlain, yo as SQLIn, zt as AcquireDatabaseLockOptions } from "./index-BJ-dm7dG.cjs";
|
|
2
2
|
|
|
3
3
|
//#region src/storage/postgresql/core/connections/connectionString.d.ts
|
|
4
4
|
declare const defaultPostgreSQLConnectionString: PostgreSQLConnectionString;
|