Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libsql: read_your_writes to true by default #1105

Merged
merged 1 commit into from
Feb 28, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion libsql/src/database/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ impl Builder<()> {
version: None,
},
encryption_config: None,
read_your_writes: false,
read_your_writes: true,
periodic_sync: None,
http_request_callback: None
},
Expand Down Expand Up @@ -194,6 +194,10 @@ cfg_replication! {

/// Set weather you want writes to be visible locally before the write query returns. This
/// means that you will be able to read your own writes if this is set to `true`.
///
/// # Default
///
/// This defaults to `true`.
pub fn read_your_writes(mut self, read_your_writes: bool) -> Builder<RemoteReplica> {
self.inner.read_your_writes = read_your_writes;
self
Expand Down
Loading