surrealpatch/core/src/kvs/batch.rs
Tobie Morgan Hitchcock bfc474e4d8
Refactor transaction, caching, and key-value store interfaces (#4257)
Co-authored-by: Gerard Guillemas Martos <gerard.guillemas@surrealdb.com>
2024-07-17 22:44:05 +00:00

10 lines
254 B
Rust

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)>,
}