-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Support libSQL / Turso drivers #2674
Comments
+1 to supporting libsql in server mode over http. i'd also like to +1 being able to use sqlx when connecting to a file using libsql directly-- like how sqlite is classically used, except with the libsql binary, as that is sometimes useful. |
+1 I also would love to see this happen been wanting to try libsql and sqlx support is what is holding me back |
We don't use the rusqlite API, as explained here: #2656 (comment) If Alternatively, a bespoke driver built on |
We have a drop-in replacement API, but it doesn't support any of the networking bits that are the ultimate reason behind people wanting this. The better path would be based on |
Hi @abonander I came to the same conclusion, I think we want to implement https://github.com/tursodatabase/libsql/tree/main/libsql which should work. Are the current core traits "stable" enough to invest the time to implement our own version or are there plans to make changes that might affect that? |
The biggest pending refactor is changing all the trait methods that currently return It looks like I'm also not sure how robust |
Whats the status on this? Turso guys need to support async-std and after the |
The lack of SQLx support is what's stopping me from switching to Turso currently. I'm happy to help; is there a defined plan/specific issues for getting libSQL to work with SQLx? |
It's frustrating that libsql isn't compatible with any mainstream database crate yet, so I'm stuck with using the lib raw instead of all the great tooling that's out there. |
Since the driver crate refactor, it doesn't strictly need to be merged into this repo to be usable. The required traits just need to be implemented somewhere. Macro support is the one missing piece. It's intended to be possible to define a new facade like the However, after #3383 I have an idea on how to make the macros and |
Turso is a great platform but I've had to drop it because of the lack of sqlx support. Every so often I come back to see if theres any updates on this issue. Let me know if I can help in any way to move this forward |
We've started some implementation work on this, though, we will likely wait for #3383 to land before we release since this basically will allow us to support all the features. |
libsql is an open contribution fork of SQLite, that includes a server-mode to make it accessible over HTTP. This allows it to be used from serverless environments that don't have a filesystem.
Turso is a commercial offering of that.
Because SQLite is usually not accessible over the network, supporting libSQL/Turso requires drivers changes. However, the query language is still the same.
I am the founder of Turso, and we can definitely help make this happen.
The current driver for Rust is here, and we are in the process of releasing new drivers that implement the rusqlite API. If that makes things easier, waiting until those drivers are released is a great option.
The text was updated successfully, but these errors were encountered: