https://dagster.io/ logo
#ask-community
Title
# ask-community
s

Spencer Nelson

01/24/2023, 1:02 AM
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

yuhan

01/24/2023, 1:07 AM
yes io manager is a special resource
s

Spencer Nelson

01/24/2023, 1:13 AM
thanks