skitter
v0.2.1
Published
Progressive ORM for interacting with CockroachDB.
Downloads
16
Readme
Skitter
Progressive ORM for interacting with CockroachDB.
ALPHA
This package is in alpha. However, active progress is being made daily and everything in the public API (below) is well tested / unlikely to change. Be cautious of automatically upgrading to minor releases until v1; check release notes on these releases post v0.2.0.
Install
npm install skitter
Usage
Setup environment variables...
DB_USER= # database user
DB_PASSWORD= # database password
DB_DATABASE= # database to use
DB_HOST= # database host
DB_PORT= # database port
DB_MAX= # max connections in pool
DB_TIMEOUT= # timeout in milliseconds for idle clients
And go.
const skitter = require('skitter')
skitter.query('<SQL STATEMENT>').run().then(console.log)
Data Types
skitter.Types.<type> // Returns SQL representation of the type.
License
MIT