currency
Custom PostgreSQL currency type in 1Byte
Repository
adjust/pg-currency
https://github.com/adjust/pg-currency
Source
pg-currency-0.0.3.tar.gz
pg-currency-0.0.3.tar.gz
Overview
| Package | Version | Category | License | Language |
|---|---|---|---|---|
pg_currency | 0.0.3 | TYPE | MIT | C |
| ID | Extension | Bin | Lib | Load | Create | Trust | Reloc | Schema |
|---|---|---|---|---|---|---|---|---|
| 3680 | currency | No | Yes | No | Yes | No | Yes | - |
Version
| Type | Repo | Version | PG Ver | Package | Deps |
|---|---|---|---|---|---|
| EXT | PIGSTY | 0.0.3 | 1817161514 | pg_currency | plpgsql |
| RPM | PIGSTY | 0.0.3 | 1817161514 | pg_currency_$v | - |
| DEB | PIGSTY | 0.0.3 | 1817161514 | postgresql-$v-pg-currency | - |
Build
You can build the RPM / DEB packages for pg_currency using pig build:
Install
You can install pg_currency directly. First, make sure the PGDG and PIGSTY repositories are added and enabled:
Install the extension using pig or apt/yum/dnf:
Install
pig
dnf
apt
Create Extension:
Usage
The currency extension provides a data type for ISO 4217 currency codes using only a single byte of storage per value.
Operators
Standard comparison operators are supported: =, <>, <, >, <=, >=.
B-tree index support is included for efficient ordering and lookups.
Functions
Was this page helpful?
Thanks—your feedback helps us improve this page.
What got in the way? (optional)