CurryInfo: cdbi-3.2.0 / Database.CDBI.ER.insertEntryCombined

definition:
insertEntryCombined :: CombinedDescription a -> a -> DBAction ()
insertEntryCombined (CD desc _ _ f3) ent = mapM_ save (zip desc (f3 ent))
  where
    save :: ((Table, Int, [SQLType]), [SQLValue]) -> DBAction ()
    save ((table, _, types), vals) =
      let query = "insert into '" ++ table ++
                  "' values(" ++ questionmarksHelp (length types) ++");"
      in execute query vals
demand:
argument 1
deterministic:
deterministic operation
documentation:
--- Inserts combined entries.
--- @param cd  - The CombinedDescription that describes the entity
--- @param ent - The combined Entity to be inserted
--- @return A Result without parameter if saving worked or an Error if there
--- was a problem
failfree:
<FAILING>
indeterministic:
referentially transparent operation
infix:
no fixity defined
iotype:
{({CD},_) |-> _}
name:
insertEntryCombined
precedence:
no precedence defined
result-values:
_
signature:
Database.CDBI.Description.CombinedDescription a -> a
-> Database.CDBI.Connection.DBAction ()
solution-complete:
operation might suspend on free variables
terminating:
possibly non-terminating
totally-defined:
possibly non-reducible on same data term