File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11name = " SQLCollections"
22uuid = " 3934435e-e6e6-4fea-a5c0-3a716143d619"
33authors = [" Alexander Plavin <alexander@plav.in>" ]
4- version = " 0.1.12 "
4+ version = " 0.1.13 "
55
66[deps ]
77AccessorsExtra = " 33016aad-b69d-45be-9359-82a41f556fd4"
Original file line number Diff line number Diff line change @@ -3,6 +3,16 @@ module DuckDBExt
33using DuckDB
44import SQLCollections: _copy_impl!, rowtable
55
6+ # XXX : should be upstreamed in https://github.com/duckdb/duckdb/pull/17585
7+ DuckDB. DB (file; readonly:: Bool = false ) =
8+ if readonly
9+ cnf = DuckDB. Config ()
10+ DuckDB. set_config (cnf, " access_mode" , " READ_ONLY" )
11+ DuckDB. DB (file, cnf)
12+ else
13+ DuckDB. DB (file)
14+ end
15+
616function _copy_impl! (conn:: DuckDB.DB , rows, tblname:: Symbol )
717 tmp_tblname = String (rand (' a' :' z' , 50 ))
818 DuckDB. register_table (conn, rows, tmp_tblname)
You can’t perform that action at this time.
0 commit comments