vrischmann / zig-sqlite

zig-sqlite is a small wrapper around sqlite's C API, making it easier to use with Zig.
MIT License
367 stars 49 forks source link

add sqlite wasi os polyfill #120

Closed dasimmet closed 5 months ago

dasimmet commented 1 year ago

copied from https://github.com/ericsink/wasm2cil/tree/master/sqlite3

vrischmann commented 1 year ago

I'd like to see an explanation as to why this is useful, what the polyfill does, etc. I have no experience with wasm/wasi so I have no idea how to approach this. How do I test this ?

Cloudef commented 10 months ago

That wasi polyfill looks quite incomplete. You can use it externally anyways by compiling the VFS and calling sqlite3_vfs_register(sqlite3_demovfs(), 0); in your app before using zig-sqlite.

vrischmann commented 6 months ago

Hey @dasimmet, do you intend to work on this PR again ?

vrischmann commented 5 months ago

Closing for now. If needed we'll reopen it.