mirror of
https://github.com/aljazceru/turso.git
synced 2025-12-25 12:04:21 +01:00
This WIP driver uses the [purego](github.com/ebitengine/purego) library, that supports cross platform `Dlopen`/`Dlsym` and not a whole lot else. I really didn't want to use CGO, have very little experience with WASM and I heard nothing but good things about this library. It's very easy to use and stable especially when you consider the use case here of 3 functions.  NOTE: The WIP state that this PR is in right at this moment, is not able to run these simple queries. This screengrab was taken from a couple days ago when I wrote up a quick demo to load the library, call a simple query and had it println! the result to make sure everything was working properly. I am opening this so kind of like the Java bindings, I can incrementally work on this. I didn't want to submit a massive PR, try to keep them at ~1k lines max. The state of what's in this PR is highly subject and likely to change. I will update when they are at a working state where they can be tested out and make sure they work across platforms. Closes #776