Packages

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

Current section

Files

Jump to
ex_cldr_units_sql priv SQL postgres create_cldr_unit.sql
Raw

priv/SQL/postgres/create_cldr_unit.sql

CREATE TYPE public.cldr_unit AS (unit varchar, value numeric);
CREATE TYPE public.cldr_unit_with_usage AS (unit varchar, value numeric, usage varchar);