Safe Haskell | None |
---|
Utility function for describing a table in the database.
- data ColumnInfo = ColumnInfo {
- colNum :: !Int16
- colName :: ByteString
- colType :: !TypeInfo
- colNotNull :: !Bool
- colPrimary :: !Bool
- colUnique :: !Bool
- colReferences :: !(Maybe ByteString)
- describeTable :: Connection -> ByteString -> IO [ColumnInfo]
Documentation
data ColumnInfo Source
ColumnInfo | |
|
describeTable :: Connection -> ByteString -> IO [ColumnInfo]Source
Returns a list of ColumnInfo
structures for a particular table.
Not all information about a table is returned. In particular,
constraints that span columns are ignored.