Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data CompositeType = CompositeType {
- ctName :: !(RawSQL ())
- ctColumns :: ![CompositeColumn]
- data CompositeColumn = CompositeColumn {
- ccName :: !(RawSQL ())
- ccType :: ColumnType
- compositeTypePqFormat :: CompositeType -> ByteString
- sqlCreateComposite :: CompositeType -> RawSQL ()
- sqlDropComposite :: RawSQL () -> RawSQL ()
- getDBCompositeTypes :: forall m. MonadDB m => m [CompositeType]
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 # |
compositeTypePqFormat :: CompositeType -> ByteString Source #
Convenience function for converting CompositeType definition to
corresponding pqFormat
definition.
sqlCreateComposite :: CompositeType -> RawSQL () Source #
Make SQL query that creates a composite type.
sqlDropComposite :: RawSQL () -> RawSQL () Source #
Make SQL query that drops a composite type.
getDBCompositeTypes :: forall m. MonadDB m => m [CompositeType] Source #
Get composite types defined in the database.