FerretDB / FerretDB

A truly Open Source MongoDB alternative

Home Page:https://www.ferretdb.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Proposed feature: Support libsql

pdenapo opened this issue · comments

What should be done?

I propose to add support for libsql to ferretdb

This is a fork of sqlite created by Turso that allows to connect to remote Sqlite databases.
You can use the Turso or host your own (It is open source, MIT licence).

The main change required would be to (optionally) use de libsql go driver

https://github.com/tursodatabase/libsql/tree/main/bindings/go

instead of https://pkg.go.dev/modernc.org/sqlite

One serious drawback (possible blocker): Lisql does not support prepared statements in
remote instances (yet). I don't know if FerretDB uses this, or could be avoided.

Another severe problem is cgo. We don't really want to use it.