@simon I’ve recently started digging into Elixir and the library used for database abstraction called Ecto has this as a feature. It’s really nice: hexdocs.pm/ecto/Ecto.Query.htm