On Jan 30, 3:52 pm, Andreas Jung <[EMAIL PROTECTED]> wrote: > from sqlalchemy import * > import psycopg2 as psycopg > > psycopg = pool.manage(psycopg) > > def getconn(): > db = psycopg.connect(database='ajung_ewt2006', user='postgres', > password='postgres', host='cmsdb') > return db > > p = pool.QueuePool(getconn, max_overflow=10, pool_size=5, > use_threadlocal=True) > metadata = BoundMetaData(p.get().connection) BoundMetaData does not take a DBAPI connection as an argument. engine = create_engine('postgres://', pool=p) metadata = BoundMetaData(engine) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To post to this group, send email to sqlalchemy@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---