rel8-internal
Safe HaskellNone
LanguageHaskell2010

Rel8.Internal.Statement.Insert

Synopsis

Documentation

data Insert a where Source #

The constituent parts of a SQL INSERT statement.

Constructors

Insert 

Fields

  • :: forall names exprs a. Selects names exprs
     
  • => { into :: TableSchema names

    Which table to insert into.

  •    , rows :: Query exprs

    The rows to insert. This can be an arbitrary query — use values insert a static list of rows.

  •    , onConflict :: OnConflict exprs

    What to do if the inserted rows conflict with data already in the table.

  •    , returning :: Returning names a

    What information to return on completion.

  •    } -> Insert a
     

insert :: Insert a -> Statement a Source #

Build an INSERT Statement.