Permalink
Fetching contributors…
Cannot retrieve contributors at this time
14 lines (12 sloc) 255 Bytes

Expression Usage

db.query()
  .from('posts')
  .where(function (expr) {
    // `expr` here in an Expression object
    expr
     .eq('author_id', 1)    // WHERE author_id = 1
     .notEq('published', 1) // AND published != 1
  })
  .run();