2

I want to view the SQL like below, but WITHOUT executing.
How can I see the SQL generated by Sequelize.js?

*Note: Question is clearly different.

Damien Golding
  • 1,003
  • 4
  • 15
  • 28
  • Possible duplicate of [How can I see the SQL generated by Sequelize.js?](https://stackoverflow.com/questions/21427501/how-can-i-see-the-sql-generated-by-sequelize-js) – Marcia Ong Oct 08 '18 at 03:28
  • 2
    The question may be similar but it is CLEARLY different. If I have somehow missed the answer in the the related page please use a comment. When did Stackexchange become a bureaucratic institution. – Damien Golding Oct 08 '18 at 08:28
  • 2
    @DamienGolding As far as I know, Sequelize does not offer a way to _preview_ the SQL statement of an ORM method. It does allow you to see the generated SQL after an ORM method has finished through the `logging` prop in the DB config. (More info https://github.com/sequelize/sequelize/issues/2325) – mcranston18 Oct 08 '18 at 16:48
  • @mcranston18 Thanks. Seems like that link wants what I am looking for but is yet to be made fully. – Damien Golding Oct 09 '18 at 02:01

0 Answers0