can i use VIEW with sequelize ?
See original GitHub issueHi, I’m implementing a simple version system, and I have designed a draft EER diagram(part of it):

As this diagram tells, besides schema_core, there are also schema_content and schema_mock attached to schema_core, and each of them need to have a version whenever updated. schema_version is just a set of references to schema_content and schema_mock, and combine two versions into one “schema version”.
Now I want to use VIEW to get me the latest “schema version” and combine with schema_core.
Issue Analytics
- State:
- Created 9 years ago
- Comments:18 (3 by maintainers)
Top Results From Across the Web
sequelize-views-support - npm
Start using sequelize-views-support in your project by running ... There are 4 other projects in the npm registry using sequelize-views-support.
Read more >Model Basics | Sequelize
In this tutorial you will learn what models are in Sequelize and how to use them.
Read more >How To Use Sequelize with Node.js and MySQL - DigitalOcean
Sequelize has a powerful migration mechanism that can transform existing database schemas into new versions. Overall, Sequelize provides ...
Read more >Understanding Node.js Sequelize ORM Models - Section.io
This article will help you understand Sequelize models, from model definition to model usage. Sequelize works with all the SQL-based databases.
Read more >SQL (Sequelize) | NestJS - A progressive Node.js framework
... this technique contains a lot of overhead that you can avoid by using the dedicated, out-of-the-box @nestjs/sequelize package. To learn more, see...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
To whomever is struggling to read @KeyOnTech’s tutorials:
npm run startto auto create all the models and tablesnpx sequelize db:migratenow start your server again npm run start and your findAll should work great
hope this helps the next person or myself in the future
Note to future self… your awesome and its all gonna be worth it one day 😃
There is no way to create views on sequelize, but you can create the view manually and query it like a regular sequelize model.
So you use a raw query to create the view, and query the table using a regular sequelize model:
Just remember not to
.syncthe schema_content model