core,wasm: add missing write procedure to wasm

This commit is contained in:
Pere Diaz Bou
2024-06-19 20:54:55 +02:00
parent 932ae7bf3f
commit 427103b199
2 changed files with 10 additions and 1 deletions

View File

@@ -39,4 +39,13 @@ impl limbo_core::PageIO for PageIO {
fn get(&self, _page_idx: usize, _c: Rc<limbo_core::Completion>) -> Result<()> {
todo!();
}
fn write(
&self,
_page_idx: usize,
_buffer: Rc<std::cell::RefCell<limbo_core::Buffer>>,
_c: Rc<limbo_core::WriteCompletion>,
) -> Result<()> {
todo!()
}
}

View File

@@ -24,7 +24,7 @@ use std::{cell::RefCell, rc::Rc};
#[cfg(feature = "fs")]
pub use io::PlatformIO;
pub use io::{Buffer, Completion, File, IO};
pub use io::{Buffer, Completion, File, WriteCompletion, IO};
pub use storage::{PageIO, PageSource};
pub use types::Value;