UNPKG

@userlab/dx

Version:

Build efficient GraphQL backend

34 lines (33 loc) 761 B
interface DxConfig { /** * The host of the relational database. * * @default 'localhost' */ host?: string; /** * The port of the relational database. */ port?: number; /** * The name of the database */ database?: string; /** * The username which is used to authenticate against the database. */ user?: string; /** * The password which is used to authenticate against the database. */ password?: string; /** * A function that gets executed while running the query to log the sql. */ logging?: boolean | ((sql: string, timing?: number) => void); } export default class Dx { config?: DxConfig; constructor(config: DxConfig); } export {};