text: "use strict";
  Object.defineProperty(exports, "__esModule", { value: true });
  exports.UserloopDataSource = void 0;
  const tslib_1 = require("tslib");
  const core_1 = require("@loopback/core");
  const repository_1 = require("@loopback/repository");
  const config = {
      name: 'userloop',
      connector: 'mysql',
      url: '',
      host: '127.0.0.1',
      port: 3306,
      user: 'root',
      password: '',
      database: 'userloop'
  };
  // Observe application's life cycle to disconnect the datasource when
  // application is stopped. This allows the application to be shut down
  // gracefully. The `stop()` method is inherited from `juggler.DataSource`.
  // Learn more at https://loopback.io/doc/en/lb4/Life-cycle.html
  let UserloopDataSource = class UserloopDataSource extends repository_1.juggler.DataSource {
      constructor(dsConfig = config) {
          super(dsConfig);
      }
  };
  UserloopDataSource.dataSourceName = 'userloop';
  UserloopDataSource.defaultConfig = config;
  UserloopDataSource = tslib_1.__decorate([
      core_1.lifeCycleObserver('datasource'),
      tslib_1.__param(0, core_1.inject('datasources.config.userloop', { optional: true })),
      tslib_1.__metadata("design:paramtypes", [Object])
  ], UserloopDataSource);
  exports.UserloopDataSource = UserloopDataSource;
  //# sourceMappingURL=userloop.datasource.js.map