ClickHaskell-0.1.0: ClickHouse driver
Safe HaskellSafe-Inferred
LanguageHaskell2010

ClickHaskell.NativeProtocol

Synopsis

Compatibility

Client packets

data Packet (packetType :: ClientPacketType) Source #

Constructors

MkPacket 

Instances

Instances details
Deserializable (Packet packetType) Source # 
Instance details

Defined in ClickHaskell.NativeProtocol

Methods

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

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

Defined in ClickHaskell.NativeProtocol

Methods

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

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

Defined in ClickHaskell.NativeProtocol

Methods

showsPrec :: Int -> Packet packetType -> ShowS #

show :: Packet packetType -> String #

showList :: [Packet packetType] -> ShowS #

packetNumVal :: forall packetType. KnownNat (PacketTypeNumber packetType) => UVarInt Source #

Hello

data HelloPacket Source #

Instances

Instances details
Serializable HelloPacket Source # 
Instance details

Defined in ClickHaskell.NativeProtocol

Generic HelloPacket Source # 
Instance details

Defined in ClickHaskell.NativeProtocol

Associated Types

type Rep HelloPacket :: Type -> Type #

type Rep HelloPacket Source # 
Instance details

Defined in ClickHaskell.NativeProtocol

data Addendum Source #

Instances

Instances details
Serializable Addendum Source # 
Instance details

Defined in ClickHaskell.NativeProtocol

Generic Addendum Source # 
Instance details

Defined in ClickHaskell.NativeProtocol

Associated Types

type Rep Addendum :: Type -> Type #

Methods

from :: Addendum -> Rep Addendum x #

to :: Rep Addendum x -> Addendum #

type Rep Addendum Source # 
Instance details

Defined in ClickHaskell.NativeProtocol

type Rep Addendum = D1 ('MetaData "Addendum" "ClickHaskell.NativeProtocol" "ClickHaskell-0.1.0-JmQ4pBuN19B8vUyif6bZBj" 'False) (C1 ('MetaCons "MkAddendum" 'PrefixI 'True) (S1 ('MetaSel ('Just "quota_key") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (SinceRevision ChString DBMS_MIN_PROTOCOL_VERSION_WITH_QUOTA_KEY))))

Ping

data PingPacket Source #

Constructors

MkPingPacket 

Instances

Instances details
Serializable PingPacket Source # 
Instance details

Defined in ClickHaskell.NativeProtocol

Generic PingPacket Source # 
Instance details

Defined in ClickHaskell.NativeProtocol

Associated Types

type Rep PingPacket :: Type -> Type #

type Rep PingPacket Source # 
Instance details

Defined in ClickHaskell.NativeProtocol

type Rep PingPacket = D1 ('MetaData "PingPacket" "ClickHaskell.NativeProtocol" "ClickHaskell-0.1.0-JmQ4pBuN19B8vUyif6bZBj" 'False) (C1 ('MetaCons "MkPingPacket" 'PrefixI 'True) (S1 ('MetaSel ('Just "packet_type") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Packet 'Ping))))

Query

data QueryPacket Source #

Instances

Instances details
Serializable QueryPacket Source # 
Instance details

Defined in ClickHaskell.NativeProtocol

Generic QueryPacket Source # 
Instance details

Defined in ClickHaskell.NativeProtocol

Associated Types

type Rep QueryPacket :: Type -> Type #

type Rep QueryPacket Source # 
Instance details

Defined in ClickHaskell.NativeProtocol

data DbSettings Source #

Constructors

MkDbSettings 

Instances

Instances details
Serializable DbSettings Source # 
Instance details

Defined in ClickHaskell.NativeProtocol

data Flags Source #

Constructors

IMPORTANT 
CUSTOM 
OBSOLETE 

data ClientInfo Source #

Instances

Instances details
Serializable ClientInfo Source # 
Instance details

Defined in ClickHaskell.NativeProtocol

Generic ClientInfo Source # 
Instance details

Defined in ClickHaskell.NativeProtocol

Associated Types

type Rep ClientInfo :: Type -> Type #

type Rep ClientInfo Source # 
Instance details

Defined in ClickHaskell.NativeProtocol

type Rep ClientInfo = D1 ('MetaData "ClientInfo" "ClickHaskell.NativeProtocol" "ClickHaskell-0.1.0-JmQ4pBuN19B8vUyif6bZBj" 'False) (C1 ('MetaCons "MkClientInfo" 'PrefixI 'True) ((((S1 ('MetaSel ('Just "query_kind") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 QueryKind) :*: S1 ('MetaSel ('Just "initial_user") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ChString)) :*: (S1 ('MetaSel ('Just "initial_query_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ChString) :*: S1 ('MetaSel ('Just "initial_adress") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ChString))) :*: ((S1 ('MetaSel ('Just "initial_time") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (SinceRevision ChInt64 DBMS_MIN_PROTOCOL_VERSION_WITH_INITIAL_QUERY_START_TIME)) :*: S1 ('MetaSel ('Just "interface_type") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ChUInt8)) :*: (S1 ('MetaSel ('Just "os_user") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ChString) :*: (S1 ('MetaSel ('Just "hostname") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ChString) :*: S1 ('MetaSel ('Just "client_name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ChString))))) :*: (((S1 ('MetaSel ('Just "client_major") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 UVarInt) :*: S1 ('MetaSel ('Just "client_minor") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 UVarInt)) :*: (S1 ('MetaSel ('Just "client_revision") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ProtocolRevision) :*: (S1 ('MetaSel ('Just "quota_key") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (SinceRevision ChString DBMS_MIN_REVISION_WITH_QUOTA_KEY_IN_CLIENT_INFO)) :*: S1 ('MetaSel ('Just "distrubuted_depth") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (SinceRevision UVarInt DBMS_MIN_PROTOCOL_VERSION_WITH_DISTRIBUTED_DEPTH))))) :*: ((S1 ('MetaSel ('Just "client_patch") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (SinceRevision UVarInt DBMS_MIN_REVISION_WITH_VERSION_PATCH)) :*: S1 ('MetaSel ('Just "open_telemetry") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (SinceRevision ChUInt8 DBMS_MIN_REVISION_WITH_OPENTELEMETRY))) :*: (S1 ('MetaSel ('Just "collaborate_with_initiator") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (SinceRevision UVarInt DBMS_MIN_REVISION_WITH_PARALLEL_REPLICAS)) :*: (S1 ('MetaSel ('Just "count_participating_replicas") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (SinceRevision UVarInt DBMS_MIN_REVISION_WITH_PARALLEL_REPLICAS)) :*: S1 ('MetaSel ('Just "number_of_current_replica") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (SinceRevision UVarInt DBMS_MIN_REVISION_WITH_PARALLEL_REPLICAS))))))))

Data

data DataPacket Source #

Instances

Instances details
Deserializable DataPacket Source # 
Instance details

Defined in ClickHaskell.NativeProtocol

Serializable DataPacket Source # 
Instance details

Defined in ClickHaskell.NativeProtocol

Generic DataPacket Source # 
Instance details

Defined in ClickHaskell.NativeProtocol

Associated Types

type Rep DataPacket :: Type -> Type #

Show DataPacket Source # 
Instance details

Defined in ClickHaskell.NativeProtocol

type Rep DataPacket Source # 
Instance details

Defined in ClickHaskell.NativeProtocol

type Rep DataPacket = D1 ('MetaData "DataPacket" "ClickHaskell.NativeProtocol" "ClickHaskell-0.1.0-JmQ4pBuN19B8vUyif6bZBj" 'False) (C1 ('MetaCons "MkDataPacket" 'PrefixI 'True) ((S1 ('MetaSel ('Just "packet_type") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Packet 'Data)) :*: S1 ('MetaSel ('Just "table_name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ChString)) :*: (S1 ('MetaSel ('Just "block_info") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 BlockInfo) :*: (S1 ('MetaSel ('Just "columns_count") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 UVarInt) :*: S1 ('MetaSel ('Just "rows_count") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 UVarInt)))))

data BlockInfo Source #

Instances

Instances details
Deserializable BlockInfo Source # 
Instance details

Defined in ClickHaskell.NativeProtocol

Serializable BlockInfo Source # 
Instance details

Defined in ClickHaskell.NativeProtocol

Generic BlockInfo Source # 
Instance details

Defined in ClickHaskell.NativeProtocol

Associated Types

type Rep BlockInfo :: Type -> Type #

Show BlockInfo Source # 
Instance details

Defined in ClickHaskell.NativeProtocol

type Rep BlockInfo Source # 
Instance details

Defined in ClickHaskell.NativeProtocol

type Rep BlockInfo = D1 ('MetaData "BlockInfo" "ClickHaskell.NativeProtocol" "ClickHaskell-0.1.0-JmQ4pBuN19B8vUyif6bZBj" 'False) (C1 ('MetaCons "MkBlockInfo" 'PrefixI 'True) ((S1 ('MetaSel ('Just "field_num1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 UVarInt) :*: S1 ('MetaSel ('Just "is_overflows") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ChUInt8)) :*: (S1 ('MetaSel ('Just "field_num2") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 UVarInt) :*: (S1 ('MetaSel ('Just "bucket_num") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ChInt32) :*: S1 ('MetaSel ('Just "eof") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 UVarInt)))))

Server packets

HelloResponse

data HelloResponse Source #

Instances

Instances details
Deserializable HelloResponse Source # 
Instance details

Defined in ClickHaskell.NativeProtocol

Generic HelloResponse Source # 
Instance details

Defined in ClickHaskell.NativeProtocol

Associated Types

type Rep HelloResponse :: Type -> Type #

Show HelloResponse Source # 
Instance details

Defined in ClickHaskell.NativeProtocol

type Rep HelloResponse Source # 
Instance details

Defined in ClickHaskell.NativeProtocol

type Rep HelloResponse = D1 ('MetaData "HelloResponse" "ClickHaskell.NativeProtocol" "ClickHaskell-0.1.0-JmQ4pBuN19B8vUyif6bZBj" 'False) (C1 ('MetaCons "MkHelloResponse" 'PrefixI 'True) (((S1 ('MetaSel ('Just "server_name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ChString) :*: (S1 ('MetaSel ('Just "server_version_major") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 UVarInt) :*: S1 ('MetaSel ('Just "server_version_minor") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 UVarInt))) :*: (S1 ('MetaSel ('Just "server_revision") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ProtocolRevision) :*: (S1 ('MetaSel ('Just "server_parallel_replicas_proto") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (SinceRevision UVarInt DBMS_MIN_REVISION_WITH_VERSIONED_PARALLEL_REPLICAS_PROTOCOL)) :*: S1 ('MetaSel ('Just "server_timezone") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (SinceRevision ChString DBMS_MIN_REVISION_WITH_SERVER_TIMEZONE))))) :*: ((S1 ('MetaSel ('Just "server_display_name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (SinceRevision ChString DBMS_MIN_REVISION_WITH_SERVER_DISPLAY_NAME)) :*: (S1 ('MetaSel ('Just "server_version_patch") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (SinceRevision UVarInt DBMS_MIN_REVISION_WITH_VERSION_PATCH)) :*: S1 ('MetaSel ('Just "proto_send_chunked_srv") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (SinceRevision ChString DBMS_MIN_PROTOCOL_VERSION_WITH_CHUNKED_PACKETS)))) :*: (S1 ('MetaSel ('Just "proto_recv_chunked_srv") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (SinceRevision ChString DBMS_MIN_PROTOCOL_VERSION_WITH_CHUNKED_PACKETS)) :*: (S1 ('MetaSel ('Just "password_complexity_rules") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (SinceRevision [PasswordComplexityRules] DBMS_MIN_PROTOCOL_VERSION_WITH_PASSWORD_COMPLEXITY_RULES)) :*: S1 ('MetaSel ('Just "read_nonce") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (SinceRevision ChUInt64 DBMS_MIN_REVISION_WITH_INTERSERVER_SECRET_V2)))))))

data PasswordComplexityRules Source #

Exception

data ExceptionPacket Source #

Progress

data ProgressPacket Source #

Instances

Instances details
Deserializable ProgressPacket Source # 
Instance details

Defined in ClickHaskell.NativeProtocol

Generic ProgressPacket Source # 
Instance details

Defined in ClickHaskell.NativeProtocol

Associated Types

type Rep ProgressPacket :: Type -> Type #

Show ProgressPacket Source # 
Instance details

Defined in ClickHaskell.NativeProtocol

type Rep ProgressPacket Source # 
Instance details

Defined in ClickHaskell.NativeProtocol

ProfileInfo

data ProfileInfo Source #

Instances

Instances details
Deserializable ProfileInfo Source # 
Instance details

Defined in ClickHaskell.NativeProtocol

Generic ProfileInfo Source # 
Instance details

Defined in ClickHaskell.NativeProtocol

Associated Types

type Rep ProfileInfo :: Type -> Type #

Show ProfileInfo Source # 
Instance details

Defined in ClickHaskell.NativeProtocol

type Rep ProfileInfo Source # 
Instance details

Defined in ClickHaskell.NativeProtocol

TableColumns

data TableColumns Source #

Instances

Instances details
Deserializable TableColumns Source # 
Instance details

Defined in ClickHaskell.NativeProtocol

Generic TableColumns Source # 
Instance details

Defined in ClickHaskell.NativeProtocol

Associated Types

type Rep TableColumns :: Type -> Type #

Show TableColumns Source # 
Instance details

Defined in ClickHaskell.NativeProtocol

type Rep TableColumns Source # 
Instance details

Defined in ClickHaskell.NativeProtocol

type Rep TableColumns = D1 ('MetaData "TableColumns" "ClickHaskell.NativeProtocol" "ClickHaskell-0.1.0-JmQ4pBuN19B8vUyif6bZBj" 'False) (C1 ('MetaCons "MkTableColumns" 'PrefixI 'True) (S1 ('MetaSel ('Just "table_name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ChString) :*: S1 ('MetaSel ('Just "table_columns") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ChString)))

Versioning