UNPKG

sqlocal

Version:

SQLocal makes it easy to run SQLite3 in the browser, backed by the origin private file system.

12 lines 371 B
import { sqlTag } from './sql-tag.js'; export function normalizeSql(maybeQueryTemplate, params) { let statement; if (typeof maybeQueryTemplate === 'string') { statement = { sql: maybeQueryTemplate, params }; } else { statement = sqlTag(maybeQueryTemplate, ...params); } return statement; } //# sourceMappingURL=normalize-sql.js.map