Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- class KnownSymbol (ToChTypeName chType) => IsChType chType where
- type ToChTypeName chType :: Symbol
- chTypeName :: Builder
- defaultValueOfTypeName :: chType
- class IsChType chType => ToChType chType inputType where
- toChType :: inputType -> chType
- class IsChType chType => FromChType chType outputType where
- fromChType :: chType -> outputType
- class IsChType chType => ToQueryPart chType where
- toQueryPart :: chType -> Builder
- newtype ChDateTime = MkChDateTime Word32
- newtype ChDate = MkChDate Word16
- newtype ChInt8 = MkChInt8 Int8
- newtype ChInt16 = MkChInt16 Int16
- newtype ChInt32 = MkChInt32 Int32
- newtype ChInt64 = MkChInt64 Int64
- newtype ChInt128 = MkChInt128 Int128
- newtype ChUInt8 = MkChUInt8 Word8
- newtype ChUInt16 = MkChUInt16 Word16
- newtype ChUInt32 = MkChUInt32 Word32
- newtype ChUInt64 = MkChUInt64 Word64
- newtype ChUInt128 = MkChUInt128 Word128
- newtype ChString = MkChString StrictByteString
- newtype ChUUID = MkChUUID Word128
- newtype ChArray a = MkChArray [a]
- type Nullable = Maybe
- data LowCardinality chType
- class IsChType chType => IsLowCardinalitySupported chType
- newtype UVarInt = MkUVarInt Word64
- data Word128 = Word128 {
- word128Hi64 :: !Word64
- word128Lo64 :: !Word64
- data Int128 = Int128 {
- int128Hi64 :: !Word64
- int128Lo64 :: !Word64
Documentation
class KnownSymbol (ToChTypeName chType) => IsChType chType where Source #
type ToChTypeName chType :: Symbol Source #
Shows database original type name
type ToChTypeName ChString = "String" type ToChTypeName (Nullable ChUInt32) = "Nullable(UInt32)"
chTypeName :: Builder Source #
defaultValueOfTypeName :: chType Source #
Instances
class IsChType chType => ToChType chType inputType where Source #
Instances
class IsChType chType => FromChType chType outputType where Source #
fromChType :: chType -> outputType Source #
Instances
class IsChType chType => ToQueryPart chType where Source #
toQueryPart :: chType -> Builder Source #
Instances
newtype ChDateTime Source #
ClickHouse DateTime column type
Instances
Instances
ClickHouse Int8 column type
Instances
ClickHouse Int16 column type
Instances
ClickHouse Int32 column type
Instances
ClickHouse Int64 column type
Instances
ClickHouse Int128 column type
Instances
ClickHouse UInt8 column type
Instances
ClickHouse UInt16 column type
Instances
ClickHouse UInt32 column type
Instances
ClickHouse UInt64 column type
Instances
ClickHouse UInt128 column type
Instances
ClickHouse String column type
Instances
ClickHouse UUID column type
Instances
MkChArray [a] |
Instances
data LowCardinality chType Source #
ClickHouse LowCardinality(T) column type
Instances
class IsChType chType => IsLowCardinalitySupported chType Source #
Instances
IsLowCardinalitySupported ChString Source # | |
Defined in ClickHaskell.DbTypes | |
(IsChType chType, TypeError (((((('Text "LowCardinality(" ':<>: 'ShowType chType) ':<>: 'Text ") is unsupported") ':$$: 'Text "Use one of these types:") ':$$: 'Text " ChString") ':$$: 'Text " ChDateTime") ':$$: 'Text " Nullable(T)") :: Constraint) => IsLowCardinalitySupported chType Source # | |
Defined in ClickHaskell.DbTypes | |
(IsLowCardinalitySupported chType, IsChType (Nullable chType)) => IsLowCardinalitySupported (Nullable chType) Source # | |
Defined in ClickHaskell.DbTypes |
Unsigned variable-length quantity encoding
Part of protocol implementation
Instances
Word128 | |
|
Instances
Int128 | |
|