How to use the bookshelf/dialects/base/model.ModelBase function in bookshelf

To help you get started, we’ve selected a few bookshelf examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github valet-io / bookshelf-authorization / test / mocks / bookshelf.js View on Github external
module.exports = {
  Model: require('bookshelf/dialects/base/model').ModelBase,
  Collection: require('bookshelf/dialects/base/collection').CollectionBase,
  plugin: function (plugin) {
    plugin(this);
    return this;
  }
};
github valet-io / bookshelf-authorization / test / mocks / model.js View on Github external
var _ = require('lodash');

module.exports = require('../../lib/model')(require('bookshelf/dialects/base/model').ModelBase.extend());