View Source API Reference Money SQL v1.11.0

Modules

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

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

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

Provides several helpers to query DB for the Money type.

Implements Ecto validations for the Money.t/0 type based upon the Money.Ecto.Composite.Type type.

Mix Tasks

Generates a migration to add min and max aggregate functions to Postgres for the money_with_currency type.

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

Generates a migration to add a + operator to Postgres for the money_with_currency type

Generates a migration to add a sum aggregate function to Postgres for the money_with_currency type.