@event-driven-io/dumbo 0.13.0-beta.1 → 0.13.0-beta.10
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/{chunk-IW4T2VXT.cjs → chunk-7I7IBVWL.cjs} +188 -16
- package/dist/chunk-7I7IBVWL.cjs.map +1 -0
- package/dist/{chunk-ROEYA6V2.js → chunk-DNL6UFLJ.js} +11 -18
- package/dist/chunk-DNL6UFLJ.js.map +1 -0
- package/dist/{chunk-S4U5T4ST.js → chunk-FRYUNQP7.js} +187 -15
- package/dist/chunk-FRYUNQP7.js.map +1 -0
- package/dist/chunk-J4YVTA6U.cjs +405 -0
- package/dist/chunk-J4YVTA6U.cjs.map +1 -0
- package/dist/chunk-JJBBUEF4.js +405 -0
- package/dist/chunk-JJBBUEF4.js.map +1 -0
- package/dist/chunk-MPT6POX6.cjs +47 -0
- package/dist/chunk-MPT6POX6.cjs.map +1 -0
- package/dist/cloudflare.cjs +277 -0
- package/dist/cloudflare.cjs.map +1 -0
- package/dist/cloudflare.d.cts +60 -0
- package/dist/cloudflare.d.ts +60 -0
- package/dist/cloudflare.js +277 -0
- package/dist/cloudflare.js.map +1 -0
- package/dist/{columnProcessors-Dw-xZeku.d.cts → columnProcessors-CF0xIXbg.d.cts} +1 -1
- package/dist/{columnProcessors-B62dbdIQ.d.ts → columnProcessors-Dat_cay6.d.ts} +1 -1
- package/dist/{index-C_ugrs0F.d.cts → connectionString-CXcfW94o.d.cts} +117 -49
- package/dist/{index-C_ugrs0F.d.ts → connectionString-CXcfW94o.d.ts} +117 -49
- package/dist/index-BwiFJgSW.d.cts +139 -0
- package/dist/index-DCpik05P.d.ts +139 -0
- package/dist/index.cjs +25 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +15 -5
- package/dist/index.d.ts +15 -5
- package/dist/index.js +24 -2
- package/dist/pg.cjs +638 -46
- package/dist/pg.cjs.map +1 -1
- package/dist/pg.d.cts +59 -60
- package/dist/pg.d.ts +59 -60
- package/dist/pg.js +653 -61
- package/dist/pg.js.map +1 -1
- package/dist/sqlite3.cjs +233 -16
- package/dist/sqlite3.cjs.map +1 -1
- package/dist/sqlite3.d.cts +50 -252
- package/dist/sqlite3.d.ts +50 -252
- package/dist/sqlite3.js +235 -18
- package/dist/sqlite3.js.map +1 -1
- package/package.json +40 -8
- package/dist/chunk-3BQOVKJW.js +0 -515
- package/dist/chunk-3BQOVKJW.js.map +0 -1
- package/dist/chunk-IW4T2VXT.cjs.map +0 -1
- package/dist/chunk-MTXDN72D.cjs +0 -515
- package/dist/chunk-MTXDN72D.cjs.map +0 -1
- package/dist/chunk-ROEYA6V2.js.map +0 -1
- package/dist/chunk-S4U5T4ST.js.map +0 -1
- package/dist/chunk-T67D5YF2.cjs +0 -54
- package/dist/chunk-T67D5YF2.cjs.map +0 -1
- package/dist/chunk-XAQMA4NT.js +0 -686
- package/dist/chunk-XAQMA4NT.js.map +0 -1
- package/dist/chunk-XRFKAL7J.cjs +0 -686
- package/dist/chunk-XRFKAL7J.cjs.map +0 -1
- package/dist/pg-J3627PVI.js +0 -59
- package/dist/pg-J3627PVI.js.map +0 -1
- package/dist/pg-MDJJNB7H.cjs +0 -59
- package/dist/pg-MDJJNB7H.cjs.map +0 -1
- package/dist/sqlite3-AFB37G5H.cjs +0 -23
- package/dist/sqlite3-AFB37G5H.cjs.map +0 -1
- package/dist/sqlite3-LC4MJCWZ.js +0 -23
- package/dist/sqlite3-LC4MJCWZ.js.map +0 -1
|
@@ -864,6 +864,24 @@ var sqlExecutorInNewConnection = (options) => ({
|
|
|
864
864
|
options
|
|
865
865
|
)
|
|
866
866
|
});
|
|
867
|
+
var sqlExecutorInAmbientConnection = (options) => ({
|
|
868
|
+
query: (sql, queryOptions) => executeInAmbientConnection(
|
|
869
|
+
(connection) => connection.execute.query(sql, queryOptions),
|
|
870
|
+
options
|
|
871
|
+
),
|
|
872
|
+
batchQuery: (sqls, queryOptions) => executeInAmbientConnection(
|
|
873
|
+
(connection) => connection.execute.batchQuery(sqls, queryOptions),
|
|
874
|
+
options
|
|
875
|
+
),
|
|
876
|
+
command: (sql, commandOptions) => executeInAmbientConnection(
|
|
877
|
+
(connection) => connection.execute.command(sql, commandOptions),
|
|
878
|
+
options
|
|
879
|
+
),
|
|
880
|
+
batchCommand: (sqls, commandOptions) => executeInAmbientConnection(
|
|
881
|
+
(connection) => connection.execute.batchCommand(sqls, commandOptions),
|
|
882
|
+
options
|
|
883
|
+
)
|
|
884
|
+
});
|
|
867
885
|
var executeInNewDbClient = async (handle, options) => {
|
|
868
886
|
const { connect, close } = options;
|
|
869
887
|
const client = await connect();
|
|
@@ -882,6 +900,13 @@ var executeInNewConnection = async (handle, options) => {
|
|
|
882
900
|
await connection.close();
|
|
883
901
|
}
|
|
884
902
|
};
|
|
903
|
+
var executeInAmbientConnection = async (handle, options) => {
|
|
904
|
+
const connection = await options.connection();
|
|
905
|
+
try {
|
|
906
|
+
return await handle(connection);
|
|
907
|
+
} finally {
|
|
908
|
+
}
|
|
909
|
+
};
|
|
885
910
|
|
|
886
911
|
// src/core/connections/transaction.ts
|
|
887
912
|
var toTransactionResult = (transactionResult) => transactionResult !== void 0 && transactionResult !== null && typeof transactionResult === "object" && "success" in transactionResult ? transactionResult : { success: true, result: transactionResult };
|
|
@@ -899,15 +924,16 @@ var executeInTransaction = async (transaction, handle) => {
|
|
|
899
924
|
};
|
|
900
925
|
var transactionFactoryWithDbClient = (connect, initTransaction) => {
|
|
901
926
|
let currentTransaction = void 0;
|
|
902
|
-
const getOrInitCurrentTransaction = () => _nullishCoalesce(currentTransaction, () => ( (currentTransaction = initTransaction(connect(), {
|
|
927
|
+
const getOrInitCurrentTransaction = (options) => _nullishCoalesce(currentTransaction, () => ( (currentTransaction = initTransaction(connect(), {
|
|
903
928
|
close: () => {
|
|
904
929
|
currentTransaction = void 0;
|
|
905
930
|
return Promise.resolve();
|
|
906
|
-
}
|
|
931
|
+
},
|
|
932
|
+
..._nullishCoalesce(options, () => ( {}))
|
|
907
933
|
}))));
|
|
908
934
|
return {
|
|
909
935
|
transaction: getOrInitCurrentTransaction,
|
|
910
|
-
withTransaction: (handle) => executeInTransaction(getOrInitCurrentTransaction(), handle)
|
|
936
|
+
withTransaction: (handle, options) => executeInTransaction(getOrInitCurrentTransaction(options), handle)
|
|
911
937
|
};
|
|
912
938
|
};
|
|
913
939
|
var wrapInConnectionClosure = async (connection, handle) => {
|
|
@@ -918,25 +944,101 @@ var wrapInConnectionClosure = async (connection, handle) => {
|
|
|
918
944
|
}
|
|
919
945
|
};
|
|
920
946
|
var transactionFactoryWithNewConnection = (connect) => ({
|
|
921
|
-
transaction: () => {
|
|
947
|
+
transaction: (options) => {
|
|
922
948
|
const connection = connect();
|
|
923
|
-
const transaction = connection.transaction();
|
|
949
|
+
const transaction = connection.transaction(options);
|
|
924
950
|
return {
|
|
925
951
|
...transaction,
|
|
926
952
|
commit: () => wrapInConnectionClosure(connection, () => transaction.commit()),
|
|
927
953
|
rollback: () => wrapInConnectionClosure(connection, () => transaction.rollback())
|
|
928
954
|
};
|
|
929
955
|
},
|
|
930
|
-
withTransaction: (handle) => {
|
|
956
|
+
withTransaction: (handle, options) => {
|
|
931
957
|
const connection = connect();
|
|
932
958
|
return wrapInConnectionClosure(
|
|
933
959
|
connection,
|
|
934
|
-
() => connection.withTransaction(handle)
|
|
960
|
+
() => connection.withTransaction(handle, options)
|
|
935
961
|
);
|
|
936
962
|
}
|
|
937
963
|
});
|
|
964
|
+
var transactionFactoryWithAmbientConnection = (connect) => ({
|
|
965
|
+
transaction: (options) => {
|
|
966
|
+
const connection = connect();
|
|
967
|
+
const transaction = connection.transaction(options);
|
|
968
|
+
return {
|
|
969
|
+
...transaction,
|
|
970
|
+
commit: () => transaction.commit(),
|
|
971
|
+
rollback: () => transaction.rollback()
|
|
972
|
+
};
|
|
973
|
+
},
|
|
974
|
+
withTransaction: (handle, options) => {
|
|
975
|
+
const connection = connect();
|
|
976
|
+
return connection.withTransaction(handle, options);
|
|
977
|
+
}
|
|
978
|
+
});
|
|
938
979
|
|
|
939
980
|
// src/core/connections/connection.ts
|
|
981
|
+
var createAmbientConnection = (options) => {
|
|
982
|
+
const { driverType, client, executor, initTransaction } = options;
|
|
983
|
+
const clientPromise = Promise.resolve(client);
|
|
984
|
+
const closePromise = Promise.resolve();
|
|
985
|
+
const open = () => clientPromise;
|
|
986
|
+
const close = () => closePromise;
|
|
987
|
+
const connection = {
|
|
988
|
+
driverType,
|
|
989
|
+
open,
|
|
990
|
+
close,
|
|
991
|
+
...transactionFactoryWithDbClient(
|
|
992
|
+
open,
|
|
993
|
+
initTransaction(() => typedConnection)
|
|
994
|
+
),
|
|
995
|
+
execute: sqlExecutor(executor(), { connect: open })
|
|
996
|
+
};
|
|
997
|
+
const typedConnection = connection;
|
|
998
|
+
return typedConnection;
|
|
999
|
+
};
|
|
1000
|
+
var createSingletonConnection = (options) => {
|
|
1001
|
+
const { driverType, connect, close, initTransaction, executor } = options;
|
|
1002
|
+
let client = null;
|
|
1003
|
+
let connectPromise = null;
|
|
1004
|
+
const getClient = async () => {
|
|
1005
|
+
if (client) return client;
|
|
1006
|
+
if (!connectPromise) {
|
|
1007
|
+
connectPromise = connect().then((c) => {
|
|
1008
|
+
client = c;
|
|
1009
|
+
return c;
|
|
1010
|
+
});
|
|
1011
|
+
}
|
|
1012
|
+
return connectPromise;
|
|
1013
|
+
};
|
|
1014
|
+
const connection = {
|
|
1015
|
+
driverType,
|
|
1016
|
+
open: getClient,
|
|
1017
|
+
close: () => client ? close(client) : Promise.resolve(),
|
|
1018
|
+
...transactionFactoryWithDbClient(
|
|
1019
|
+
getClient,
|
|
1020
|
+
initTransaction(() => typedConnection)
|
|
1021
|
+
),
|
|
1022
|
+
execute: sqlExecutor(executor(), { connect: getClient })
|
|
1023
|
+
};
|
|
1024
|
+
const typedConnection = connection;
|
|
1025
|
+
return typedConnection;
|
|
1026
|
+
};
|
|
1027
|
+
var createTransientConnection = (options) => {
|
|
1028
|
+
const { driverType, open, close, initTransaction, executor } = options;
|
|
1029
|
+
const connection = {
|
|
1030
|
+
driverType,
|
|
1031
|
+
open,
|
|
1032
|
+
close,
|
|
1033
|
+
...transactionFactoryWithDbClient(
|
|
1034
|
+
open,
|
|
1035
|
+
initTransaction(() => typedConnection)
|
|
1036
|
+
),
|
|
1037
|
+
execute: sqlExecutor(executor(), { connect: open })
|
|
1038
|
+
};
|
|
1039
|
+
const typedConnection = connection;
|
|
1040
|
+
return typedConnection;
|
|
1041
|
+
};
|
|
940
1042
|
var createConnection = (options) => {
|
|
941
1043
|
const { driverType, connect, close, initTransaction, executor } = options;
|
|
942
1044
|
let client = null;
|
|
@@ -966,6 +1068,52 @@ var createConnection = (options) => {
|
|
|
966
1068
|
};
|
|
967
1069
|
|
|
968
1070
|
// src/core/connections/pool.ts
|
|
1071
|
+
var createAmbientConnectionPool = (options) => {
|
|
1072
|
+
const { driverType, connection } = options;
|
|
1073
|
+
return createConnectionPool({
|
|
1074
|
+
driverType,
|
|
1075
|
+
getConnection: () => connection,
|
|
1076
|
+
execute: connection.execute,
|
|
1077
|
+
transaction: (options2) => connection.transaction(options2),
|
|
1078
|
+
withTransaction: (handle, options2) => connection.withTransaction(handle, options2)
|
|
1079
|
+
});
|
|
1080
|
+
};
|
|
1081
|
+
var createSingletonConnectionPool = (options) => {
|
|
1082
|
+
const { driverType, getConnection } = options;
|
|
1083
|
+
let connection = null;
|
|
1084
|
+
const getExistingOrNewConnection = () => _nullishCoalesce(connection, () => ( (connection = getConnection())));
|
|
1085
|
+
const getExistingOrNewConnectionAsync = () => Promise.resolve(getExistingOrNewConnection());
|
|
1086
|
+
const result = {
|
|
1087
|
+
driverType,
|
|
1088
|
+
connection: getExistingOrNewConnectionAsync,
|
|
1089
|
+
execute: sqlExecutorInAmbientConnection({
|
|
1090
|
+
driverType,
|
|
1091
|
+
connection: getExistingOrNewConnectionAsync
|
|
1092
|
+
}),
|
|
1093
|
+
withConnection: (handle) => executeInAmbientConnection(handle, {
|
|
1094
|
+
connection: getExistingOrNewConnectionAsync
|
|
1095
|
+
}),
|
|
1096
|
+
...transactionFactoryWithAmbientConnection(getExistingOrNewConnection),
|
|
1097
|
+
close: () => {
|
|
1098
|
+
return connection !== null ? connection.close() : Promise.resolve();
|
|
1099
|
+
}
|
|
1100
|
+
};
|
|
1101
|
+
return result;
|
|
1102
|
+
};
|
|
1103
|
+
var createSingletonClientPool = (options) => {
|
|
1104
|
+
const { driverType, dbClient } = options;
|
|
1105
|
+
return createSingletonConnectionPool({
|
|
1106
|
+
getConnection: () => options.connectionFactory({ dbClient }),
|
|
1107
|
+
driverType
|
|
1108
|
+
});
|
|
1109
|
+
};
|
|
1110
|
+
var createAlwaysNewConnectionPool = (options) => {
|
|
1111
|
+
const { driverType, getConnection, connectionOptions } = options;
|
|
1112
|
+
return createConnectionPool({
|
|
1113
|
+
driverType,
|
|
1114
|
+
getConnection: () => connectionOptions ? getConnection(connectionOptions) : getConnection()
|
|
1115
|
+
});
|
|
1116
|
+
};
|
|
969
1117
|
var createConnectionPool = (pool) => {
|
|
970
1118
|
const { driverType, getConnection } = pool;
|
|
971
1119
|
const connection = "connection" in pool ? pool.connection : () => Promise.resolve(getConnection());
|
|
@@ -1471,8 +1619,18 @@ var LogStyle = {
|
|
|
1471
1619
|
RAW: "RAW",
|
|
1472
1620
|
PRETTY: "PRETTY"
|
|
1473
1621
|
};
|
|
1622
|
+
var getEnvVariable = (name) => {
|
|
1623
|
+
try {
|
|
1624
|
+
if (typeof process !== "undefined" && process.env) {
|
|
1625
|
+
return process.env[name];
|
|
1626
|
+
}
|
|
1627
|
+
return void 0;
|
|
1628
|
+
} catch (e3) {
|
|
1629
|
+
return void 0;
|
|
1630
|
+
}
|
|
1631
|
+
};
|
|
1474
1632
|
var shouldLog = (logLevel) => {
|
|
1475
|
-
const definedLogLevel = _nullishCoalesce(
|
|
1633
|
+
const definedLogLevel = _nullishCoalesce(getEnvVariable("DUMBO_LOG_LEVEL"), () => ( LogLevel.DISABLED));
|
|
1476
1634
|
if (definedLogLevel === LogLevel.ERROR && logLevel === LogLevel.ERROR)
|
|
1477
1635
|
return true;
|
|
1478
1636
|
if (definedLogLevel === LogLevel.WARN && [LogLevel.ERROR, LogLevel.WARN].includes(logLevel))
|
|
@@ -1519,7 +1677,7 @@ var recordTraceEvent = (logLevel, eventName, attributes) => {
|
|
|
1519
1677
|
};
|
|
1520
1678
|
const record = getTraceEventRecorder(
|
|
1521
1679
|
logLevel,
|
|
1522
|
-
_nullishCoalesce(
|
|
1680
|
+
_nullishCoalesce(getEnvVariable("DUMBO_LOG_STYLE"), () => ( "RAW"))
|
|
1523
1681
|
);
|
|
1524
1682
|
record(event);
|
|
1525
1683
|
};
|
|
@@ -1685,6 +1843,12 @@ SQL.columnN = Object.assign(dumboSchema.column, {
|
|
|
1685
1843
|
});
|
|
1686
1844
|
|
|
1687
1845
|
// src/core/drivers/databaseDriver.ts
|
|
1846
|
+
var canHandleDriverWithConnectionString = (driver, tryParseConnectionString) => (options) => {
|
|
1847
|
+
if ("driverType" in options) return options.driverType === driver;
|
|
1848
|
+
if ("connectionString" in options && typeof options.connectionString === "string")
|
|
1849
|
+
return tryParseConnectionString(options.connectionString) !== null;
|
|
1850
|
+
return false;
|
|
1851
|
+
};
|
|
1688
1852
|
var DumboDatabaseDriverRegistry = () => {
|
|
1689
1853
|
const drivers = /* @__PURE__ */ new Map();
|
|
1690
1854
|
const register = (driverType, plugin) => {
|
|
@@ -1694,11 +1858,8 @@ var DumboDatabaseDriverRegistry = () => {
|
|
|
1694
1858
|
}
|
|
1695
1859
|
drivers.set(driverType, plugin);
|
|
1696
1860
|
};
|
|
1697
|
-
const getDriver = (
|
|
1698
|
-
|
|
1699
|
-
connectionString
|
|
1700
|
-
}) => driverType ? drivers.get(driverType) : [...drivers.values()].find(
|
|
1701
|
-
(d) => typeof d !== "function" && d.tryParseConnectionString(connectionString)
|
|
1861
|
+
const getDriver = (options) => options.driverType ? drivers.get(options.driverType) : [...drivers.values()].find(
|
|
1862
|
+
(d) => typeof d !== "function" && d.canHandle(options)
|
|
1702
1863
|
);
|
|
1703
1864
|
const tryResolve = async (options) => {
|
|
1704
1865
|
const driver = getDriver(options);
|
|
@@ -1845,5 +2006,16 @@ var dumboDatabaseDriverRegistry = globalThis.dumboDatabaseDriverRegistry = _null
|
|
|
1845
2006
|
|
|
1846
2007
|
|
|
1847
2008
|
|
|
1848
|
-
|
|
1849
|
-
|
|
2009
|
+
|
|
2010
|
+
|
|
2011
|
+
|
|
2012
|
+
|
|
2013
|
+
|
|
2014
|
+
|
|
2015
|
+
|
|
2016
|
+
|
|
2017
|
+
|
|
2018
|
+
|
|
2019
|
+
|
|
2020
|
+
exports.canHandleDriverWithConnectionString = canHandleDriverWithConnectionString; exports.DumboDatabaseDriverRegistry = DumboDatabaseDriverRegistry; exports.dumboDatabaseDriverRegistry = dumboDatabaseDriverRegistry; exports.toDatabaseDriverType = toDatabaseDriverType; exports.fromDatabaseDriverType = fromDatabaseDriverType; exports.getDatabaseDriverName = getDatabaseDriverName; exports.getDatabaseType = getDatabaseType; exports.composeJSONReplacers = composeJSONReplacers; exports.composeJSONRevivers = composeJSONRevivers; exports.JSONReplacer = JSONReplacer; exports.JSONReviver = JSONReviver; exports.JSONReplacers = JSONReplacers; exports.JSONRevivers = JSONRevivers; exports.jsonSerializer = jsonSerializer; exports.JSONSerializer = JSONSerializer; exports.RawJSONSerializer = RawJSONSerializer; exports.ParametrizedSQLBuilder = ParametrizedSQLBuilder; exports.SQLToken = SQLToken; exports.SQLIdentifier = SQLIdentifier; exports.SQLPlain = SQLPlain; exports.SQLLiteral = SQLLiteral; exports.SQLArray = SQLArray; exports.SQLIn = SQLIn; exports.ColumnTypeToken = ColumnTypeToken; exports.SerialToken = SerialToken; exports.BigSerialToken = BigSerialToken; exports.IntegerToken = IntegerToken; exports.BigIntegerToken = BigIntegerToken; exports.JSONBToken = JSONBToken; exports.TimestampToken = TimestampToken; exports.TimestamptzToken = TimestamptzToken; exports.VarcharToken = VarcharToken; exports.AutoIncrementSQLColumnToken = AutoIncrementSQLColumnToken; exports.SQLColumnTypeTokens = SQLColumnTypeTokens; exports.SQLColumnTypeTokensFactory = SQLColumnTypeTokensFactory; exports.SQLColumnToken = SQLColumnToken; exports.SQLProcessor = SQLProcessor; exports.ExpandArrayProcessor = ExpandArrayProcessor; exports.ExpandSQLInProcessor = ExpandSQLInProcessor; exports.FormatIdentifierProcessor = FormatIdentifierProcessor; exports.MapLiteralProcessor = MapLiteralProcessor; exports.SQLProcessorsRegistry = SQLProcessorsRegistry; exports.mapDefaultSQLColumnProcessors = mapDefaultSQLColumnProcessors; exports.defaultProcessorsRegistry = defaultProcessorsRegistry; exports.TokenizedSQL = TokenizedSQL; exports.isTokenizedSQL = isTokenizedSQL; exports.SQL = SQL; exports.isSQL = isSQL; exports.ansiSqlReservedMap = ansiSqlReservedMap; exports.ANSISQLParamPlaceholder = ANSISQLParamPlaceholder; exports.ANSISQLIdentifierQuote = ANSISQLIdentifierQuote; exports.mapANSISQLParamPlaceholder = mapANSISQLParamPlaceholder; exports.mapSQLIdentifier = mapSQLIdentifier; exports.DefaultMapSQLParamValueOptions = DefaultMapSQLParamValueOptions; exports.SQLValueMapper = SQLValueMapper; exports.mapSQLParamValue = mapSQLParamValue; exports.SQLFormatter = SQLFormatter2; exports.registerFormatter = registerFormatter; exports.getFormatter = getFormatter; exports.formatSQL = formatSQL; exports.describeSQL = describeSQL; exports.mapColumnToJSON = mapColumnToJSON; exports.mapColumnToBigint = mapColumnToBigint; exports.mapSQLQueryResult = mapSQLQueryResult; exports.sqlExecutor = sqlExecutor; exports.sqlExecutorInNewConnection = sqlExecutorInNewConnection; exports.sqlExecutorInAmbientConnection = sqlExecutorInAmbientConnection; exports.executeInNewDbClient = executeInNewDbClient; exports.executeInNewConnection = executeInNewConnection; exports.executeInAmbientConnection = executeInAmbientConnection; exports.executeInTransaction = executeInTransaction; exports.transactionFactoryWithDbClient = transactionFactoryWithDbClient; exports.transactionFactoryWithNewConnection = transactionFactoryWithNewConnection; exports.transactionFactoryWithAmbientConnection = transactionFactoryWithAmbientConnection; exports.createAmbientConnection = createAmbientConnection; exports.createSingletonConnection = createSingletonConnection; exports.createTransientConnection = createTransientConnection; exports.createConnection = createConnection; exports.createAmbientConnectionPool = createAmbientConnectionPool; exports.createSingletonConnectionPool = createSingletonConnectionPool; exports.createSingletonClientPool = createSingletonClientPool; exports.createAlwaysNewConnectionPool = createAlwaysNewConnectionPool; exports.createConnectionPool = createConnectionPool; exports.sqlMigration = sqlMigration; exports.schemaComponent = schemaComponent; exports.isSchemaComponentOfType = isSchemaComponentOfType; exports.filterSchemaComponentsOfType = filterSchemaComponentsOfType; exports.mapSchemaComponentsOfType = mapSchemaComponentsOfType; exports.findSchemaComponentsOfType = findSchemaComponentsOfType; exports.ColumnURNType = ColumnURNType; exports.ColumnURN = ColumnURN; exports.columnSchemaComponent = columnSchemaComponent; exports.IndexURNType = IndexURNType; exports.IndexURN = IndexURN; exports.indexSchemaComponent = indexSchemaComponent; exports.TableURNType = TableURNType; exports.TableURN = TableURN; exports.tableSchemaComponent = tableSchemaComponent; exports.DatabaseSchemaURNType = DatabaseSchemaURNType; exports.DatabaseSchemaURN = DatabaseSchemaURN; exports.databaseSchemaSchemaComponent = databaseSchemaSchemaComponent; exports.DatabaseURNType = DatabaseURNType; exports.DatabaseURN = DatabaseURN; exports.databaseSchemaComponent = databaseSchemaComponent; exports.relationship = relationship; exports.schemaComponentURN = schemaComponentURN; exports.dumboSchema = dumboSchema; exports.defaultDatabaseLockOptions = defaultDatabaseLockOptions; exports.NoDatabaseLock = NoDatabaseLock; exports.mapRows = mapRows; exports.toCamelCase = toCamelCase; exports.mapToCamelCase = mapToCamelCase; exports.firstOrNull = firstOrNull; exports.first = first; exports.singleOrNull = singleOrNull; exports.single = single; exports.count = count; exports.exists = exists; exports.color = color; exports.prettyJson = prettyJson; exports.tracer = tracer; exports.LogLevel = LogLevel; exports.LogStyle = LogStyle; exports.migrationTableSchemaComponent = migrationTableSchemaComponent; exports.SchemaComponentMigrator = SchemaComponentMigrator; exports.MIGRATIONS_LOCK_ID = MIGRATIONS_LOCK_ID; exports.registerDefaultMigratorOptions = registerDefaultMigratorOptions; exports.getDefaultMigratorOptionsFromRegistry = getDefaultMigratorOptionsFromRegistry; exports.runSQLMigrations = runSQLMigrations; exports.combineMigrations = combineMigrations;
|
|
2021
|
+
//# sourceMappingURL=chunk-7I7IBVWL.cjs.map
|