hpqtypes-extras-1.9.0.1: Extra utilities for hpqtypes library

Safe HaskellNone
LanguageHaskell2010

Database.PostgreSQL.PQTypes.Model.CompositeType

Synopsis

Documentation

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.