A collection of 2 posts

Ecto type for IPv4 and IPv6 addresses

Sometimes we want to store some type of data in the project's database that currently is not available as a valid internal data type to be persisted. For example, IP addresses, that are

Using Postgres range data type in Ecto

Since PostgreSQL 9.2 we have the ability to store and query range of values with specific operators and functions. This is a super nice feature that removes complexity when handling logic around