diff --git a/bindings/wasm/examples/example.js b/bindings/wasm/examples/example.js index 836cde7a4..a33d08b18 100644 --- a/bindings/wasm/examples/example.js +++ b/bindings/wasm/examples/example.js @@ -6,4 +6,4 @@ const stmt = db.prepare('SELECT * FROM users'); const users = stmt.all(); -console.log(users); \ No newline at end of file +console.log(users); diff --git a/bindings/wasm/lib.rs b/bindings/wasm/lib.rs index 9498d3196..52dfd9c2f 100644 --- a/bindings/wasm/lib.rs +++ b/bindings/wasm/lib.rs @@ -149,7 +149,7 @@ impl limbo_core::IO for PlatformIO { _flags: OpenFlags, _direct: bool, ) -> Result> { - let fd = self.vfs.open(path, "w+"); + let fd = self.vfs.open(path, "a+"); Ok(Rc::new(File { vfs: VFS::new(), fd,