# Localize Units SQL v2.1.0 - Table of Contents

Unit functions for the serialization to a database of a Localize.Unit.t data type.
    Also includes aggregation and sum functions.

## Pages

- [Introduction to Localize Units SQL](readme.md)
- [Changelog](changelog.md)
- [LICENSE](license.md)

## Modules

- [Localize.Unit.DDL](Localize.Unit.DDL.md): Functions to return SQL DDL commands that support the
creation and deletion of the `cldr_unit` database
type and associated aggregate functions.

- [Localize.Unit.Ecto.Composite.Type](Localize.Unit.Ecto.Composite.Type.md): Implements the `Ecto.Type` behaviour for a user-defined Postgres composite
type called `:cldr_unit`.
- [Localize.Unit.Ecto.Map.Type](Localize.Unit.Ecto.Map.Type.md): Implements the `Ecto.Type` behaviour for `Localize.Unit`, where the
underlying schema type is a map.
- [Localize.UnitWithUsage.Ecto.Composite.Type](Localize.UnitWithUsage.Ecto.Composite.Type.md): Implements the `Ecto.Type` behaviour for a user-defined Postgres composite
type called `:cldr_unit_with_usage`.
- [Localize.UnitWithUsage.Ecto.Map.Type](Localize.UnitWithUsage.Ecto.Map.Type.md): Implements the `Ecto.Type` behaviour for `Localize.Unit`, where the
underlying schema type is a map.

## Mix Tasks

- [mix units.gen.postgres.aggregate_functions](Mix.Tasks.Units.Gen.Postgres.AggregateFunctions.md): Generates a migration to add aggregation functions
to Postgres for the `:cldr_unit` type.
- [mix units.gen.postgres.cldr_units_migration](Mix.Tasks.Units.Gen.Postgres.CldrUnitsMigration.md): Generates a migration to add a composite type called `:cldr_unit`
to a Postgres database.

