-
Hi, My use case: I'm developing some data processing code, for which I generate a test database in DuckDB with fake data, and then use a Jupyter notebook to inspect the generated data and, if any changes are needed - re-generate it. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
@dimitri-b Hi, thanks for opening the discussion! Any chance you could show the code and a traceback showing the behavior you're describing? |
Beta Was this translation helpful? Give feedback.
Thank you, I experimented with the suggestions:
generate -> check -> re-generate -> check -> repeat
pattern, which requires a 'write' connection.gc
trick did not work, unfortunately.conn.con.dispose()
did the job, at least in this case, with both 'read-only' and default mode. I understand this reaches into the internals (SQLAlchemy backend) and uses a method that has the side effect of closing the connection.