Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
data SeakaleError Source #
class Monad m => MonadSeakaleBase backend m | m -> backend where Source #
getBackend :: m backend Source #
throwSeakaleError :: SeakaleError -> m a Source #
catchSeakaleError :: m a -> (SeakaleError -> m a) -> m a Source #
(Monoid w, MonadSeakaleBase backend m) => MonadSeakaleBase backend (WriterT w m) Source # | |
MonadSeakaleBase backend m => MonadSeakaleBase backend (StateT s m) Source # | |
MonadSeakaleBase backend m => MonadSeakaleBase backend (ExceptT e m) Source # | |
Monad m => MonadSeakaleBase backend (FreeT (RequestF backend) m) Source # | |
MonadSeakaleBase backend m => MonadSeakaleBase backend (FreeT (StoreF backend) m) Source # | |
Monad m => MonadSeakaleBase backend (FreeT (SelectF backend) m) Source # | |
MonadSeakaleBase backend m => MonadSeakaleBase backend (ReaderT * r m) Source # | |
parenthesiseQuery :: Query n -> Query n Source #
data RepeatQuery :: Nat -> Nat -> Nat -> * where Source #
RepeatQuery :: Query k -> Query l -> ByteString -> Query i -> RepeatQuery k l i |
formatQuery :: Query n -> QueryData n -> ByteString Source #
formatMany :: RepeatQuery k l i -> QueryData k -> QueryData i -> [QueryData l] -> ByteString Source #
class Backend backend where Source #
type ColumnType backend :: * Source #
type MonadBackend backend (m :: * -> *) :: Constraint Source #
runQuery :: MonadBackend backend m => backend -> ByteString -> m (Either ByteString ([ColumnInfo backend], [Row backend])) Source #
runExecute :: MonadBackend backend m => backend -> ByteString -> m (Either ByteString Integer) Source #
data ColumnInfo backend Source #
ColumnInfo | |
|
Eq (ColumnType backend) => Eq (ColumnInfo backend) Source # | |
Show (ColumnType backend) => Show (ColumnInfo backend) Source # | |
type QueryData n = Vector n ByteString Source #
data Vector :: Nat -> * -> * where Source #
FromRow backend Zero (Vector Zero a) Source # | |
(FromRow backend One a, FromRow backend n (Vector n a)) => FromRow backend (S n) (Vector (S n) a) Source # | |
Functor (Vector n) Source # | |
NTimes (Vector Zero) Source # | |
NTimes (Vector n) => NTimes (Vector (S n)) Source # | |
IsList (Vector Zero a) Source # | |
(IsList (Vector n a), (~) * (Item (Vector n a)) a) => IsList (Vector (S n) a) Source # | |
Eq a => Eq (Vector n a) Source # | |
type Item (Vector Zero a) Source # | |
type Item (Vector (S n) a) Source # | |
vectorToList :: Vector n a -> [a] Source #