Skip to content

Instantly share code, notes, and snippets.

@davidpadbury
Created February 4, 2016 16:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davidpadbury/d986005eff6a383efeb0 to your computer and use it in GitHub Desktop.
Save davidpadbury/d986005eff6a383efeb0 to your computer and use it in GitHub Desktop.
const knex = require('knex')({
client: 'mysql',
connection: { ... }
})
const result = await sql(knex)`select whatever from somewhere where something = ${something} and something-else = ${somethingElse}`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment