pub struct SqlStatement {
pub sql: String,
pub params: Vec<SqlValue>,
pub label: Option<String>,
}Expand description
A parameterized SQL statement with optional diagnostic label.
sql is one SQLite statement, not a script. Backends must reject trailing
executable SQL (including a trailing transaction-control statement) before
executing the statement; use crate::SqlWriter::execute_batch for
multiple parameterized statements and crate::SqlWriter::execute_script
for raw scripts.
Fields§
§sql: String§params: Vec<SqlValue>§label: Option<String>Trait Implementations§
Source§impl Clone for SqlStatement
impl Clone for SqlStatement
Source§impl Debug for SqlStatement
impl Debug for SqlStatement
Source§impl<'de> Deserialize<'de> for SqlStatement
impl<'de> Deserialize<'de> for SqlStatement
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SqlStatement
impl RefUnwindSafe for SqlStatement
impl Send for SqlStatement
impl Sync for SqlStatement
impl Unpin for SqlStatement
impl UnsafeUnpin for SqlStatement
impl UnwindSafe for SqlStatement
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