Skip to content

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

IDExtensionPackageVersionCategoryLicenseLanguage
101562pg_jewelry_toolspg_jewelry_tools0.0.1FUNCUnknownC

Usage

Sources:

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

CREATE EXTENSION pg_jewelry_tools;

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 returns double.
  • calculate_gemstone_gr_to_carat(carat double precision) is an extension function and returns double.
  • calculate_metal_weight_gr(metal TEXT, purity INTEGER, volume_mm3 double precision) is an extension function and returns double.
  • public.test_add_one(i integer) is an extension function and returns integer.
  • gemstone is an extension-defined type.
  • jw_item is an extension-defined type.
  • precious_metal is 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.

Table reader