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
Hi!
There is an approach with creator parameter in SQLAlchemy create_engine to replace a connection and this way we can check if there are still valid connection credentials and reconnect if not. Is there any way to do this in GINO?
The only way I tried is by inheriting a asyncpg.Pool object like this:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi!
There is an approach with
creator
parameter in SQLAlchemycreate_engine
to replace a connection and this way we can check if there are still valid connection credentials and reconnect if not. Is there any way to do this in GINO?The only way I tried is by inheriting a
asyncpg.Pool
object like this:Hacky and not so good solutions with possible errors.
Beta Was this translation helpful? Give feedback.
All reactions