Is there a way to set up a custom IOManager to act...
# ask-community
s
Is there a way to set up a custom IOManager to act as a context manager? I’m writing to a SQL database and would like to have some safety around opening and closing database connections. With
@resource
, I can use
@contextmanager
and things just work; is that true of
@io_manager
as well?
y
yes io manager is a special resource
s
thanks