open file in append mode

This commit is contained in:
Pere Diaz Bou 2024-11-18 18:06:01 +01:00
parent 9c4ca28bd9
commit 2cc89f712e
2 changed files with 2 additions and 2 deletions

View file

@ -6,4 +6,4 @@ const stmt = db.prepare('SELECT * FROM users');
const users = stmt.all();
console.log(users);
console.log(users);

View file

@ -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,