clickhouse-haskell-0.1.2.0: A Haskell library as database client for Clickhouse
Safe HaskellNone
LanguageHaskell2010

Database.ClickHouseDriver.HTTP

Synopsis

Documentation

data HttpConnection Source #

Constructors

HttpConnection 

Fields

data HttpParams Source #

Instances

Instances details
Default HttpParams Source # 
Instance details

Defined in Database.ClickHouseDriver.HTTP.Connection

Methods

def :: HttpParams #

data Format Source #

Constructors

CSV 
JSON 
TUPLE 

Instances

Instances details
Eq Format Source # 
Instance details

Defined in Database.ClickHouseDriver.HTTP.Types

Methods

(==) :: Format -> Format -> Bool #

(/=) :: Format -> Format -> Bool #

type Haxl a = GenHaxl () a Source #

getByteString :: String -> GenHaxl u w ByteString Source #

Fetch data from ClickHouse client in the text format.

getJSON :: String -> GenHaxl u w JSONResult Source #

Fetch data from ClickHouse client in the JSON format.

getTextM :: (Monad m, Traversable m) => m String -> GenHaxl u w (m Text) Source #

Fetch data from Clickhouse client with commands warped in a Traversable monad.

getJsonM :: (Monad m, Traversable m) => m String -> GenHaxl u w (m JSONResult) Source #

Fetch data from Clickhouse client in the format of JSON

exec :: HttpEnvironment a => String -> Env a w -> IO (Either ByteString String) Source #

actual function used by user to perform fetching command

insertOneRow :: HttpEnvironment a => String -> [ClickhouseType] -> Env a w -> IO (Either ByteString String) Source #

insert one row

insertMany :: HttpEnvironment a => String -> [[ClickhouseType]] -> Env a w -> IO (Either ByteString String) Source #

insert one or more rows

insertFromFile :: HttpEnvironment a => String -> Format -> FilePath -> Env a w -> IO (Either ByteString String) Source #

insert data from

setupEnv :: (MonadIO m, HttpEnvironment a) => a -> m (Env a w) Source #

Default environment

runQuery :: MonadIO m => Env u w -> GenHaxl u w a -> m a Source #

rename runHaxl function.

data HttpConnection Source #

Constructors

HttpConnection 

Fields