Ecto.Adapter.Storage.storage_status

You're seeing just the callback storage_status, go back to Ecto.Adapter.Storage module for more information.

Specs

storage_status(options :: Keyword.t()) :: :up | :down | {:error, term()}

Returns the status of a storage given by options.

Can return :up, :down or {:error, term} in case anything goes wrong.

Examples

storage_status(username: "postgres",
               database: "ecto_test",
               hostname: "localhost")