joeljuca / swiss_schema

A Swiss Army knife for your Ecto schemas
https://hex.pm/packages/swiss_schema
Apache License 2.0
26 stars 4 forks source link

Accept a custom repository in schema functions #5

Closed joeljuca closed 8 months ago

joeljuca commented 10 months ago

SwissSchema must be able to work with custom repositories -- a feature present in Ecto that allows multiple databases to be used by Ecto and its schemas at the same time.

See: https://hexdocs.pm/ecto/replicas-and-dynamic-repositories.html

joeljuca commented 8 months ago

Implemented in 97c19b71.