You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As seen here, there is no way to make connect() use a pooled connection. I've looked over the code and there doesn't appear to be any way to convert an existing DB object into a pooled one, at least short of using some horrible metaclass hacks or monkey patching.
Could someone clarify if this feature is on the roadmap, or whether a PR would be accepted if not?
The text was updated successfully, but these errors were encountered:
You can use db_url.parse(url) to parse the data into a dictionary, then pass the dictionary values into a pooled database implementation. Because pooled databases require additional arguments (pool size, etc), they do not seem to me a good candidate for inclusion in the db_url module.
As seen here, there is no way to make
connect()
use a pooled connection. I've looked over the code and there doesn't appear to be any way to convert an existing DB object into a pooled one, at least short of using some horrible metaclass hacks or monkey patching.Could someone clarify if this feature is on the roadmap, or whether a PR would be accepted if not?
The text was updated successfully, but these errors were encountered: