How to use the function in loopback-datasource-juggler

To help you get started, we’ve selected a few loopback-datasource-juggler 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 strongloop / loopback / lib / connectors / server.js View on Github external
function ServerConnector(settings, dataSource) {, 'server', settings);
  this.settings = settings;
  this.dataSource = dataSource;
  dataSource.DataAccessObject = dataSource.constructor.DataAccessObject;
  settings.base = settings.base || '/';
  dataSource.connect = this.connect;
util.inherits(ServerConnector, Connector);