ivmarcos/sequelize-version

Raw query doesn't generate a version row.

Opened this issue · 1 comments

How can we keep track of rows that are created using a raw query

Hi @mjdavidson! This lib uses sequelize hooks (afterCreate, afterUpdate, afterDestroy, afterSave, afterBulkCreate) and raw queries are not supported. By using a raw query, sequelize can't know what is being persisted or changed. If you really need to use raw queries to persist something, you will either have to insert the changes using some logic on your server, or more deeply, using a trigger attached to your database, for example, if it provides. I'll put this information in readme ok.