pub struct InsertBuilder { /* private fields */ }Implementations§
Source§impl InsertBuilder
impl InsertBuilder
pub fn new() -> Self
pub fn set_flavor(&mut self, flavor: Flavor) -> Flavor
pub fn flavor(&self) -> Flavor
pub fn clone_builder(&self) -> Self
pub fn insert_into(&mut self, table: &str) -> &mut Self
pub fn insert_ignore_into(&mut self, table: &str) -> &mut Self
pub fn replace_into(&mut self, table: &str) -> &mut Self
pub fn cols( &mut self, cols: impl IntoIterator<Item = impl Into<String>>, ) -> &mut Self
Sourcepub fn select(
&mut self,
cols: impl IntoIterator<Item = impl Into<String>>,
) -> SelectBuilder
pub fn select( &mut self, cols: impl IntoIterator<Item = impl Into<String>>, ) -> SelectBuilder
Insert-Select:返回一个 SelectBuilder 来构建 SELECT 部分。
pub fn values( &mut self, values: impl IntoIterator<Item = impl Into<Arg>>, ) -> &mut Self
pub fn returning( &mut self, cols: impl IntoIterator<Item = impl Into<String>>, ) -> &mut Self
pub fn sql(&mut self, sql: impl Into<String>) -> &mut Self
Trait Implementations§
Source§impl Builder for InsertBuilder
impl Builder for InsertBuilder
Source§impl Clone for InsertBuilder
impl Clone for InsertBuilder
Source§fn clone(&self) -> InsertBuilder
fn clone(&self) -> InsertBuilder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for InsertBuilder
impl Debug for InsertBuilder
Auto Trait Implementations§
impl Freeze for InsertBuilder
impl !RefUnwindSafe for InsertBuilder
impl !Send for InsertBuilder
impl !Sync for InsertBuilder
impl Unpin for InsertBuilder
impl !UnwindSafe for InsertBuilder
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