On Oct 30, 2008, at 12:50 PM, Alex McNamara wrote:
> > Hi, > > Is there any way to connect to multiple slave databases on a single > engine? My single db setup is getting killed. > > I found this in engine.url._parse_rfc1738_args: > > (?: > (?P<host>[^/:]*) > (?::(?P<port>[^/]*))? > )? > > but I'm not really sure how to read this regex, and structure my URL > string. the engine supports only a single "host" argument which is passed along to the DBAPI's connect() function. Unless your DBAPI has some special "multi database" mode which occurs through its connect() function (I'm not familiar with any DBAPI which does this), or you have a single host which is load-balancing proxy of some kind (these do exist), your application would have to explicitly handle multiple engines connected to each slave database. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sqlalchemy?hl=en -~----------~----~----~----~------~----~------~--~---
