This package has been deprecated

Author message:

No longer maintained

cher-db

0.5.2 • Public • Published

cher-db

The dafault database module for cher

Usage

const cherDb = require('cher-db');
 
cherDb(myDbUrl)
  .then((db) => {
    const models = db.models() // cher model manager
    const SocialContent = models.get('SocialContent')
    db.destroy() // destroys the db connection
  })

Tests

Create your test db and user

$ createdb foo_test
$ createuser foo_test

Create test/test.env with your DATABASE_URL configured

$ echo "DATABASE_URL=postgres://user:password@hostname:port/database" >> test/test.env

Run Tests

$ npm test

Profit.

Readme

Keywords

none

Package Sidebar

Install

npm i cher-db

Weekly Downloads

1

Version

0.5.2

License

MIT

Last publish

Collaborators

  • recursivefunk
  • istrategylabs