API Reference Localize SQL v#1.0.0

Copy Markdown View Source

Modules

An Ecto.Type storing a currency as its ISO 4217 code in a text column.

An Ecto.Type storing a Localize.Duration.t/0 in a PostgreSQL interval column.

Locale-aware query expressions for Ecto.

Audits the PostgreSQL server's collation and Unicode state against the running application.

Resolves a locale to the name of a PostgreSQL ICU collation.

Migration helpers for creating PostgreSQL ICU collations.

Writes a migration file into a repository, for the migration-generating mix tasks of localize_sql.

Locale-aware query expressions for Ecto on PostgreSQL.

Query expressions for PostgreSQL range types.

Migration helpers for PostgreSQL range types.

Locale-aware query expressions for Ecto on SQLite.

Locates the localize_icu SQLite extension for loading into a connection.

Describes a tagged decimal — a value that pairs a tag with a decimal amount — for serialization to a SQL database.

Generates the SQL that installs a tagged decimal type in PostgreSQL.

Resolves a locale to the best matching PostgreSQL text search configuration.

An Ecto.Type storing an Elixir Date.Range.t/0 in a PostgreSQL daterange column.

An Ecto.Type storing an Elixir Duration.t/0 in a PostgreSQL interval column.

An Ecto.Type storing an Elixir integer Range.t/0 in a PostgreSQL int8range column.

An Ecto.Type for IANA time zone identifiers, validated against the CLDR zone inventory.

An Ecto.Type storing a locale as its BCP 47 string in a text column.

An Ecto.Type storing a script as its code in a text column.

An Ecto.Type storing a territory as its code in a text column.

Generates the SQL that stores Localize.Unit.t/0 values in PostgreSQL.

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

Audits the PostgreSQL server's collation and Unicode state against the running application.

Generates an Ecto migration that installs the unit composite types and their aggregate functions into a PostgreSQL database.