knexed
![MIT licensed](http://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)
Utilities for Knex library.
API
dataset helpers
knex('table').select()
.then(one)
.then(one.maybe)
.then(exists)
.then(exists.not)
.then(count)
.then(project('id'))
table helpers
var accounts = table(knex, 'accounts')
accounts().select()
accounts(trx).select()
accounts.as('alias').select()
accounts.as('alias', trx).select()
var create = method(knex, (trx, name) =>
{
return accounts(trx).insert({ name: name })
})
create(trx, 'Name')
create('Name')
create(method.NOTX, 'Name')
flow
We're providing built-in Flow type definitions.
license
MIT.
© Strider, 2016.