electric-sql / electric-sql/pglite

PGlite bindings for other runtimes?

Open
#89 15 comments 28 reactions 0 assignees View on GitHub
libpglite wasi/fsm
Dominant language
TypeScript
Stars
16k
Forks
442
Avg merge
20h 19m
Merged PRs (30d)
7

Description

I'm trying to run and access PGLite through a golang program via [wasmer-go](https://github.com/wasmerio/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?

```
$ wazero run postgres.wasm
error instantiating wasm binary: module[env] not instantiated

$ wasmtime postgres.wasm
Error: failed to run main module `postgres.wasm`

Caused by:
0: failed to instantiate "postgres.wasm"
1: unknown import: `env::invoke_ii` has not been defined
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.