pub struct BatchStatement {
pub kind: BatchKind,
pub using: Option<Vec<UpdateParameter>>,
pub statements: Vec<ModificationStatement>,
}
Fields§
§kind: BatchKind
§using: Option<Vec<UpdateParameter>>
§statements: Vec<ModificationStatement>
Implementations§
Source§impl BatchStatement
impl BatchStatement
pub fn add_parse_statement(&mut self, statement: &str) -> Result<()>
pub fn add_statement(&mut self, statement: ModificationStatement)
pub fn parse_statement(self, statement: &str) -> Result<Self>
pub fn statement(self, statement: ModificationStatement) -> Self
pub fn insert(self, statement: InsertStatement) -> Self
pub fn update(self, statement: UpdateStatement) -> Self
pub fn delete(self, statement: DeleteStatement) -> Self
Trait Implementations§
Source§impl Clone for BatchStatement
impl Clone for BatchStatement
Source§fn clone(&self) -> BatchStatement
fn clone(&self) -> BatchStatement
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<'a> CustomToTokens<'a> for BatchStatement
impl<'a> CustomToTokens<'a> for BatchStatement
Source§impl Debug for BatchStatement
impl Debug for BatchStatement
Source§impl Display for BatchStatement
impl Display for BatchStatement
Source§impl From<BatchStatement> for DataManipulationStatement
impl From<BatchStatement> for DataManipulationStatement
Source§fn from(original: BatchStatement) -> DataManipulationStatement
fn from(original: BatchStatement) -> DataManipulationStatement
Converts to this type from the input type.
Source§impl From<BatchStatement> for Statement
impl From<BatchStatement> for Statement
Source§fn from(v: BatchStatement) -> Self
fn from(v: BatchStatement) -> Self
Converts to this type from the input type.
Source§impl FromStr for BatchStatement
impl FromStr for BatchStatement
Source§impl Parse for BatchStatement
impl Parse for BatchStatement
type Output = BatchStatement
fn parse(s: &mut StatementStream<'_>) -> Result<Self::Output>
Source§impl PartialEq for BatchStatement
impl PartialEq for BatchStatement
Source§impl ToTokens for BatchStatement
impl ToTokens for BatchStatement
Source§fn to_token_stream(&self) -> TokenStream
fn to_token_stream(&self) -> TokenStream
Source§fn into_token_stream(self) -> TokenStreamwhere
Self: Sized,
fn into_token_stream(self) -> TokenStreamwhere
Self: Sized,
Source§impl TryFrom<TaggedBatchStatement> for BatchStatement
impl TryFrom<TaggedBatchStatement> for BatchStatement
Source§impl TryInto<BatchStatement> for Statement
impl TryInto<BatchStatement> for Statement
impl Eq for BatchStatement
impl StructuralPartialEq for BatchStatement
Auto Trait Implementations§
impl Freeze for BatchStatement
impl RefUnwindSafe for BatchStatement
impl Send for BatchStatement
impl Sync for BatchStatement
impl Unpin for BatchStatement
impl UnwindSafe for BatchStatement
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