Skip to content

Commit

Permalink
Merge 'open file in append mode' from Pere Diaz Bou
Browse files Browse the repository at this point in the history
Closes #409
  • Loading branch information
penberg committed Nov 18, 2024
2 parents 91702ab + 2cc89f7 commit e818bdb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bindings/wasm/examples/example.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ const stmt = db.prepare('SELECT * FROM users');

const users = stmt.all();

console.log(users);
console.log(users);
2 changes: 1 addition & 1 deletion bindings/wasm/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ impl limbo_core::IO for PlatformIO {
_flags: OpenFlags,
_direct: bool,
) -> Result<Rc<dyn limbo_core::File>> {
let fd = self.vfs.open(path, "w+");
let fd = self.vfs.open(path, "a+");
Ok(Rc::new(File {
vfs: VFS::new(),
fd,
Expand Down

0 comments on commit e818bdb

Please sign in to comment.