How to change/specify database used during runtime with Sails.js

做~自己de王妃 提交于 2019-12-10 18:23:59

问题


Sail.js has ORM, I can make queries to databases. I want to make a frontend that uses AJAX to communicate with the backend. But I want the backend to query different databases based on an id/name given with the ajax query. And it would be good to be able to add/remove those same databases during runtime.

Is this possible with Sails.js? I can only find ways to have a static amount of DBs (declared in conf files).

来源:https://stackoverflow.com/questions/32797745/how-to-change-specify-database-used-during-runtime-with-sails-js

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!