Building rqlite for webasm #1137
Unanswered
lardinator
asked this question in
Q&A
Replies: 2 comments 3 replies
-
I do not believe it's possible because rqlite is built on Go and C. During the build process the SQLite source code is compiled, and then linked with the Go code. C code is not compatible with webasm AFAIK. rqlite would need a pure Go version of SQLite. Such code does exist (see https://gitlab.com/cznic/sqlite), but then rqlite would not be running the official SQLite code. Not ruling it out yet, but haven't tried it at this time. |
Beta Was this translation helpful? Give feedback.
2 replies
-
It's a requirement to build the command-line too, but not for |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi!
I want to see if it's possible to use rqlite as an embedded database in the browser and use WebRTC to distribute the data. I saw people running Sqlite with webasm and wanted to try. Note – I am new to Go and webasm.
When I build rqlite for webassembler the
golang.org/x/sys/unix
isn't supported. I looked at the code and I think it's an import in thecmd
package. Do you know if there is any workaround or maybe some parts of thecmd
package can be omitted?Any tips and hits greatly appreciated.
Beta Was this translation helpful? Give feedback.
All reactions