mirror of
https://github.com/directus/directus.git
synced 2026-01-30 02:47:59 -05:00
14 lines
337 B
TypeScript
14 lines
337 B
TypeScript
export const drivers = {
|
|
sqlite3: 'SQLite',
|
|
mysql: 'MySQL (/ MariaDB / Aurora)',
|
|
pg: 'PostgreSQL (/ Amazon Redshift)',
|
|
oracledb: 'Oracle Database',
|
|
mssql: 'Microsoft SQL Server',
|
|
};
|
|
|
|
export function getDriverForClient(client: string) {
|
|
for (const [key, value] of Object.entries(drivers)) {
|
|
if (value === client) return key;
|
|
}
|
|
}
|