Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 1,000,000+ packages pre-installed, including qute-bookshelf-repository with all npm packages installed. Try it out:

var quteBookshelfRepository = require("qute-bookshelf-repository")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

qute-bookshelf-repository v0.0.2

A simple repository that manages a **`single`** [bookshelf-modelbase](https://github.com/bsiddiqui/bookshelf-modelbase) model which is in turn a [bookshelf model](http://bookshelfjs.org/). This repository provides many commonly used methods that are found in repository classes / objects This repository should be used as as abstraction layer between the [bookshelf model](http://bookshelfjs.org/) and services to prevent the bookshelf models from leaking into services (i.e. encourages loose coupling) This module should be extended / inherited to add additional functionality **`qute-bookshelf-repository`** will return JSON objects by default. This behaviour can be controlled by the **`bConvertResultToJson`** (defaults to **`true`**) variable that is passed to every method in the API . If **`bConvertResultToJson`** is set to **`false`**, the [bookshelf model](http://bookshelfjs.org/) will be returned.

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free