Add pwritev to wasm/js api

This commit is contained in:
PThorpe92
2025-07-25 19:05:52 -04:00
parent 7b2163208b
commit d189f66328
2 changed files with 12 additions and 2 deletions

View File

@@ -718,6 +718,15 @@ impl turso_core::DatabaseStorage for DatabaseFile {
let pos = (page_idx - 1) * size;
self.file.pwrite(pos, buffer, c)
}
fn write_pages(
&self,
_first_page_idx: usize,
_page_size: usize,
_buffers: Vec<Arc<RefCell<turso_core::Buffer>>>,
_c: turso_core::Completion,
) -> turso_core::Result<()> {
todo!();
}
fn sync(&self, c: turso_core::Completion) -> turso_core::Result<turso_core::Completion> {
self.file.sync(c)