hpqtypes-extras-1.13.1.0: Extra utilities for hpqtypes library
Safe HaskellNone
LanguageHaskell2010

Database.PostgreSQL.PQTypes.Checks

Synopsis

Checks

checkDatabase :: forall m. (MonadDB m, MonadLog m, MonadThrow m) => ExtrasOptions -> [CompositeType] -> [Domain] -> [Table] -> m () Source #

Run checks on the database structure and whether the database needs to be migrated. Will do a full check of DB structure.

createTable :: MonadDB m => Bool -> Table -> m () Source #

Options

data ExtrasOptions Source #

Constructors

ExtrasOptions 

Fields

Instances

Instances details
Eq ExtrasOptions Source # 
Instance details

Defined in Database.PostgreSQL.PQTypes.ExtrasOptions

Migrations

migrateDatabase :: (MonadBase IO m, MonadDB m, MonadLog m, MonadMask m) => ExtrasOptions -> [Extension] -> [CompositeType] -> [Domain] -> [Table] -> [Migration m] -> m () Source #

Run migrations and check the database structure.