libsql icon indicating copy to clipboard operation
libsql copied to clipboard

Improve database connection builder API?

Open penberg opened this issue 1 year ago • 1 comments

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.

penberg avatar Aug 05 '24 06:08 penberg

I think that makes a lot of sense, lets line this up for the next breaking release.

LucioFranco avatar Aug 09 '24 20:08 LucioFranco