pub struct InsertBuilder { /* private fields */ }Implementations§
Source§impl InsertBuilder
impl InsertBuilder
pub fn new(table: impl Into<String>) -> Self
pub fn value(self, column: impl Into<String>, value: impl Into<Expr>) -> Self
pub fn rows(self, columns: Vec<String>, rows: Vec<Vec<Expr>>) -> Self
pub fn from_select(self, columns: Vec<String>, query: QueryBuilder) -> Self
pub fn returning(self, values: impl IntoIterator<Item = Expr>) -> Self
pub fn returning_all(self) -> Self
pub fn on_conflict( self, columns: impl IntoIterator<Item = impl Into<String>>, ) -> Self
pub fn upsert_on( self, columns: impl IntoIterator<Item = impl Into<String>>, ) -> Self
pub fn do_update( self, column: impl Into<String>, value: impl Into<Expr>, ) -> Self
pub fn execute<S: OrmSession>( self, session: S, ) -> Result<S::CommandOutput, BuilderExecutionError<S::Error>>
pub async fn execute_async<S: AsyncOrmSession>( self, session: &mut S, ) -> Result<S::CommandOutput, BuilderExecutionError<S::Error>>
Trait Implementations§
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 (const: unstable) · 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
Source§impl OrmBuilder for InsertBuilder
impl OrmBuilder for InsertBuilder
fn document(&self) -> Result<IrDocument, BuilderError>
fn to_json(&self) -> Result<String, BuilderJsonError>
fn to_sql(&self) -> Result<CompiledStatement, BuilderSqlError>
Source§impl PartialEq for InsertBuilder
impl PartialEq for InsertBuilder
impl StructuralPartialEq 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 UnsafeUnpin 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