moto-postgresql-0.0.1: PostgreSQL-based migrations registry for moto.

Safe HaskellNone
LanguageHaskell2010

Moto.PostgreSQL

Synopsis

Documentation

registryConf :: RegistryConf Source #

Command-line configuration for a Registry stored in an append-only table in a PostgreSQL database, as supported by withRegistry.

The table name shall be registry, inside a schema named moto.

withRegistry Source #

Arguments

:: (MonadIO m, MonadMask m) 
=> ByteString

PostgreSQL connection string.

-> (Registry -> m a) 
-> m a 

Obtain a Registry stored in an append-only table in a PostgreSQL database.

The table name shall be registry, inside a schema named moto.