pub struct RawStmt {
pub sql: String,
pub params: Vec<Value>,
pub is_write: bool,
}Expand description
编译产物:最终 SQL + 重排后参数 + 读写标记
Fields§
§sql: String位置档 = 原文;命名档 = 编译后文本
params: Vec<Value>位置档 = 原数组(顺序保持);命名档 = 按 :name 出现顺序重排
is_write: bool显式指定优先;否则按首词推断(R7)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RawStmt
impl RefUnwindSafe for RawStmt
impl Send for RawStmt
impl Sync for RawStmt
impl Unpin for RawStmt
impl UnsafeUnpin for RawStmt
impl UnwindSafe for RawStmt
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