-
Notifications
You must be signed in to change notification settings - Fork 158
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PGlite bindings for other runtimes? #89
Comments
A // postgres.js (generated)
var wasmImports = {
//...
emscripten_date_now: _emscripten_date_now,
emscripten_dispatch_result: emscripten_dispatch_result,
emscripten_get_heap_max: _emscripten_get_heap_max,
emscripten_get_now: _emscripten_get_now,
emscripten_get_now_res: _emscripten_get_now_res,
emscripten_memcpy_js: _emscripten_memcpy_js,
emscripten_resize_heap: _emscripten_resize_heap,
environ_get: _environ_get,
environ_sizes_get: _environ_sizes_get,
exit: _exit,
fd_close: _fd_close,
fd_fdstat_get: _fd_fdstat_get,
fd_pread: _fd_pread,
fd_pwrite: _fd_pwrite,
fd_read: _fd_read,
fd_seek: _fd_seek,
fd_sync: _fd_sync,
fd_write: _fd_write,
// ...
} A WASIX (note the x, not WASI) build of pglite shouldn't be too tough because it has a very broad API. You link the wasix libc and that libc will compile imports in the WASI should be possible through Emscripten by using the |
Similarly have such a demand. |
I'm trying to run and access PGLite through a golang program via wasmer-go. However it fails with the error regardgin
env
not instantiated. I assume that there is no support for other runtimes (#40)Is there a way I could contribute to adding support for more runtimes?
The text was updated successfully, but these errors were encountered: