{"action":"created","issue":{"url":"https://api.github.com/repos/koukuko/Rikka/issues/1","labels_url":"https://api.github.com/repos/koukuko/Rikka/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/koukuko/Rikka/issues/1/comments","events_url":"https://api.github.com/repos/koukuko/Rikka/issues/1/events","html_url":"https://github.com/koukuko/Rikka/issues/1","id":127578616,"number":1,"title":"有个关于sails的问题","user":{"login":"scgy5555","id":1642438,"avatar_url":"https://avatars.githubusercontent.com/u/1642438?v=3","gravatar_id":"","url":"https://api.github.com/users/scgy5555","html_url":"https://github.com/scgy5555","followers_url":"https://api.github.com/users/scgy5555/followers","following_url":"https://api.github.com/users/scgy5555/following{/other_user}","gists_url":"https://api.github.com/users/scgy5555/gists{/gist_id}","starred_url":"https://api.github.com/users/scgy5555/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scgy5555/subscriptions","organizations_url":"https://api.github.com/users/scgy5555/orgs","repos_url":"https://api.github.com/users/scgy5555/repos","events_url":"https://api.github.com/users/scgy5555/events{/privacy}","received_events_url":"https://api.github.com/users/scgy5555/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-20T01:06:36Z","updated_at":"2016-01-20T05:40:22Z","closed_at":null,"body":"敬爱的光驱，我是通过你接触到的sails，目前已经上线了两个项目\r\n但是遇到一个小问题找不到人交流，如果您有时间希望能帮我解答\r\n\r\n我的需求是sails对多数据库进行联合查询\r\n可能是两个mysql或者两个mongodb，从完全不一样的表结构中取出数据\r\n问题在于我不知道怎么操作多数据库\r\n\r\nsails有相关功能吗？还是有什么能推荐的node多数据库操作的方式？"},"comment":{"url":"https://api.github.com/repos/koukuko/Rikka/issues/comments/173094199","html_url":"https://github.com/koukuko/Rikka/issues/1#issuecomment-173094199","issue_url":"https://api.github.com/repos/koukuko/Rikka/issues/1","id":173094199,"user":{"login":"koukuko","id":3916013,"avatar_url":"https://avatars.githubusercontent.com/u/3916013?v=3","gravatar_id":"","url":"https://api.github.com/users/koukuko","html_url":"https://github.com/koukuko","followers_url":"https://api.github.com/users/koukuko/followers","following_url":"https://api.github.com/users/koukuko/following{/other_user}","gists_url":"https://api.github.com/users/koukuko/gists{/gist_id}","starred_url":"https://api.github.com/users/koukuko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/koukuko/subscriptions","organizations_url":"https://api.github.com/users/koukuko/orgs","repos_url":"https://api.github.com/users/koukuko/repos","events_url":"https://api.github.com/users/koukuko/events{/privacy}","received_events_url":"https://api.github.com/users/koukuko/received_events","type":"User","site_admin":false},"created_at":"2016-01-20T05:40:22Z","updated_at":"2016-01-20T05:40:22Z","body":"@scgy5555 \r\n如果是一个model仅用于一个数据库 [你可以在model setting中设置使用的connection](http://sailsjs.org/documentation/concepts/models-and-orm/model-settings#?connection) 以达到使用多个数据库的的目的，\r\n如果是一个model使用多个数据库，好吧，同个类型数据请用集群链接，不同类型的自求多福。"}}