We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a815d6 commit 8ab446aCopy full SHA for 8ab446a
libsql/examples/encryption_sync.rs
@@ -25,8 +25,11 @@ async fn main() {
25
None
26
};
27
28
- let db_builder =
29
- Builder::new_synced_database(db_path, sync_url, auth_token).remote_encryption(encryption);
+ let mut db_builder = Builder::new_synced_database(db_path, sync_url, auth_token);
+
30
+ if let Some(enc) = encryption {
31
+ db_builder = db_builder.remote_encryption(enc);
32
+ }
33
34
let db = match db_builder.build().await {
35
Ok(db) => db,
0 commit comments