Tagged template for building parameterized SQL queries
Parameters
_strings: TemplateStringsArray
..._values: unknown[]
Returns OperationNode
OperationNode representation of the query
Example
constid = 123 conststatus = 'active' constast = sql` SELECT * FROM todos WHERE id = ${id} AND status = ${status} ` // Converts to: "SELECT * FROM todos WHERE id = $1 AND status = $2" // with params: [123, 'active'] // Returns: OperationNode
Tagged template for building parameterized SQL queries