pub struct RawSql {
pub sql: String,
pub params: Vec<TypedValue>,
pub ret: RawSqlRet,
}Expand description
Executes user-authored SQL against a SQL-capable driver.
Unlike QuerySql, this operation carries backend SQL
text directly. The driver does not serialize a Toasty statement AST before
executing it.
The SQL text uses the placeholder syntax reported by
Capability::sql_placeholder.
Parameters carry database storage types. The public raw SQL builders infer
these from bound values and driver capabilities unless the caller supplies
an explicit type.
Fields§
§sql: StringBackend SQL text to execute.
params: Vec<TypedValue>Typed bind parameters in placeholder order.
ret: RawSqlRetHow the driver should execute and decode the SQL.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RawSql
impl RefUnwindSafe for RawSql
impl Send for RawSql
impl Sync for RawSql
impl Unpin for RawSql
impl UnsafeUnpin for RawSql
impl UnwindSafe for RawSql
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