candlecorp / wick

Functional, reactive WebAssembly with a twist
https://candle.dev
Other
471 stars 17 forks source link

Support volume restrictions on `file://` urls, update SQLite URL support for it #423

Closed jsoverson closed 1 year ago

jsoverson commented 1 year ago

This PR adds support for applying Volume restrictions to Url resources if the URL is a file:// URL.

The only notable side effect is that SQLite DB URLs must now use the file:// scheme vs the custom sqlite:// scheme. This is to avoid setting the precedent of some URL schemes pointing to files internally.

This PR also adds support for SQLite in-memory databases which can be enabled with the URL sqlite://memory (since it's special-by-default and doesn't point to any real resource). The errors thrown in either case point the user to the right syntax when possible.