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 9a65514 commit c708528Copy full SHA for c708528
libsql/examples/remote_sync.rs
@@ -48,7 +48,13 @@ async fn main() {
48
print!("Syncing with remote database...");
49
db.sync().await.unwrap();
50
println!(" done");
51
-
+ {
52
+ let mut stmt = conn.prepare("PRAGMA integrity_check").await.unwrap();
53
+ let mut rows = stmt.query(()).await.unwrap();
54
+ let result: String = rows.next().await.unwrap().unwrap().get(0).unwrap();
55
+ assert_eq!(result, "ok", "integrity check failed after sync");
56
+ println!("Integrity check passed after sync");
57
+ }
58
conn.execute(
59
r#"
60
CREATE TABLE IF NOT EXISTS guest_book_entries (
0 commit comments