title: Using multiple databases with peewee
body: <p>I'm writing a "multi tenant" application. It's going to be hosted on different subdomains, and based on which subdomain it's hosted, it should use a different database.</p>
  
  <p>Is it possible to define, in execution time, which database peewee should be using? If I were using django, I'd just write a router that takes care of it, but I haven't found anything similar on peewee.</p>
  
  <p>Am I missing something?</p>
  
  <p>Thanks!</p>
  
  <p>PS: A hack like this <a href="https://stackoverflow.com/questions/20003916/how-to-query-several-similar-databases-using-peewee">How to query several similar databases using Peewee?</a>, where you need to know beforehand which class to invoke wouldn't work fine in my scenario</p>