Small helpers for crossing raw SQL and Ecto schema boundaries.
Repo.query/3 uses Postgrex types directly, while Ecto schemas expose UUIDs
as canonical strings. These helpers keep that conversion in one place.
Summary
Functions
Converts an Ecto UUID string into the 16-byte form expected by $uuid params.
Converts a raw 16-byte UUID returned by Postgrex into an Ecto UUID string.
Functions
Converts an Ecto UUID string into the 16-byte form expected by $uuid params.
Values that are already dumped, invalid, or non-binary are returned unchanged so callers can safely pass through database-driver values.
Converts a raw 16-byte UUID returned by Postgrex into an Ecto UUID string.