Safe Haskell | None |
---|---|
Language | Haskell2010 |
ClickHaskell.DbTypes
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 #
Minimal complete definition
Associated Types
type ToChTypeName chType :: Symbol Source #
Shows database original type name
type ToChTypeName ChString = "String" type ToChTypeName (Nullable ChUInt32) = "Nullable(UInt32)"
Instances
class IsChType chType => ToChType chType inputType where Source #
Instances
class IsChType chType => FromChType chType outputType where Source #
Methods
fromChType :: chType -> outputType Source #
Instances
class IsChType chType => ToQueryPart chType where Source #
Methods
toQueryPart :: chType -> Builder Source #
Instances
newtype ChDateTime Source #
ClickHouse DateTime column type
Constructors
MkChDateTime Word32 |
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
Constructors
MkChInt128 Int128 |
Instances
ClickHouse UInt8 column type
Instances
ClickHouse UInt16 column type
Constructors
MkChUInt16 Word16 |
Instances
ClickHouse UInt32 column type
Constructors
MkChUInt32 Word32 |
Instances
ClickHouse UInt64 column type
Constructors
MkChUInt64 Word64 |
Instances
ClickHouse UInt128 column type
Constructors
MkChUInt128 Word128 |
Instances
ClickHouse String column type
Constructors
MkChString StrictByteString |
Instances
ClickHouse UUID column type
Instances
Constructors
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
Constructors
Word128 | |
Fields
|
Instances
Constructors
Int128 | |
Fields
|