简体   繁体   中英

Sails DB tables to models export

I was wondering if there is any way to export the DB tables to Sails Models structure, so i can make a instant replica of a current DB in sails and start using the DB with sails.

Its kinds of reverse migration. (DB -> SAILS)

Yes as of only just a couple of weeks now a module has been created to do this for you. At present it is limited to only a couple of database types eg postgresql and mySql however the publisher seems to be actively working on new database conversions also.

To find all the info check here:

https://www.npmjs.com/package/sails-inverse-model

I have used it to convert 53 postgresql tables to sails models.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM