ClickHaskell-0.0.0.1: ClickHouse driver
Safe HaskellSafe-Inferred
LanguageHaskell2010

ClickHaskell.Writing

Documentation

class (HasColumns table, GWritable (GetColumns table) (Rep record)) => WritableInto table record where Source #

Minimal complete definition

Nothing

Methods

toTsvLine :: record -> Builder Source #

default toTsvLine :: Generic record => record -> Builder Source #

writingColumns :: Builder Source #

class GWritable (columns :: [Type]) f where Source #

Instances

Instances details
GWritable columns (left1 :*: (left2 :*: right)) => GWritable columns ((left1 :*: left2) :*: right :: k -> Type) Source # 
Instance details

Defined in ClickHaskell.Writing

Methods

gToTsvBs :: forall (p :: k0). ((left1 :*: left2) :*: right) p -> Builder Source #

gWritingColumns :: Builder Source #

GWritable columns f => GWritable columns (D1 c (C1 c2 f) :: k -> Type) Source # 
Instance details

Defined in ClickHaskell.Writing

Methods

gToTsvBs :: forall (p :: k0). D1 c (C1 c2 f) p -> Builder Source #

gWritingColumns :: Builder Source #

(ThereIsNoWriteRequiredColumns restColumns, Serializable (GetColumnType column), ToChType (GetColumnType column) inputType, CompiledColumn column, '(column, restColumns) ~ TakeColumn typeName columns) => GWritable columns (S1 ('MetaSel ('Just typeName) a b f) (Rec0 inputType) :: k -> Type) Source # 
Instance details

Defined in ClickHaskell.Writing

Methods

gToTsvBs :: forall (p :: k0). S1 ('MetaSel ('Just typeName) a b f) (Rec0 inputType) p -> Builder Source #

gWritingColumns :: Builder Source #

(Serializable (GetColumnType column), ToChType (GetColumnType column) inputType, CompiledColumn column, GWritable restColumns right, GWritable '[column] (S1 ('MetaSel ('Just typeName) a b f) (Rec0 inputType)), '(column, restColumns) ~ TakeColumn typeName columns) => GWritable columns (S1 ('MetaSel ('Just typeName) a b f) (Rec0 inputType) :*: right :: k1 -> Type) Source # 
Instance details

Defined in ClickHaskell.Writing

Methods

gToTsvBs :: forall (p :: k). (S1 ('MetaSel ('Just typeName) a b f) (Rec0 inputType) :*: right) p -> Builder Source #

gWritingColumns :: Builder Source #

class Serializable chType where Source #

Methods

serialize :: chType -> Builder Source #

Instances

Instances details
Serializable ChDateTime Source # 
Instance details

Defined in ClickHaskell.Writing

Serializable ChInt128 Source # 
Instance details

Defined in ClickHaskell.Writing

Serializable ChInt16 Source # 
Instance details

Defined in ClickHaskell.Writing

Serializable ChInt32 Source # 
Instance details

Defined in ClickHaskell.Writing

Serializable ChInt64 Source # 
Instance details

Defined in ClickHaskell.Writing

Serializable ChInt8 Source # 
Instance details

Defined in ClickHaskell.Writing

Serializable ChString Source # 
Instance details

Defined in ClickHaskell.Writing

Serializable ChUInt128 Source # 
Instance details

Defined in ClickHaskell.Writing

Serializable ChUInt16 Source # 
Instance details

Defined in ClickHaskell.Writing

Serializable ChUInt32 Source # 
Instance details

Defined in ClickHaskell.Writing

Serializable ChUInt64 Source # 
Instance details

Defined in ClickHaskell.Writing

Serializable ChUInt8 Source # 
Instance details

Defined in ClickHaskell.Writing

Serializable ChUUID Source # 
Instance details

Defined in ClickHaskell.Writing

(Serializable chType, FromChType chType chType, IsLowCardinalitySupported chType) => Serializable (LowCardinality chType) Source # 
Instance details

Defined in ClickHaskell.Writing

Serializable chType => Serializable (Nullable chType) Source # 
Instance details

Defined in ClickHaskell.Writing

Methods

serialize :: Nullable chType -> Builder Source #