From 427103b199622a41c2cb5ab9d0c28235bd0aeb56 Mon Sep 17 00:00:00 2001 From: Pere Diaz Bou Date: Wed, 19 Jun 2024 20:54:55 +0200 Subject: [PATCH] core,wasm: add missing write procedure to wasm --- bindings/wasm/lib.rs | 9 +++++++++ core/lib.rs | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/bindings/wasm/lib.rs b/bindings/wasm/lib.rs index e8c29a360..646e6504e 100644 --- a/bindings/wasm/lib.rs +++ b/bindings/wasm/lib.rs @@ -39,4 +39,13 @@ impl limbo_core::PageIO for PageIO { fn get(&self, _page_idx: usize, _c: Rc) -> Result<()> { todo!(); } + + fn write( + &self, + _page_idx: usize, + _buffer: Rc>, + _c: Rc, + ) -> Result<()> { + todo!() + } } diff --git a/core/lib.rs b/core/lib.rs index c6a9e962b..91b2084ac 100644 --- a/core/lib.rs +++ b/core/lib.rs @@ -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;