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
In this context, the database connection stays open as long as postgres is alive (e.g. has at least one strong retain left on it). If it gets stored somewhere, you have to ensure you also eventually remove it from the storage; in particular, it must be released before the event loop that it runs on is shut down.
The README currently shows how to get a database from a pool:
Should you go through
pool
whenever you want to query? Or can you keeppostgres
around and use it for all of your queries?The text was updated successfully, but these errors were encountered: