Skip to content
A JavaScript data access module for BookBrainz
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
flow-typed/npm
src
test
.babelrc
.codeclimate.yml
.editorconfig
.eslintignore
.eslintrc.js
.flowconfig
.gitignore
.jsinspectrc
.npmignore
.travis.yml
LICENSE
README.md
package-lock.json
package.json

README.md

BookBrainz Node ORM

npm Greenkeeper badge Build Status dependencies Status Coverage Status

bookbrainz-data-js provides a node package to allow manipulation of data in a BookBrainz database using a set of bookshelf.js models. The module is only for accessing data in an existing database - for schema creation, see the sql folder in bookbrainz-site.

Each model has its own source file in the "models" directory. These models can be accessed via index.js, which provides a function returning the models, taking an initialized bookshelf.js instance as a single parameter.

A suite of simple tests is provided in the tests directory - the command for running the tests, following dependency installation, is the standard:

npm test

This will also provide style checking and coverage information.

Please note, ES6 features are used within this codebase, and it has only been tested in Node 4.x. It may also work in Node 0.12.x, but not any earlier than that.

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.