tursodatabase/libsql

Improve database connection builder API?

Open

#1635 aperta il 5 ago 2024

Vedi su GitHub
 (1 commento) (0 reazioni) (0 assegnatari)C (490 fork)batch import
Embedded Replicasenhancementhelp wantedquestion

Metriche repository

Star
 (16.744 star)
Metriche merge PR
 (Merge medio 23h 19m) (1 PR mergiata in 30 g)

Descrizione

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.

Guida contributor