pub enum ReturningStyle {
Suffix,
OutputClause,
SeparateQuery(&'static str),
}Expand description
How a database hands back the key it generated for an inserted row.
Variants§
Suffix
insert into … values (…) returning "id" — PostgreSQL.
OutputClause
insert into … (…) output inserted.[id] values (…) — SQL Server puts it
between the column list and values, so it cannot be appended.
SeparateQuery(&'static str)
Not supported: the key is read with a second statement. MySQL.
Trait Implementations§
Source§impl Clone for ReturningStyle
impl Clone for ReturningStyle
Source§fn clone(&self) -> ReturningStyle
fn clone(&self) -> ReturningStyle
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 ReturningStyle
impl Debug for ReturningStyle
Source§impl PartialEq for ReturningStyle
impl PartialEq for ReturningStyle
impl StructuralPartialEq for ReturningStyle
Auto Trait Implementations§
impl Freeze for ReturningStyle
impl RefUnwindSafe for ReturningStyle
impl Send for ReturningStyle
impl Sync for ReturningStyle
impl Unpin for ReturningStyle
impl UnsafeUnpin for ReturningStyle
impl UnwindSafe for ReturningStyle
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