Answers for "how to log knex.raw query"

0

how to log knex.raw query

const query = `
SELECT * FROM users
WHERE users.id = :value1 AND users.email = :value2;
`

const params = {value1:userId, value2:userEmail}

console.log(db.raw(query, params).toString())
Posted by: Guest on July-21-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language