vectrust-storage 0.1.2

Storage backends for the vectrust vector database
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Write-Ahead Logging implementation
// TODO: Implement full WAL functionality for crash recovery

use std::path::Path;
use vectrust_core::*;

pub struct WAL {
    _path: std::path::PathBuf,
}

impl WAL {
    pub fn new(_path: &Path) -> Result<Self> {
        // TODO: Implement WAL
        Ok(Self {
            _path: _path.to_path_buf(),
        })
    }
}