5.0.0 • Published 7 months ago

bookbrainz-data v5.0.0

Weekly downloads
11
License
GPL-2.0+
Repository
github
Last release
7 months ago

BookBrainz Node ORM

npm Build 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.

Documentation

The auto-generated documentation is served alongside this repository on Github Pages: https://metabrainz.github.io/bookbrainz-data-js/

Tests

A suite of simple tests is provided in the tests directory, using the Mocha and Chai libraries.

Copy the file test/bookshelf.js.example to test/bookshelf.js and modify it according to your local postgres setup. For instructions on setting up the postgres test database, refer to the testing section of the bookbrainz-site installation docs.

The command for running the tests, following dependency installation, is the standard:

yarn test
- or -
npm test

This will also provide style checking and coverage information.

5.0.0

7 months ago

4.0.1

11 months ago

4.1.1

11 months ago

4.0.0

1 year ago

3.1.0

1 year ago

3.0.0

2 years ago

2.15.0

2 years ago

2.14.1

2 years ago

2.15.1

2 years ago

2.14.0

2 years ago

2.13.0

2 years ago

2.13.1

2 years ago

2.12.0

3 years ago

2.11.0

3 years ago

2.10.0

3 years ago

2.9.0

3 years ago

2.8.0

3 years ago

2.7.1

4 years ago

2.7.0

4 years ago

2.6.2

4 years ago

2.6.1

4 years ago

2.6.0

4 years ago

2.5.1

4 years ago

2.5.0

4 years ago

2.4.0

5 years ago

2.3.0

5 years ago

2.2.1

5 years ago

2.2.0

5 years ago

2.1.1

5 years ago

2.1.0

5 years ago

2.0.0

5 years ago

1.2.0

5 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago