elixir-lang/ecto — pull request #303 by mschae (2014-10-17 12:21:58+00:00)
Title: [WIP] Add callbacks

I would like to introduce callbacks as a mean to perform actions before `update`, `insert` and `delete`.

Here is a first draft I am working on as a basis for discussion.

It is my hope that if I get this right, we can add:

- Serialisation (maybe that would be a good way to tackle hstore, json, ... data types)
- Timestamps
- Automatic validations?

ToDo:
- [ ] Reconsider naming (CRUD vs. Repo methods)
- [ ] Hook up callbacks to Repo (actually invoke them)