Current section

Files

Jump to
ecto_sharding lib mix tasks shards load.ex
Raw

lib/mix/tasks/shards/load.ex

defmodule Mix.Tasks.Shards.Load do
@moduledoc "A wrapper around Ecto Mix Tasks that loads the schema from a file into each sharded database."
use Mix.Tasks.Shards
@doc "Loads the Shard DB's from the schema dump file. Accepts the same arguments as Ecto does."
def run(args \\ []) do
Shards.execute(Mix.Tasks.Ecto.Load, args)
end
end