[sqlalchemy] SQLAlchemy with Central DB Shards

2010-02-05 Thread En Snare
I'm new to Python and am trying to get a sense of SQLAlchemy, particularly how to get it to work with our database infrastructure. I followed the Shard tutorial but didn't find it helpful for a beginner switching to this infrastructure. We have a central database that stores the locations of our

Re: [sqlalchemy] SQLAlchemy with Central DB Shards

2010-02-05 Thread En Snare
Hi Michael -- Thanks. I took a look through the code but am having trouble instantiating the database objects from within a class. Is there any sample code that shows how this is done? - En On Fri, Feb 5, 2010 at 4:13 PM, Michael Bayer mike...@zzzcomputing.com wrote: En Snare wrote: I'm new

Re: [sqlalchemy] SQLAlchemy with Central DB Shards

2010-02-05 Thread En Snare
This is my current code with the error I keep receiving: class Central(): def __init__(self,id): self.db = create_engine('sqlite:Users/adam/topic/central.db') self.db.echo = False self.metadata = MetaData(self.db) self.session =