dresende / node-orm2

Object Relational Mapping
http://github.com/dresende/node-orm2
MIT License
3.07k stars 376 forks source link

How to insert data in view in parallel with table in MySql #769

Open apmeena opened 7 years ago

apmeena commented 7 years ago

I am using Node-orm2 with MySql. All things are working fine but I am looking for an ORM feature through which I can also insert data in VIEW (MYSQL VIEW). Is there any function available? Or I need to go with model hooks (like afterSave) and manual query?

EDIT

My view doesn't contains all columns which original table have.

Thanks.