mirror of
https://github.com/swc-project/swc.git
synced 2024-12-21 12:41:54 +03:00
bbaf619f63
swc_bundler: - [x] Fix wrapped esms. (denoland/deno#9307) - [x] Make test secure.
34 lines
696 B
TypeScript
34 lines
696 B
TypeScript
// Loaded from https://raw.githubusercontent.com/denjucks/dex/master/lib/constants.js
|
|
|
|
|
|
// The client names we'll allow in the `{name: lib}` pairing.
|
|
export const CLIENT_ALIASES = Object.freeze({
|
|
pg: 'postgres',
|
|
postgresql: 'postgres',
|
|
sqlite: 'sqlite3',
|
|
});
|
|
|
|
export const SUPPORTED_CLIENTS = Object.freeze(
|
|
[
|
|
'mssql',
|
|
'mysql',
|
|
'mysql2',
|
|
'oracledb',
|
|
'postgres',
|
|
'redshift',
|
|
'sqlite3',
|
|
].concat(Object.keys(CLIENT_ALIASES))
|
|
);
|
|
|
|
export const POOL_CONFIG_OPTIONS = Object.freeze([
|
|
'maxWaitingClients',
|
|
'testOnBorrow',
|
|
'fifo',
|
|
'priorityRange',
|
|
'autostart',
|
|
'evictionRunIntervalMillis',
|
|
'numTestsPerRun',
|
|
'softIdleTimeoutMillis',
|
|
'Promise',
|
|
]);
|