function replaceTableNames(sql, identifiers, sequelize) {
	const {queryInterface} = sequelize;
	_.forIn(identifiers, (model, identifier) => {
		const tableName = model.getTableName();
		sql = sql.replace(
			new RegExp(`\\*${identifier}(?![a-zA-Z0-9_])`, 'g'),
			tableName.schema ? tableName.toString() : queryInterface.quoteIdentifier(tableName)
		);
	});
	return sql;
}
// Replace identifier with model's full table name taking schema into account
Replace identifier with model's full table name taking schema into account
Replace identifier with model ' s full table name taking schema into account
function replaceTableNames(sql, identifiers, sequelize) {
	const {queryInterface} = sequelize;
	_.forIn(identifiers, (model, identifier) => {
		const tableName = model.getTableName();
		sql = sql.replace(
			new RegExp(`\\*${identifier}(?![a-zA-Z0-9_])`, 'g'),
			tableName.schema ? tableName.toString() : queryInterface.quoteIdentifier(tableName)
		);
	});
	return sql;
}
function replaceTableNames ( sql , identifiers , sequelize ) { const { queryInterface } = sequelize ; _ . forIn ( identifiers , ( model , identifier ) => { const tableName = model . getTableName ( ) ; sql = sql . replace ( new RegExp ( ` \\ ${ identifier } ` , 'g' ) , tableName . schema ? tableName . toString ( ) : queryInterface . quoteIdentifier ( tableName ) ) ; } ) ; return sql ; }
Replace identifier with model's full table name taking schema into account
Replace identifier with model ' s full table name taking schema into account