Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cher-db

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cher-db

Data layer for Cher

  • 0.5.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
decreased by-33.33%
Maintainers
1
Weekly downloads
 
Created
Source

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.

FAQs

Package last updated on 17 May 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc