UNPKG

create-nuxtus

Version:

npx command for generating a new Nuxtus boilerplate website.

19 lines (15 loc) 546 B
// https://github.com/directus/directus/blob/31a217595c3b9134bc334f300992027d3bfdf09e/api/src/cli/utils/drivers.ts export const drivers = { pg: 'PostgreSQL / Redshift', cockroachdb: 'CockroachDB (Beta)', mysql: 'MySQL / MariaDB / Aurora', sqlite3: 'SQLite', mssql: 'Microsoft SQL Server', oracledb: 'Oracle Database', }; export function getDriverForClient(client: string): keyof typeof drivers | null { for (const [key, value] of Object.entries(drivers)) { if (value === client) return key as keyof typeof drivers; } return null; }