image

don’t destroy sensible data

It’s a placer to announce my first library, this handle soft-delete using directly a Repo wrapper, so the main idea is to have a global lib/module that represent all of the logic to do soft-delete of records.

The setup and usage has been written on the README of soft_repo.

Future

The idea is to have a basic library that handles soft-delete, but in a future I’ll implement:

  • Support relationships: like has_many(:whatevers, on_delete: :soft_delete)
  • Change from use an existing module with injected Ecto and overwrites the functions to metapromming code with keyword use and following behaviours of Ecto.