surrealpatch/core/src/kvs/batch.rs

11 lines
254 B
Rust
Raw Normal View History

use super::Key;
use super::Val;
use std::ops::Range;
/// A batch scan result returned from the [`Transaction::batch`] or [`Transactor::batch`] functions.
#[derive(Debug)]
pub struct Batch {
pub next: Option<Range<Key>>,
pub values: Vec<(Key, Val)>,
}