sailsjs:如何将现有数据库反向工程为 sails/waterline 模型?

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

我是 SailsJS 新手。
我有一个现有的数据库 (postgres),我想将其转换为 SailsJS/Waterline 的模型。是否有 method/tool/utility 像 LoopBack 中的 datasource.discoverSchema() 方法一样自动执行此操作?

谢谢,
马克

没有。目前这不是 sails/waterline 中的方法。

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

node-sails-model-reverser

通过对现有数据库进行逆向工程来生成静态 Sails/Waterline 模型