Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Ecto 3 #57

Merged
merged 4 commits into from
Dec 8, 2018
Merged

Use Ecto 3 #57

merged 4 commits into from
Dec 8, 2018

Conversation

crbelaus
Copy link
Owner

@crbelaus crbelaus commented Dec 8, 2018

Trans depends on Ecto for building queries and managing schemas.

Ecto 3.0 has been recently released. Among other great things, it provides a separation between the core ecto and ecto_sql, which provides database interactivity. This split is really useful for Trans:

  • Trans only requires Ecto for specifying translations and managing them.
  • If Ecto.SQL is available, Trans will also provide the Trans.QueryBuilder module, which allows to query translations in the database.

Although the code that uses Trans does not need any modifications to use this update, the dependency changes is a breaking change, so Trans version has been bumped to 2.1.

Ecto 3.0 splits itself into `ecto` and `ecto_sql` dependencies, which
can be run separately. Trans only depends on `ecto`. `ecto_sql` is an
optional dependency which will provide the `Trans.QueryBuilder` module.
@crbelaus crbelaus self-assigned this Dec 8, 2018
@crbelaus crbelaus merged commit a2c75f7 into master Dec 8, 2018
@crbelaus crbelaus deleted the ecto-3 branch December 8, 2018 10:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant