Mark Lummus
Mark Lummus

Reputation: 750

sailsjs: how do I reverse engineer an existing db into sails/waterline models?

I am a SailsJS noob.
I have an existing database (postgres) that I want to turn into models for SailsJS/Waterline. is there a method/tool/utility to do this automatically like the datasource.discoverSchema() method in LoopBack?

thanks,
Mark

Upvotes: 1

Views: 519

Answers (2)

chip
chip

Reputation: 3279

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

node-sails-model-reverser

Produces static Sails / Waterline models by reverse engineering existing databases

Upvotes: 0

Meeker
Meeker

Reputation: 5979

No. Currently this is not a method in sails/waterline.

Upvotes: 1

Related Questions