We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 495801c commit e59dee2Copy full SHA for e59dee2
tests/load/duckdb/test_duckdb_client.py
@@ -258,6 +258,19 @@ def test_external_duckdb_database() -> None:
258
assert not os.path.exists(":memory:")
259
260
261
+def test_in_memory_duckdb_database() -> None:
262
+ import duckdb
263
+
264
+ # pass explicit in memory database
265
+ conn = duckdb.connect(":memory:")
266
+ c = resolve_configuration(DuckDbClientConfiguration(credentials=conn))
267
+ c.credentials.borrow_conn(read_only=False)
268
+ assert c.credentials._conn_borrows == 1
269
+ assert c.credentials._conn_owner is False
270
+ conn.close()
271
+ assert not os.path.exists(":memory:")
272
273
274
def test_default_duckdb_dataset_name() -> None:
275
# Check if dataset_name does not collide with pipeline_name
276
data = ["a", "b", "c"]
0 commit comments