mix couchx.mango_index.down (Couchx v0.4.14)

Deletes an index or list of indexes provided from the Repo DB.

The Repo passed as -r or --r will define the DB to lookup for the index document. There is also a parameter set as -n or --names which will need to match the ddoc and the index name.

Examples

$ mix couchx.mango_index.down -r MyApp.Repo -n my-index-ddoc

The Repo have to match one in the config.exs file. Also couchx will need knowledge of the main OTP app supervising the repos.

Examples

  confix :couchx, otp_app: :my_app
  config :my_app, ecto_repos: [MyApp.Repo, Custom.Repo]

Summary

Functions

Link to this function

prepend(string, suffix)