dbmigrations-1.1.1: An implementation of relational database "migrations"

Safe HaskellNone
LanguageHaskell2010

Moo.Core

Synopsis

Documentation

type AppT a = ReaderT AppState IO a Source

The monad in which the application runs.

type CommandHandler = StoreData -> AppT () Source

The type of actions that are invoked to handle specific commands

data CommandOptions Source

CommandOptions are those options that can be specified at the command prompt to modify the behavior of a command.

data Command Source

A command has a name, a number of required arguments' labels, a number of optional arguments' labels, and an action to invoke.

databaseTypes :: [(String, String -> IO Backend)] Source

The values of DBM_DATABASE_TYPE and their corresponding connection factory functions.

loadConfiguration :: Maybe FilePath -> IO (Either String Configuration) Source

Loads config file (falling back to default one if not specified) and then overrides configuration with an environment.