ecto_hooks

Adds callbacks/hooks to Ecto: `after_insert`, `after_update`, `after_delete`, `after_get`, `before_insert`, `before_update`, `before_delete`. Useful for setting virtual fields and centralising logic.

ORM and Datamapping

Stars

49

Unreleased Activity

Unknown

First Release

5

years ago

Last Release

10

months ago

Downloads

9.4k

last 90 days

Last Stable Version

2.0.0

Activity

Last Year

Pull Requests

Open 0
Merged 1

Issues

Open 0
Closed 0

Latest Version Downloads

Last 90 Days

Visualizations of the latest version downloads, including both a full list of releases and a view that highlights the main versions.

Version 2.0.0

Published Dec 2025 •
Elixir Version Requirement ~> 1.13
Documentation for 2.0.0

Dependencies

1
ecto_middleware ~> 2.0

Implements a generic `middleware/2` callback for any module that uses `Ecto.Repo` to customize behaviour.

No changelog for 2.0.0
Inspect source for 2.0.0

Community

Looks like this space is still empty… Want to be the first to contribute?

Share an article, talk, or podcast by adding resources to this package.

Related Packages

146 packages