Skip to content

Commit 1beb0b5

Browse files
committed
Use maxWriteReplicationIndex in example
Signed-off-by: Piotr Jastrzebski <[email protected]>
1 parent 8aac277 commit 1beb0b5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

examples/sync/example.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,11 @@ console.log(comment);
2222

2323
const stmt = db.prepare("INSERT INTO guest_book_entries (comment) VALUES (?)");
2424
stmt.run(comment);
25+
console.log("max write replication index: " + db.maxWriteReplicationIndex());
2526

2627
const replicated = db.sync();
2728
console.log("frames synced: " + replicated.frames_synced);
29+
console.log("frame no: " + replicated.frame_no);
2830

2931
console.log("Guest book entries:");
3032
const rows = db.prepare("SELECT * FROM guest_book_entries").all();

0 commit comments

Comments
 (0)