tursodatabase/libsql

Improve database connection builder API?

Open

#1.635 aberto em 5 de ago. de 2024

Ver no GitHub
 (1 comment) (0 reactions) (0 assignees)C (490 forks)batch import
Embedded Replicasenhancementhelp wantedquestion

Métricas do repositório

Stars
 (16.744 stars)
Métricas de merge de PR
 (Mesclagem média 23h 19m) (1 fundiu PR em 30d)

Description

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.

Guia do colaborador