dbmigrations-2.0.0: 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.

data Configuration Source #

Loading the configuration from a file or having it specified via environment |variables results in a value of type Configuration.

data ExecutableParameters Source #

A value of type ExecutableParameters is what a moo executable (moo-postgresql, |moo-mysql, etc.) pass to the core package when they want to execute a |command.

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.