Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data Returning a b where
- Count :: Returning a Int64
- Returning :: Default QueryRunner b c => (a -> b) -> Returning a [c]
- ReturningExplicit :: QueryRunner b c -> (a -> b) -> Returning a [c]
- arrangeInsertMany :: Table columns a -> NonEmpty columns -> Maybe OnConflict -> SqlInsert
- arrangeInsertManyReturning :: Unpackspec columnsReturned ignored -> Table columnsW columnsR -> NonEmpty columnsW -> (columnsR -> columnsReturned) -> Maybe OnConflict -> Returning SqlInsert
- arrangeInsertManyReturningSql :: Unpackspec columnsReturned ignored -> Table columnsW columnsR -> NonEmpty columnsW -> (columnsR -> columnsReturned) -> Maybe OnConflict -> String
- arrangeInsertManySql :: Table columnsW columnsR -> NonEmpty columnsW -> Maybe OnConflict -> String
- runInsertManyReturningExplicit :: QueryRunner columnsReturned haskells -> Connection -> Table columnsW columnsR -> [columnsW] -> (columnsR -> columnsReturned) -> Maybe OnConflict -> IO [haskells]
- newtype Updater a b = Updater (a -> b)
Documentation
data Returning a b where Source #
Don't use this internal datatype. Instead you probably want
rCount
or rReturning
.
Count :: Returning a Int64 | |
Returning :: Default QueryRunner b c => (a -> b) -> Returning a [c] | |
ReturningExplicit :: QueryRunner b c -> (a -> b) -> Returning a [c] |
arrangeInsertMany :: Table columns a -> NonEmpty columns -> Maybe OnConflict -> SqlInsert Source #
arrangeInsertManyReturning :: Unpackspec columnsReturned ignored -> Table columnsW columnsR -> NonEmpty columnsW -> (columnsR -> columnsReturned) -> Maybe OnConflict -> Returning SqlInsert Source #
arrangeInsertManyReturningSql :: Unpackspec columnsReturned ignored -> Table columnsW columnsR -> NonEmpty columnsW -> (columnsR -> columnsReturned) -> Maybe OnConflict -> String Source #
arrangeInsertManySql :: Table columnsW columnsR -> NonEmpty columnsW -> Maybe OnConflict -> String Source #
runInsertManyReturningExplicit :: QueryRunner columnsReturned haskells -> Connection -> Table columnsW columnsR -> [columnsW] -> (columnsR -> columnsReturned) -> Maybe OnConflict -> IO [haskells] Source #
Updater (a -> b) |
Instances
Profunctor Updater Source # | |
Defined in Opaleye.Internal.Manipulation | |
ProductProfunctor Updater Source # | |
Default Updater (Column a) (Maybe (Column a)) Source # | |
Default Updater (Column a) (Column a) Source # | |
Functor (Updater a) Source # | |
Applicative (Updater a) Source # | |
Defined in Opaleye.Internal.Manipulation |