pg_toolkit_brazil
Brazilian CPF and CNPJ types, validation, formatting, casts, and operators.
pg_toolkit_brazil · Brazilian CPF and CNPJ types, validation, formatting, casts, and operators.
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 101935 | pg_toolkit_brazil | pg_toolkit_brazil | 0.1 | TYPE | BSD-3-Clause | C |
Usage
Sources:
pg_toolkit_brazil Brazilian CPF and CNPJ types, validation, formatting, casts, and operators.
Enablement
Install the files for the intended server, then create pg_toolkit_brazil in the target database:
Core Workflow
The following example is taken from the reviewed upstream documentation. Adapt object names, paths, credentials, and workload values before use.
Main Objects
The reviewed install surface includes these prominent objects:
| Object | Kind | Operational role |
|---|---|---|
cnpj | TYPE | User-facing data type created by the extension. |
cnpj_cmp | FUNCTION | Callable function from the reviewed install surface. |
cnpj_eq | FUNCTION | Callable function from the reviewed install surface. |
cnpj_ge | FUNCTION | Callable function from the reviewed install surface. |
cnpj_gt | FUNCTION | Callable function from the reviewed install surface. |
cnpj_le | FUNCTION | Callable function from the reviewed install surface. |
cnpj_lt | FUNCTION | Callable function from the reviewed install surface. |
cnpj_ne | FUNCTION | Callable function from the reviewed install surface. |
Operations and Boundaries
- Catalog lifecycle is abandoned; test upgrades, dump/restore, and server compatibility before production use.