Runkit
Runkit
home page
user forum
new notebook
clone notebook
download notebook
support & documentation
log in
sign up
new notebook
help & feedback
clone this notebook
download this notebook
Sign In
Sign Up
RunKit + npm: knex
node v17.9.1
endpoint
share
tweet
const Knex = require('knex'); const knexPg = Knex({ client: 'pg', }); (async function run() { console.log( knexPg.select("*").orderBy("foo", "desc", "first").toSQL().sql, knexPg.select("*").orderBy("foo", "asc", "first").toSQL().sql, knexPg.select("*").orderBy("foo", "desc", "last").toSQL().sql, knexPg.select("*").orderBy("foo", "asc", "last").toSQL().sql ); })();
Created from: https://npm.runkit.com/knex
Loading…
Clone and edit this document