Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- insertIntoHttpGeneric :: forall request response record. ImpliesClickHouseHttp request response => ChCredential -> Builder -> (record -> Builder) -> [record] -> (request -> forall result. (response -> IO result) -> IO result) -> IO ()
- selectFromHttpGeneric :: forall request response record. ImpliesClickHouseHttp request response => ChCredential -> Builder -> (StrictByteString -> record) -> (request -> forall result. (response -> IO result) -> IO result) -> IO [record]
- class ImpliesClickHouseHttp request response where
- initAuthorizedRequest :: ChCredential -> Either SomeException request
- injectStatementToRequest :: Builder -> request -> request
- injectReadingToResponse :: (StrictByteString -> record) -> response -> IO [record]
- injectWritingToRequest :: Builder -> [rec] -> (rec -> Builder) -> request -> request
- throwOnNon200 :: response -> IO response
- data ChCredential = MkChCredential {}
- newtype ChException = MkChException {}
Documentation
insertIntoHttpGeneric :: forall request response record. ImpliesClickHouseHttp request response => ChCredential -> Builder -> (record -> Builder) -> [record] -> (request -> forall result. (response -> IO result) -> IO result) -> IO () Source #
selectFromHttpGeneric :: forall request response record. ImpliesClickHouseHttp request response => ChCredential -> Builder -> (StrictByteString -> record) -> (request -> forall result. (response -> IO result) -> IO result) -> IO [record] Source #
Clients abstraction
class ImpliesClickHouseHttp request response where Source #
Clients initialization abstraction for different backends
initAuthorizedRequest :: ChCredential -> Either SomeException request Source #
injectStatementToRequest :: Builder -> request -> request Source #
injectReadingToResponse :: (StrictByteString -> record) -> response -> IO [record] Source #
injectWritingToRequest :: Builder -> [rec] -> (rec -> Builder) -> request -> request Source #
throwOnNon200 :: response -> IO response Source #
data ChCredential Source #
ToDocument
Instances
newtype ChException Source #
ToDocument
Instances
Exception ChException Source # | |
Defined in ClickHaskell.HTTP | |
Show ChException Source # | |
Defined in ClickHaskell.HTTP showsPrec :: Int -> ChException -> ShowS # show :: ChException -> String # showList :: [ChException] -> ShowS # |