I do it with code like this:
sequelize.query("UPDATE users SET flags = flags | (1 << 2) WHERE id = 12").spread(function(results, metadata) {
// Results will be an empty array and metadata will contain the number of affected rows.
})
But could I execute query like this using sequelize query interface?
via Dmitro
No comments:
Post a Comment