NAME

Mojolicious::Command::db_env - Print database config as environment variables

SYNOPSIS

Usage: APPLICATION db_env [OPTIONS]

Options:
  NONE

DESCRIPTION

This command reads C::config->{DbAccess} and prints one line per config key:

DB_KEY=value

This is convenient for shell usage. For example, in a POSIX shell:

eval "$(APPLICATION db_env)"

Note: this prints all keys, including passwords.

OPTIONS

None.

METHODS

run

Implements the command.

SEE ALSO

Mojolicious::Plugin::DbAccess, D