Hey folks! 
I’m a big fan of SQLite and recently came across Turso, which offers distributed SQLite with edge capabilities. I was wondering — is there currently any way to integrate Turso with Elixir using Ecto?
Ideally, I’d love to use it alongside Ash Framework, and I think it would be an amazing combo — fast, lightweight, and perfect for edge/decentralized setups.
Has anyone explored this already? Or would it require a custom Ecto adapter to make it work with Turso’s libSQL backend?
Would love to hear your thoughts or experiences!
When I finally get over the slump of GitHub actions running out of memory during very tame and minimal tests, I’ll officially release my Elixir <=> Rust bridge library that works with SQLite. My test suite can very likely be reused to test Turso as well.
I’m keeping an eye on them but their Rust SQLite implemention is extremely raw.
In any case, after I release my library I’ll be neck-deep into making a 100% coverage Ecto3 adapter. Hopefully that can be reused for Turso as well.
Zero promises on distribution features however. Was never my focus and likely never will be.
2 Likes
Keep in mind their Rust rewrite is not what they run in production (as of now). They have a fork of SQLite which I think they intend to replace with the Rust thing. Confusingly it seems like they have renamed the Rust thing to Turso
, which is certainly not helping lol.
Ah, I am aware, thanks. But I am only interested in their pure Rust thing.
Don’t know when will people finally grow up and get the elementary fact that C will never be safe. Guess not in my lifetime.
1 Like