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')
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 seem
2 matches
Mail list logo