Safe Haskell | None |
---|---|
Language | Haskell2010 |
Database.PostgreSQL.PQTypes.Model.CompositeType
- data CompositeType = CompositeType {
- ctName :: !(RawSQL ())
- ctColumns :: ![CompositeColumn]
- data CompositeColumn = CompositeColumn {
- ccName :: !(RawSQL ())
- ccType :: ColumnType
- defineComposites :: MonadDB m => [CompositeType] -> m ()
Documentation
data CompositeType Source #
Constructors
CompositeType | |
Fields
|
Instances
data CompositeColumn Source #
Constructors
CompositeColumn | |
Fields
|
Instances
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.