tursodatabase/libsql

Improve database connection builder API?

Open

#1.635 geöffnet am 5. Aug. 2024

Auf GitHub ansehen
 (1 Kommentar) (0 Reaktionen) (0 zugewiesene Personen)C (490 Forks)batch import
Embedded Replicasenhancementhelp wantedquestion

Repository-Metriken

Stars
 (16.744 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 23h 19m) (1 gemergte PR in 30 T)

Beschreibung

The new_remote_replica() and new_local_replica() names are weird because in both cases the replica is local. The difference is just with how they are synced.

My proposal is to keep new_local() and new_remote() but add additional with_remote_sync() and with_file_sync() methods to the builder for local database variant.

Contributor Guide