API Reference Localize Units SQL v#2.1.0

Copy Markdown View Source

Modules

Functions to return SQL DDL commands that support the creation and deletion of the cldr_unit database type and associated aggregate functions.

Implements the Ecto.Type behaviour for a user-defined Postgres composite type called :cldr_unit.

Implements the Ecto.Type behaviour for Localize.Unit, where the underlying schema type is a map.

Implements the Ecto.Type behaviour for a user-defined Postgres composite type called :cldr_unit_with_usage.

Implements the Ecto.Type behaviour for Localize.Unit, where the underlying schema type is a map.

Mix Tasks

Generates a migration to add aggregation functions to Postgres for the :cldr_unit type.

Generates a migration to add a composite type called :cldr_unit to a Postgres database.