Ecto v2.0.0-rc.1 Ecto.Storage
Convenience functions around the data store of a repository.
Summary
Functions
Specs
down(Ecto.Repo.t) ::
:ok |
{:error, :already_down} |
{:error, term}
Drops the storage in the data store.
Returns :ok if it was dropped successfully.
Returns {:error, :already_down} if the storage has already been dropped or
{:error, term} in case anything else goes wrong.
Specs
up(Ecto.Repo.t) ::
:ok |
{:error, :already_up} |
{:error, term}
Creates the storage in the data store.
Returns :ok if it was created successfully.
Returns {:error, :already_up} if the storage has already been created or
{:error, term} in case anything else goes wrong.