Safe Haskell | Safe-Inferred |
---|---|
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
Show CompositeType Source # | |
Defined in Database.PostgreSQL.PQTypes.Model.CompositeType showsPrec :: Int -> CompositeType -> ShowS # show :: CompositeType -> String # showList :: [CompositeType] -> ShowS # | |
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 # |
data CompositeColumn Source #
CompositeColumn | |
|
Instances
Show CompositeColumn Source # | |
Defined in Database.PostgreSQL.PQTypes.Model.CompositeType showsPrec :: Int -> CompositeColumn -> ShowS # show :: CompositeColumn -> String # showList :: [CompositeColumn] -> ShowS # | |
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 # |
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.