Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data CompositeType = CompositeType {
- ctName :: !(RawSQL ())
- ctColumns :: ![CompositeColumn]
- data CompositeColumn = CompositeColumn {
- ccName :: !(RawSQL ())
- ccType :: ColumnType
- defineComposites :: MonadDB m => [CompositeType] -> m ()
Documentation
data CompositeType Source #
CompositeType | |
|
Instances
Eq CompositeType Source # | |
Defined in Database.PostgreSQL.PQTypes.Model.CompositeType (==) :: CompositeType -> CompositeType -> Bool # (/=) :: CompositeType -> CompositeType -> Bool # | |
Ord CompositeType Source # | |
Defined in Database.PostgreSQL.PQTypes.Model.CompositeType compare :: CompositeType -> CompositeType -> Ordering # (<) :: CompositeType -> CompositeType -> Bool # (<=) :: CompositeType -> CompositeType -> Bool # (>) :: CompositeType -> CompositeType -> Bool # (>=) :: CompositeType -> CompositeType -> Bool # max :: CompositeType -> CompositeType -> CompositeType # min :: CompositeType -> CompositeType -> CompositeType # | |
Show CompositeType Source # | |
Defined in Database.PostgreSQL.PQTypes.Model.CompositeType showsPrec :: Int -> CompositeType -> ShowS # show :: CompositeType -> String # showList :: [CompositeType] -> ShowS # |
data CompositeColumn Source #
CompositeColumn | |
|
Instances
Eq CompositeColumn Source # | |
Defined in Database.PostgreSQL.PQTypes.Model.CompositeType (==) :: CompositeColumn -> CompositeColumn -> Bool # (/=) :: CompositeColumn -> CompositeColumn -> Bool # | |
Ord CompositeColumn Source # | |
Defined in Database.PostgreSQL.PQTypes.Model.CompositeType compare :: CompositeColumn -> CompositeColumn -> Ordering # (<) :: CompositeColumn -> CompositeColumn -> Bool # (<=) :: CompositeColumn -> CompositeColumn -> Bool # (>) :: CompositeColumn -> CompositeColumn -> Bool # (>=) :: CompositeColumn -> CompositeColumn -> Bool # max :: CompositeColumn -> CompositeColumn -> CompositeColumn # min :: CompositeColumn -> CompositeColumn -> CompositeColumn # | |
Show CompositeColumn Source # | |
Defined in Database.PostgreSQL.PQTypes.Model.CompositeType showsPrec :: Int -> CompositeColumn -> ShowS # show :: CompositeColumn -> String # showList :: [CompositeColumn] -> ShowS # |
defineComposites :: MonadDB m => [CompositeType] -> m () Source #
Composite types are static in a sense that they can either be created or dropped, altering them is not possible. Therefore they are not part of the migration process. This is not a problem since their exclusive usage is for intermediate representation of complex nested data structures fetched from the database.