Medic.Checks.Postgres.correct_data_directory-question-mark
You're seeing just the function
correct_data_directory-question-mark
, go back to Medic.Checks.Postgres module for more information.
Specs
correct_data_directory?(Path.t() | list()) :: Medic.Check.check_return_t()
Checks that the running instance of Postgres has the expected data directory.
If run with no arguments, this expects that the data directory is located at ./priv/postgres/data
within the current project.
If run with one argument, the argument can be:
- A path to the data directory, or
- A keyword list with one or more of the following keys:
data_directory
: the path to the data directoryremedy
: the remedy as a string
Usage
{Medic.Checks.Postgres, :correct_data_directory?}
{Medic.Checks.Postgres, :correct_data_directory?, ["/path/to/data/directory"]}
{Medic.Checks.Postgres, :correct_data_directory?, [data_directory: "/path/to/data/directory", remedy: "bin/dev/db-restart"]}