pg_jewelry_tools
An extension for PSQL with useful functionality for jewelry companies. So far, this is a project created for educational purposes.
pg_jewelry_tools · An extension for PSQL with useful functionality for jewelry companies. So far, this is a project created for educational purposes.
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 101562 | pg_jewelry_tools | pg_jewelry_tools | 0.0.1 | FUNC | Unknown | C |
Usage
Sources:
- Official upstream README
- Official extension control file (pg_jewelry_tools.control)
- Official extension SQL (pg_jewelry_tools–0.0.1.sql)
pg_jewelry_tools — An extension for PSQL with useful functionality for jewelry companies. So far, this is a project created for educational purposes. Use it when SQL needs these specialized functions or aggregates. Use the pinned upstream revision linked above as the API boundary and test it on the target PostgreSQL build.
Core Workflow
Install the extension in the intended database, run the smallest upstream example above when available, and verify the installed version and returned values before integrating it into application SQL.
Important Objects
calculate_gemstone_carat_to_gr(carat double precision)is an extension function and returnsdouble.calculate_gemstone_gr_to_carat(carat double precision)is an extension function and returnsdouble.calculate_metal_weight_gr(metal TEXT, purity INTEGER, volume_mm3 double precision)is an extension function and returnsdouble.public.test_add_one(i integer)is an extension function and returnsinteger.gemstoneis an extension-defined type.jw_itemis an extension-defined type.precious_metalis an extension-defined type.
Requirements and Caveats
- The reviewed control file declares default version
0.0.1. - The control file marks the extension as relocatable.
- Confirm privileges, supported PostgreSQL versions, upgrade behavior, and failure cases against the pinned source before production use.