pub struct QuerySql {
pub stmt: Statement,
pub ret: Option<Vec<Type>>,
pub last_insert_id_hack: Option<u64>,
}Fields§
§stmt: StatementThe SQL query to execute
ret: Option<Vec<Type>>The return type
last_insert_id_hack: Option<u64>TEMPORARY HACK: MySQL-specific workaround for RETURNING from INSERT.
When set, indicates this query should be preceded by fetching LAST_INSERT_ID() to simulate RETURNING behavior for the specified number of inserted rows. The query will return a list of rows, each with a single column containing the auto-increment ID.
Non-MySQL drivers should assert this is None.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for QuerySql
impl RefUnwindSafe for QuerySql
impl Send for QuerySql
impl Sync for QuerySql
impl Unpin for QuerySql
impl UnwindSafe for QuerySql
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