ClickHaskell-0.0.0.1: ClickHouse driver
Safe HaskellSafe-Inferred
LanguageHaskell2010

ClickHaskell.HTTP

Synopsis

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

Methods

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

Constructors

MkChCredential 

Fields

Instances

Instances details
Generic ChCredential Source # 
Instance details

Defined in ClickHaskell.HTTP

Associated Types

type Rep ChCredential :: Type -> Type #

Show ChCredential Source # 
Instance details

Defined in ClickHaskell.HTTP

NFData ChCredential Source # 
Instance details

Defined in ClickHaskell.HTTP

Methods

rnf :: ChCredential -> () #

Eq ChCredential Source # 
Instance details

Defined in ClickHaskell.HTTP

type Rep ChCredential Source # 
Instance details

Defined in ClickHaskell.HTTP

type Rep ChCredential = D1 ('MetaData "ChCredential" "ClickHaskell.HTTP" "ClickHaskell-0.0.0.1-9wurWW8TfS5EO9DgDfTIU" 'False) (C1 ('MetaCons "MkChCredential" 'PrefixI 'True) ((S1 ('MetaSel ('Just "chLogin") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "chPass") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "chUrl") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "chDatabase") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Text))))