knex
Version:
A batteries-included SQL query & schema builder for Postgres, MySQL and SQLite3 and the Browser
18 lines (15 loc) • 682 B
JavaScript
;
const _require = require('lodash'),
keys = _require.keys; // The client names we'll allow in the `{name: lib}` pairing.
const CLIENT_ALIASES = Object.freeze({
pg: 'postgres',
postgresql: 'postgres',
sqlite: 'sqlite3'
});
const SUPPORTED_CLIENTS = Object.freeze(['mssql', 'mysql', 'mysql2', 'oracledb', 'postgres', 'redshift', 'sqlite3'].concat(keys(CLIENT_ALIASES)));
const POOL_CONFIG_OPTIONS = Object.freeze(['maxWaitingClients', 'testOnBorrow', 'fifo', 'priorityRange', 'autostart', 'evictionRunIntervalMillis', 'numTestsPerRun', 'softIdleTimeoutMillis', 'Promise']);
module.exports = {
CLIENT_ALIASES,
SUPPORTED_CLIENTS,
POOL_CONFIG_OPTIONS
};