Sequelize: Execute multiple raw queries

Created on 21 Nov 2014  路  1Comment  路  Source: sequelize/sequelize

Help me, the sequelize can't execute multiple queries separated by semicolon using

sequelize.query('your query', [, callee], [, options], [, replacements])

Most helpful comment

If you are on mysql, you can pass multipleStatements to the sequelize constructor like this:

new Sequelize(..., {
  dialectOptions: {
    multipleStatements: true
  }
})

>All comments

If you are on mysql, you can pass multipleStatements to the sequelize constructor like this:

new Sequelize(..., {
  dialectOptions: {
    multipleStatements: true
  }
})
Was this page helpful?
0 / 5 - 0 ratings

Related issues

mwain picture mwain  路  3Comments

wmulligan picture wmulligan  路  3Comments

maplesap picture maplesap  路  3Comments

mickhansen picture mickhansen  路  3Comments

kasparsklavins picture kasparsklavins  路  3Comments