Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- class IsChType chType where
- type ToChTypeName chType :: Symbol
- type IsWriteOptional chType :: Bool
- chTypeName :: KnownSymbol (ToChTypeName chType) => Builder
- 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
- data ChDateTime
- data ChInt8
- data ChInt16
- data ChInt32
- data ChInt64
- data ChInt128
- data Int128
- data ChUInt8
- data ChUInt16
- data ChUInt32
- data ChUInt64
- data ChUInt128
- data Word128
- data ChString
- data ChUUID
- data ChArray a
- type Nullable = Maybe
- data LowCardinality chType
- class IsChType chType => IsLowCardinalitySupported chType
Documentation
class IsChType chType where Source #
Nothing
type ToChTypeName chType :: Symbol Source #
Shows database original type name
type ToChTypeName ChString = "String" type ToChTypeName (Nullable ChUInt32) = "Nullable(UInt32)"
type IsWriteOptional chType :: Bool Source #
There is only one native ClickHaskell write optional type - Nullable(T)
type IsWriteOptional (Nullable someChType) = True
chTypeName :: KnownSymbol (ToChTypeName chType) => Builder 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
data ChDateTime Source #
ClickHouse DateTime column type
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
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
Instances
ClickHouse String column type
Instances
ClickHouse UUID column type
Instances
IsChType ChUUID Source # | |
Defined in ClickHaskell.DbTypes type ToChTypeName ChUUID :: Symbol Source # type IsWriteOptional ChUUID :: Bool Source # chTypeName :: Builder Source # | |
Deserializable ChUUID Source # | |
Defined in ClickHaskell.Reading deserialize :: StrictByteString -> ChUUID Source # | |
Serializable ChUUID Source # | |
Show ChUUID Source # | |
NFData ChUUID Source # | |
Defined in ClickHaskell.DbTypes | |
Eq ChUUID Source # | |
FromChType ChUUID ChUUID Source # | |
Defined in ClickHaskell.DbTypes fromChType :: ChUUID -> ChUUID Source # | |
FromChType ChUUID UUID Source # | |
Defined in ClickHaskell.DbTypes fromChType :: ChUUID -> UUID Source # | |
ToChType ChUUID ChUUID Source # | |
ToChType ChUUID Word64 Source # | |
ToChType ChUUID UUID Source # | |
type IsWriteOptional ChUUID Source # | |
Defined in ClickHaskell.DbTypes | |
type ToChTypeName ChUUID Source # | |
Defined in ClickHaskell.DbTypes |
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 => IsLowCardinalitySupported (Nullable chType) Source # | |
Defined in ClickHaskell.DbTypes |