Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | 3x 131x 126x 5x | import { Sqlite3, SqlObj } from '../interfaces/Sqlite3.interfaces' export function toSqlParams (sql: Sqlite3.SqlType, params: any[] = []): SqlObj { if (typeof sql === 'string') { return { sql, params } } return { sql: sql.sql, params: sql.values } } |