just send the options to create_engine(). On Aug 15, 2006, at 3:41 PM, Dennis Muhlestein wrote:
> Is there a way to customize the connection pool without providing a > connection method? > >> From the documentation: > ...... > def getconn(): > return MySQLdb.connect(user='ed', dbname='mydb') > > engine = create_engine('mysql', pool=pool.QueuePool(getconn, > pool_size=20, max_overflow=40)) > ...... > > It seems to me that connecting to a database is already handled pretty > well by sqlalchemy. Also, if I wanted to change databases, I'd have > to have different connect methods. > > I'd like to be able to customize the pool size like this: > > engine = create_engine('mysql', pool=pool.QueuePool(pool_size=20)) > > Thoughts? > > Thanks > Dennis > > ---------------------------------------------------------------------- > --- > Using Tomcat but need to do more? Need to support web services, > security? > Get stuff done quickly with pre-integrated technology to make your > job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache > Geronimo > http://sel.as-us.falkag.net/sel? > cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Sqlalchemy-users mailing list > Sqlalchemy-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/sqlalchemy-users ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Sqlalchemy-users mailing list Sqlalchemy-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sqlalchemy-users