Skip to content

Commit b12e5f3

Browse files
committed
Bump libsql dependency
We can now use Statement.run() in the sync example.
1 parent b4ccce1 commit b12e5f3

3 files changed

Lines changed: 6 additions & 7 deletions

File tree

Cargo.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ exclude = ["index.node"]
1111
crate-type = ["cdylib"]
1212

1313
[dependencies]
14-
libsql = { git = "https://github.com/libsql/libsql/", rev = "a483c7859d164fa6cc7cb44201193bd836db3142" }
14+
libsql = { git = "https://github.com/libsql/libsql/", rev = "c95b60fcdf93c428634500c5cf18677e3b28e59a" }
1515
once_cell = "1.18.0"
1616
tokio = { version = "1.29.1", features = [ "rt-multi-thread" ] }
1717

examples/sync/example.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,8 @@ const comment = reader.question("Enter your comment: ");
2020

2121
console.log(comment);
2222

23-
db.exec("INSERT INTO guest_book_entries (comment) VALUES ('" + comment + "')");
24-
//const stmt = db.prepare("INSERT INTO guest_book_entries (comment) VALUES (?)");
25-
//stmt.run(comment);
23+
const stmt = db.prepare("INSERT INTO guest_book_entries (comment) VALUES (?)");
24+
stmt.run(comment);
2625

2726
db.sync();
2827

0 commit comments

Comments
 (0)