duckdb / duckdb-wasm

WebAssembly version of DuckDB
https://shell.duckdb.org
MIT License
1.02k stars 110 forks source link

Remote attach: default to READ_ONLY, and throw on READ_WRITE attaches #1764

Closed carlopi closed 2 weeks ago

carlopi commented 2 weeks ago

Currently READ_WRITE can't work due to a limitation that files can only be either READ or WRITE.

Default to READ_ONLY (as it done by upstream duckdb) and throw on READ_WRITE remote attach.

This cleans up ATTACH semantic, uniforming behaviour between native duckdb and duckdb-wasm.