First Commit
Some checks failed
CI (main) / build (push) Has been cancelled
CI (main) / deploy (push) Has been cancelled

This commit is contained in:
ECROF88
2025-10-20 20:12:40 +08:00
parent f484bc5e6c
commit 8fb4176e71
17 changed files with 1822 additions and 97 deletions

View File

@@ -32,7 +32,9 @@ pub struct Wal {
impl Wal {
pub fn create(_path: impl AsRef<Path>) -> Result<Self> {
unimplemented!()
Ok(Self {
file: Arc::new(Mutex::new(BufWriter::new(File::create(_path)?))),
})
}
pub fn recover(_path: impl AsRef<Path>, _skiplist: &SkipMap<Bytes, Bytes>) -> Result<Self> {