go-gitea / gitea

Git with a cup of tea! Painless self-hosted all-in-one software development service, including Git hosting, code review, team collaboration, package registry and CI/CD
https://gitea.com
MIT License
43.01k stars 5.31k forks source link

Support libsql #29542

Open rawkode opened 4 months ago

rawkode commented 4 months ago

Feature Description

I for love to see the SQLite driver swapped out for libsql, allowing us to use a highly available sqlite database.

This should be close to a drop in replacement.

Screenshots

No response

delvh commented 4 months ago

Sounds good to me. Only the

To get started with the libSQL API: Go (experimental)

is a bit concerning to me

lunny commented 4 months ago

Sorry, maybe we need some investigate whether libsql is mature enough.

delvh commented 4 months ago

I mean, according to their docs, they are a fork of SQLite. In other words, they are as mature as SQLite.

silverwind commented 4 months ago

Does this Go binding require CGO? We've been looking for a native sqlite driver.

delvh commented 4 months ago

Probably

techknowlogick commented 4 months ago

Yes, it does require CGO. I've just thrown up an experimental branch

rawkode commented 4 months ago

There's a client which I don't believe needs CGO

https://github.com/tursodatabase/libsql-client-go

rawkode commented 4 months ago

However, I believe that will only support libsql and not SQLite