pub struct CarvedRecord {
pub page: u32,
pub offset: usize,
pub rowid: i64,
pub values: Vec<Value>,
pub confidence: f32,
pub allocated: bool,
pub source: RecoverySource,
pub wal: Option<WalProvenance>,
pub overflow: Option<OverflowProvenance>,
}Expand description
A deleted record recovered from unallocated space — the headline capability rusqlite cannot provide. Carries the decoded row plus provenance so the examiner can weigh it as a “consistent with a deleted row” observation.
Fields§
§page: u321-based page the record was carved from.
offset: usizeByte offset of the cell within that page.
rowid: i64Recovered rowid.
values: Vec<Value>Decoded column values, in column order.
confidence: f32Heuristic confidence in (0.0, 1.0] that these bytes are a real record.
allocated: boolAlways false: a carved record lives in unallocated space, never in the
live b-tree. Present so callers cannot mistake it for an allocated row.
source: RecoverySourceWhich class of free space this record was recovered from.
wal: Option<WalProvenance>WAL log-sequence provenance, present only for
RecoverySource::WalFrame records (the frame the residue was carved
from); None for every on-disk class.
overflow: Option<OverflowProvenance>Overflow-chain provenance, present only for rows reassembled across a
freed overflow-page chain (task #73); None for every contiguous recovery.
Trait Implementations§
Source§impl Clone for CarvedRecord
impl Clone for CarvedRecord
Source§fn clone(&self) -> CarvedRecord
fn clone(&self) -> CarvedRecord
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more