dbmigrations-2.1.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 AppState Source #

Application state which can be accessed by any command handler.

data Configuration Source #

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

Instances

Instances details
Show Configuration Source # 
Instance details

Defined in Moo.Core

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.

Instances

Instances details
Show ExecutableParameters Source # 
Instance details

Defined in Moo.Core

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.