0.5.2 • Published 8 years ago

cher-db v0.5.2

Weekly downloads
3
License
MIT
Repository
github
Last release
8 years ago

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.

0.5.2

8 years ago

0.5.1

8 years ago

0.5.0

8 years ago

0.4.2

8 years ago

0.4.1

8 years ago

0.3.1

8 years ago

0.3.0

8 years ago

0.2.6

8 years ago

0.2.5

8 years ago

0.2.0

8 years ago

0.1.1

8 years ago

0.1.0

9 years ago