UNPKG

@directus/api

Version:

Directus is a real-time API and App dashboard for managing SQL database content

14 lines (13 loc) 402 B
import type { Knex } from 'knex'; import type { Driver } from '../../types/index.js'; export type Credentials = { filename?: string; host?: string; port?: number; database?: string; user?: string; password?: string; ssl?: boolean; options__encrypt?: boolean; }; export default function createDBConnection(client: Driver, credentials: Credentials): Knex<any, unknown[]>;