EctoSharding v0.0.8 API Reference

Modules

EctoSharding ShardRegistry and Repo supervisor

An Ecto.Repo wrapper. This should be used in place of use Ecto.Repo

An Ecto.Schema wrapper. This should be used in place of use Ecto.Schema

Mix Tasks

A wrapper around Ecto Mix Tasks that creates the sharded databases

A wrapper around Ecto Mix Tasks that drops the sharded databases

A wrapper around Ecto Mix Tasks that dumps the sharded database schema to a file

A wrapper around Ecto Mix Tasks that creates migrations for the sharded databases. As with Ecto migrations, migrations will be placed in a migrations directory nested under the priv directory specified in the config for the repo. It is recommended that you set the priv key in the Repo config to priv/shards to avoid confusion with main database migrations

A wrapper around Ecto Mix Tasks that loads the schema from a file into each sharded database

A wrapper around Ecto Mix Tasks that migrates the sharded databases

A wrapper around Ecto Mix Tasks that rollsback migrations on the sharded databases