How to use the loopback-datasource-juggler.Connector 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
/*!
 * Dependencies.
 */

var assert = require('assert')
  , loopback = require('../loopback')
  , debug = require('debug')
  , path = require('path')
  , request = require('browser-request')
  , Connector = require('loopback-datasource-juggler').Connector
  , util = require('util');

/*!
 * Export the ServerConnector class.
 */

module.exports = ServerConnector;

/*!
 * Create an instance of the connector with the given `settings`.
 */

function ServerConnector(settings, dataSource) {
  Connector.call(this, 'server', settings);
  this.settings = settings;
  this.dataSource = dataSource;