Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
convObj :: (UserInfoM m, QErrM m) => (ColumnType ('Postgres 'Vanilla) -> Value -> m SQLExp) -> HashMap PGCol SQLExp -> HashMap PGCol SQLExp -> FieldInfoMap (FieldInfo ('Postgres 'Vanilla)) -> InsObj ('Postgres 'Vanilla) -> m ([PGCol], [SQLExp]) Source #
validateInpCols :: MonadError QErr m => [PGCol] -> [PGCol] -> m () Source #
buildConflictClause :: (UserInfoM m, QErrM m) => SessionVariableBuilder m -> TableInfo ('Postgres 'Vanilla) -> [PGCol] -> OnConflict -> m (OnConflictClause ('Postgres 'Vanilla) SQLExp) Source #
convInsertQuery :: (UserInfoM m, QErrM m, TableInfoRM ('Postgres 'Vanilla) m) => (Value -> m [InsObj ('Postgres 'Vanilla)]) -> SessionVariableBuilder m -> (ColumnType ('Postgres 'Vanilla) -> Value -> m SQLExp) -> InsertQuery -> m (InsertQueryP1 ('Postgres 'Vanilla)) Source #
convInsQ :: (QErrM m, UserInfoM m, CacheRM m) => InsertQuery -> m (InsertQueryP1 ('Postgres 'Vanilla), Seq PrepArg) Source #
runInsert :: forall m. (QErrM m, UserInfoM m, CacheRM m, HasServerConfigCtx m, MonadIO m, MonadTrace m, MonadBaseControl IO m, MetadataM m) => InsertQuery -> m EncJSON Source #