holdenmatt / duckdb-wasm-kit

Hooks and utilities to make it easier to use duckdb-wasm in React apps.
https://www.npmjs.com/package/duckdb-wasm-kit
MIT License
101 stars 4 forks source link

Add support for remote files as well as local files #4

Closed ramonvermeulen closed 11 months ago

ramonvermeulen commented 11 months ago

E.g. otherwise you are writing a url instead of a file or file path to the virtual wasm file system which will cause errors. Docs do not need to be changed, you can just configure a url, e.g. https://storage.googleapis.com/some-bucket/some_file.duckdb or just a file path relative to the public folder, e.g. ./some_file.duckdb as config.path property.

solves issue https://github.com/holdenmatt/duckdb-wasm-kit/issues/5

holdenmatt commented 11 months ago

Thanks for the PR, LGTM!