pub struct ScanSpec {
pub table: &'static str,
pub limit: Option<u32>,
pub filter: Option<(&'static str, SqlValue)>,
pub order_by: &'static [ScanOrder],
}Expand description
scan 规格:通用多行扫描读(C3)。on_start 载入单调水位(全表)/ P6 投影查询(等值过滤+排序)。
过滤/排序可选 additive(HX-C004):filter 为 None、order_by 为空 = 旧全表语义
(零行为改变);列名仍为编译期常量(HX-C001),方向由结构化枚举表达,禁止调用方拼 SQL。
Fields§
§table: &'static str目标表名(编译期常量)
limit: Option<u32>最多返回行数(None = 全表;driver 应设硬上限防御)
filter: Option<(&'static str, SqlValue)>可选等值过滤 WHERE <col> = <val>(列名编译期常量,值运行时)。None = 不过滤(旧全表)。
order_by: &'static [ScanOrder]结构化排序键,按切片顺序形成 ORDER BY;空切片 = 不排序(旧 rowid 序)。
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ScanSpec
impl RefUnwindSafe for ScanSpec
impl Send for ScanSpec
impl Sync for ScanSpec
impl Unpin for ScanSpec
impl UnsafeUnpin for ScanSpec
impl UnwindSafe for ScanSpec
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more