Interface SidetrackDatabaseClient

Database client for sidetrack. This allows you to use whatever database library you want as long as you conform to this interface.

interface SidetrackDatabaseClient {
    execute: <ResultRow>(
        query: string,
        params?: unknown[],
    ) => Promise<{ rows: ResultRow[] }>;
}

Properties

Properties

execute: <ResultRow>(
    query: string,
    params?: unknown[],
) => Promise<{ rows: ResultRow[] }>