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

Database.ClickHouseDriver.Column

Description

This module contains the implementations of serialization and deserialization of Clickhouse data types.

Synopsis

Documentation

readColumn Source #

Arguments

:: ServerInfo

Server information is needed in case of some parameters are missing

-> Int

number of rows

-> ByteString

data type

-> Reader (Vector ClickhouseType) 

writeColumn Source #

Arguments

:: Context

context contains client information and server information

-> ByteString

column name

-> ByteString

column type (String, Int, etc)

-> Vector ClickhouseType

items to be serialized.

-> Writer Builder

result wrapped in a customized Writer Monad used for concatenating string builders.

readIntColumn :: Int -> ByteString -> Reader (Vector ClickhouseType) Source #

read data in format of bytestring into format of haskell type.

getSpecs :: ByteString -> [ByteString] Source #

Get rid of commas and spaces

putStrLn :: Vector (Vector ClickhouseType) -> IO () Source #

print in format