ClickHaskell-0.1.0: ClickHouse driver
Safe HaskellSafe-Inferred
LanguageHaskell2010

ClickHaskell.DeSerialization

Synopsis

Deserialization

class Deserializable chType where Source #

Minimal complete definition

Nothing

Methods

deserialize :: ProtocolRevision -> Get chType Source #

default deserialize :: (Generic chType, GDeserializable (Rep chType)) => ProtocolRevision -> Get chType Source #

Instances

Instances details
Deserializable ChDate Source # 
Instance details

Defined in ClickHaskell.DeSerialization

Deserializable ChDateTime Source # 
Instance details

Defined in ClickHaskell.DeSerialization

Deserializable ChInt128 Source # 
Instance details

Defined in ClickHaskell.DeSerialization

Deserializable ChInt16 Source # 
Instance details

Defined in ClickHaskell.DeSerialization

Deserializable ChInt32 Source # 
Instance details

Defined in ClickHaskell.DeSerialization

Deserializable ChInt64 Source # 
Instance details

Defined in ClickHaskell.DeSerialization

Deserializable ChInt8 Source # 
Instance details

Defined in ClickHaskell.DeSerialization

Deserializable ChString Source # 
Instance details

Defined in ClickHaskell.DeSerialization

Deserializable ChUInt128 Source # 
Instance details

Defined in ClickHaskell.DeSerialization

Deserializable ChUInt16 Source # 
Instance details

Defined in ClickHaskell.DeSerialization

Deserializable ChUInt32 Source # 
Instance details

Defined in ClickHaskell.DeSerialization

Deserializable ChUInt64 Source # 
Instance details

Defined in ClickHaskell.DeSerialization

Deserializable ChUInt8 Source # 
Instance details

Defined in ClickHaskell.DeSerialization

Deserializable ChUUID Source # 
Instance details

Defined in ClickHaskell.DeSerialization

Deserializable UVarInt Source # 
Instance details

Defined in ClickHaskell.DeSerialization

Deserializable BlockInfo Source # 
Instance details

Defined in ClickHaskell.NativeProtocol

Deserializable DataPacket Source # 
Instance details

Defined in ClickHaskell.NativeProtocol

Deserializable ExceptionPacket Source # 
Instance details

Defined in ClickHaskell.NativeProtocol

Deserializable HelloResponse Source # 
Instance details

Defined in ClickHaskell.NativeProtocol

Deserializable PasswordComplexityRules Source # 
Instance details

Defined in ClickHaskell.NativeProtocol

Deserializable ProfileInfo Source # 
Instance details

Defined in ClickHaskell.NativeProtocol

Deserializable ProgressPacket Source # 
Instance details

Defined in ClickHaskell.NativeProtocol

Deserializable ServerPacketType Source # 
Instance details

Defined in ClickHaskell.NativeProtocol

Deserializable TableColumns Source # 
Instance details

Defined in ClickHaskell.NativeProtocol

Deserializable ProtocolRevision Source # 
Instance details

Defined in ClickHaskell.DeSerialization

Deserializable (Packet packetType) Source # 
Instance details

Defined in ClickHaskell.NativeProtocol

Methods

deserialize :: ProtocolRevision -> Get (Packet packetType) Source #

Deserializable [PasswordComplexityRules] Source # 
Instance details

Defined in ClickHaskell.NativeProtocol

(KnownNat revision, Deserializable chType) => Deserializable (SinceRevision chType revision) Source # 
Instance details

Defined in ClickHaskell.DeSerialization

Methods

deserialize :: ProtocolRevision -> Get (SinceRevision chType revision) Source #

Generics

class GDeserializable f where Source #

Instances

Instances details
GDeserializable (left :*: (right1 :*: right2)) => GDeserializable ((left :*: right1) :*: right2) Source # 
Instance details

Defined in ClickHaskell.DeSerialization

Methods

gDeserialize :: ProtocolRevision -> Get (((left :*: right1) :*: right2) p) Source #

(GDeserializable (S1 metaSel field), GDeserializable right) => GDeserializable (S1 metaSel field :*: right) Source # 
Instance details

Defined in ClickHaskell.DeSerialization

Methods

gDeserialize :: ProtocolRevision -> Get ((S1 metaSel field :*: right) p) Source #

GDeserializable f => GDeserializable (D1 c (C1 c2 f)) Source # 
Instance details

Defined in ClickHaskell.DeSerialization

Methods

gDeserialize :: ProtocolRevision -> Get (D1 c (C1 c2 f) p) Source #

Deserializable chType => GDeserializable (S1 ('MetaSel ('Just typeName) a b f) (Rec0 chType)) Source # 
Instance details

Defined in ClickHaskell.DeSerialization

Methods

gDeserialize :: ProtocolRevision -> Get (S1 ('MetaSel ('Just typeName) a b f) (Rec0 chType) p) Source #

Versioning

Database types

Serialization

class Serializable chType where Source #

Minimal complete definition

Nothing

Methods

serialize :: ProtocolRevision -> chType -> Builder Source #

default serialize :: (Generic chType, GSerializable (Rep chType)) => ProtocolRevision -> chType -> Builder Source #

Instances

Instances details
Serializable ChDate Source # 
Instance details

Defined in ClickHaskell.DeSerialization

Serializable ChDateTime Source # 
Instance details

Defined in ClickHaskell.DeSerialization

Serializable ChInt128 Source # 
Instance details

Defined in ClickHaskell.DeSerialization

Serializable ChInt16 Source # 
Instance details

Defined in ClickHaskell.DeSerialization

Serializable ChInt32 Source # 
Instance details

Defined in ClickHaskell.DeSerialization

Serializable ChInt64 Source # 
Instance details

Defined in ClickHaskell.DeSerialization

Serializable ChInt8 Source # 
Instance details

Defined in ClickHaskell.DeSerialization

Serializable ChString Source # 
Instance details

Defined in ClickHaskell.DeSerialization

Serializable ChUInt128 Source # 
Instance details

Defined in ClickHaskell.DeSerialization

Serializable ChUInt16 Source # 
Instance details

Defined in ClickHaskell.DeSerialization

Serializable ChUInt32 Source # 
Instance details

Defined in ClickHaskell.DeSerialization

Serializable ChUInt64 Source # 
Instance details

Defined in ClickHaskell.DeSerialization

Serializable ChUInt8 Source # 
Instance details

Defined in ClickHaskell.DeSerialization

Serializable ChUUID Source # 
Instance details

Defined in ClickHaskell.DeSerialization

Serializable UVarInt Source # 
Instance details

Defined in ClickHaskell.DeSerialization

Serializable Addendum Source # 
Instance details

Defined in ClickHaskell.NativeProtocol

Serializable BlockInfo Source # 
Instance details

Defined in ClickHaskell.NativeProtocol

Serializable ClientInfo Source # 
Instance details

Defined in ClickHaskell.NativeProtocol

Serializable DataPacket Source # 
Instance details

Defined in ClickHaskell.NativeProtocol

Serializable DbSettings Source # 
Instance details

Defined in ClickHaskell.NativeProtocol

Serializable HelloPacket Source # 
Instance details

Defined in ClickHaskell.NativeProtocol

Serializable PingPacket Source # 
Instance details

Defined in ClickHaskell.NativeProtocol

Serializable QueryKind Source # 
Instance details

Defined in ClickHaskell.NativeProtocol

Serializable QueryPacket Source # 
Instance details

Defined in ClickHaskell.NativeProtocol

Serializable QueryParameters Source # 
Instance details

Defined in ClickHaskell.NativeProtocol

Serializable QueryStage Source # 
Instance details

Defined in ClickHaskell.NativeProtocol

Serializable ProtocolRevision Source # 
Instance details

Defined in ClickHaskell.DeSerialization

(Serializable (Columns columns), Serializable col) => Serializable (Columns (col ': columns)) Source # 
Instance details

Defined in ClickHaskell.Columns

Methods

serialize :: ProtocolRevision -> Columns (col ': columns) -> Builder Source #

Serializable (Columns ('[] :: [Type])) Source # 
Instance details

Defined in ClickHaskell.Columns

KnownNat (PacketTypeNumber packetType) => Serializable (Packet packetType) Source # 
Instance details

Defined in ClickHaskell.NativeProtocol

Methods

serialize :: ProtocolRevision -> Packet packetType -> Builder Source #

(KnownColumn (Column name (Nullable chType)), IsChType chType, Serializable chType, TypeError ('Text "LowCardinality serialization still unsupported") :: Constraint) => Serializable (Column name (LowCardinality chType)) Source # 
Instance details

Defined in ClickHaskell.Columns

(KnownColumn (Column name (Nullable chType)), IsChType chType, Serializable chType) => Serializable (Column name (Nullable chType)) Source # 
Instance details

Defined in ClickHaskell.Columns

Methods

serialize :: ProtocolRevision -> Column name (Nullable chType) -> Builder Source #

(KnownColumn (Column name chType), IsChType chType, Serializable chType) => Serializable (Column name chType) Source # 
Instance details

Defined in ClickHaskell.Columns

Methods

serialize :: ProtocolRevision -> Column name chType -> Builder Source #

(KnownNat revision, Serializable chType) => Serializable (SinceRevision chType revision) Source # 
Instance details

Defined in ClickHaskell.DeSerialization

Methods

serialize :: ProtocolRevision -> SinceRevision chType revision -> Builder Source #

Versioning

Database types

Generics

class GSerializable f where Source #

Instances

Instances details
GSerializable (left1 :*: (left2 :*: right)) => GSerializable ((left1 :*: left2) :*: right) Source # 
Instance details

Defined in ClickHaskell.DeSerialization

Methods

gSerialize :: ProtocolRevision -> ((left1 :*: left2) :*: right) p -> Builder Source #

(Serializable chType, GSerializable right) => GSerializable (S1 ('MetaSel ('Just typeName) a b f) (Rec0 chType) :*: right) Source # 
Instance details

Defined in ClickHaskell.DeSerialization

Methods

gSerialize :: ProtocolRevision -> (S1 ('MetaSel ('Just typeName) a b f) (Rec0 chType) :*: right) p -> Builder Source #

GSerializable f => GSerializable (D1 c (C1 c2 f)) Source # 
Instance details

Defined in ClickHaskell.DeSerialization

Methods

gSerialize :: ProtocolRevision -> D1 c (C1 c2 f) p -> Builder Source #

Serializable chType => GSerializable (S1 ('MetaSel ('Just typeName) a b f) (Rec0 chType)) Source # 
Instance details

Defined in ClickHaskell.DeSerialization

Methods

gSerialize :: ProtocolRevision -> S1 ('MetaSel ('Just typeName) a b f) (Rec0 chType) p -> Builder Source #