On Friday, June 27, 2014 3:52:11 PM UTC-7, Abraham Barrera wrote: > > I have the same issue. We develop SaaS software and we need to make our > apps Multi Tenant with one database for each Tenant. It's a real problem > in a real software. >
Nothing in Sequel precludes having a multi-tenant app. Actually, with the built-in sharding support, it's should be much easier than using ActiveRecord. Just use the sharding support and have a default shard with the same schema. With the server_block and maybe arbitrary_servers extensions in conjunction with a rack middleware, it's fairly simple to target the correct database per request. This has nothing to do with creating Sequel::Model subclasses before instantiating a Database object. Thanks, Jeremy -- You received this message because you are subscribed to the Google Groups "sequel-talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/sequel-talk. For more options, visit https://groups.google.com/d/optout.
