Current section

Files

Jump to
ecto_sharding lib mix tasks shards drop.ex
Raw

lib/mix/tasks/shards/drop.ex

defmodule Mix.Tasks.Shards.Drop do
@moduledoc "A wrapper around Ecto Mix Tasks that drops the sharded databases."
use Mix.Tasks.Shards
@doc "Drops the Shard DB's. Accepts the same arguments as Ecto does."
def run(args \\ []) do
Shards.execute(Mix.Tasks.Ecto.Drop, args)
end
end