UNPKG

361 BTypeScriptView Raw
1import { ISqlite } from '../interfaces';
2/**
3 * Allows for using strings and `sql-template-strings`. Converts both to a
4 * format that's usable by the SQL methods
5 *
6 * @param sql A SQL string or `sql-template-strings` object
7 * @param params An array of parameters
8 */
9export declare function toSqlParams(sql: ISqlite.SqlType, params?: any[]): ISqlite.SqlObj;