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

Database.ClickHouseDriver.HTTP.Client

Description

This module provides implementation of user's API

Synopsis

Setting

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.

Query

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

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

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

actual function used by user to perform fetching command

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

insert data from

Connection