title: How can I select different databases for a model based on request parameters in Sails.js?
body: <p>I have an application that I am considering porting to Sails.JS.</p>
  
  <p>One of the big issues I am having is supporting the per-request database selection that we have right now.</p>
  
  <p>Our app creates/uses a different database for each customer that we have and we select the database based on the request.</p>
  
  <p>How could I achieve that in Sails.JS?</p>
  
  <p>Could I write a Express middleware that would do this on a per request basis?</p>