Trait ormx::Insert[][src]

pub trait Insert where
    Self: Sized + Send + Sync + 'static, 
{ type Table: Table; fn insert(
        self,
        db: &mut <Db as Database>::Connection
    ) -> BoxFuture<'_, Result<Self::Table>>; }

A type which can be inserted as a row into the database.

Associated Types

Loading content...

Required methods

fn insert(
    self,
    db: &mut <Db as Database>::Connection
) -> BoxFuture<'_, Result<Self::Table>>
[src]

Insert a row into the database, returning the inserted row.

Loading content...

Implementors

Loading content...