Skip to content

Building a Cross-Language ORM for SurrealDB with WASM #5479

Answered by Arshia001
JustKira asked this question in General
Discussion options

You must be logged in to vote

Hey @JustKira!

So, there are multiple aspects to this matter. It is very much possible to put the core logic of the ORM in a WASM module and have it run everywhere. However...

  • The ORM will probably need to communicate with the DB over the network, correct? This is possible with WASIX, but WASIX apps are just that: applications, with their own main thread, stdio streams, file system, networking layer, etc. Right now, it's not possible (at least to the best of my knowledge) to build WASIX libraries, as in modules that export functions that you can call to perform some action and get the result back.
  • Actually putting that WASM module into each of your own apps requires embedding the entire …

Replies: 3 comments 5 replies

Comment options

You must be logged in to vote
2 replies
@JustKira
Comment options

@JustKira
Comment options

Answer selected by JustKira
Comment options

You must be logged in to vote
1 reply
@JustKira
Comment options

Comment options

You must be logged in to vote
2 replies
@JustKira
Comment options

@Arshia001
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
❓ question I've a question!
2 participants
Converted from issue

This discussion was converted from issue #5474 on March 12, 2025 16:13.