Safe Haskell | None |
---|---|
Language | Haskell2010 |
- isNullable :: DataType -> Bool
- iInnerStrictType :: DataType -> StrictDataType
- columnType :: SQLType a -> DataType
- unsafeCastType :: SQLType a -> SQLType b
- intType :: DataType
- arrayType :: SQLType a -> SQLType [a]
- compatibleTypes :: DataType -> DataType -> Bool
- arrayType' :: DataType -> DataType
- frameTypeFromCol :: DataType -> StructType
- colTypeFromFrame :: StructType -> DataType
- canNull :: DataType -> DataType
- structField :: Text -> DataType -> StructField
- structType :: [StructField] -> DataType
- structTypeFromFields :: [(FieldName, DataType)] -> Try StructType
- structTypeTuple :: NonEmpty DataType -> StructType
- structTypeTuple' :: NonEmpty DataType -> DataType
- tupleType :: SQLType a -> SQLType b -> SQLType (a, b)
- structName :: StructType -> Text
- iSingleField :: DataType -> Maybe DataType
Documentation
isNullable :: DataType -> Bool Source #
columnType :: SQLType a -> DataType Source #
unsafeCastType :: SQLType a -> SQLType b Source #
arrayType' :: DataType -> DataType Source #
structField :: Text -> DataType -> StructField Source #
structType :: [StructField] -> DataType Source #
structTypeFromFields :: [(FieldName, DataType)] -> Try StructType Source #
structTypeTuple :: NonEmpty DataType -> StructType Source #
Builds a type that is a tuple of all the given types.
Following the Spark and SQL convention, the indexing starts at 1.
structTypeTuple' :: NonEmpty DataType -> DataType Source #
Returns a data type instead (the most common use case)
Note that unlike Spark and SQL, the indexing starts from 0.
structName :: StructType -> Text Source #