_loadDialectModule(moduleName) {
    try {
      if (this.sequelize.config.dialectModulePath) {
        return require(this.sequelize.config.dialectModulePath);
      } else if (this.sequelize.config.dialectModule) {
        return this.sequelize.config.dialectModule;
      } else {
        return require(moduleName);
      }
    } catch (err) {
      if (err.code === 'MODULE_NOT_FOUND') {
        if (this.sequelize.config.dialectModulePath) {
          throw new Error(`Unable to find dialect at ${this.sequelize.config.dialectModulePath}`);
        } else {
          throw new Error(`Please install ${moduleName} package manually`);
        }
      }

      throw err;
    }
  }
/**
   * Try to load dialect module from various configured options.
   * Priority goes like dialectModulePath > dialectModule > require(default)
   *
   * @param {String} moduleName Name of dialect module to lookup
   *
   * @private
   * @returns {Object}
   */
Try to load dialect module from various configured options.
Priority goes like dialectModulePath > dialectModule > require(default)

@param {String} moduleName Name of dialect module to lookup

@private
@returns {Object}
Try to load dialect module from various configured options . Priority goes like dialectModulePath > dialectModule > require ( default ) @param { String } moduleName Name of dialect module to lookup @private @returns { Object }
_loadDialectModule(moduleName) {
    try {
      if (this.sequelize.config.dialectModulePath) {
        return require(this.sequelize.config.dialectModulePath);
      } else if (this.sequelize.config.dialectModule) {
        return this.sequelize.config.dialectModule;
      } else {
        return require(moduleName);
      }
    } catch (err) {
      if (err.code === 'MODULE_NOT_FOUND') {
        if (this.sequelize.config.dialectModulePath) {
          throw new Error(`Unable to find dialect at ${this.sequelize.config.dialectModulePath}`);
        } else {
          throw new Error(`Please install ${moduleName} package manually`);
        }
      }
      throw err;
    }
  }
_loadDialectModule ( moduleName ) { try { if ( this . sequelize . config . dialectModulePath ) { return require ( this . sequelize . config . dialectModulePath ) ; } else if ( this . sequelize . config . dialectModule ) { return this . sequelize . config . dialectModule ; } else { return require ( moduleName ) ; } } catch ( err ) { if ( err . code === 'MODULE_NOT_FOUND' ) { if ( this . sequelize . config . dialectModulePath ) { throw new Error ( ` ${ this . sequelize . config . dialectModulePath } ` ) ; } else { throw new Error ( ` ${ moduleName } ` ) ; } } throw err ; } }
Try to load dialect module from various configured options.
Try to load dialect module from various configured options .