libsql-wal 0.1.0-alpha.1

wal implementation for libsql
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use crate::storage::compaction::SegmentSet;

use super::PartitionStrategy;

/// partition strategy that doesn't split the passed set
pub struct IdentityStrategy;

impl PartitionStrategy for IdentityStrategy {
    fn partition(&self, segments: &SegmentSet) -> Vec<SegmentSet> {
        let mut out = Vec::with_capacity(1);
        out.push(segments.clone());
        out
    }
}