Skip to content

elements

Chemical elements and isotope metadata exposed as PostgreSQL enum types through pgrx.

emi_monorepo · Chemical elements and isotope metadata exposed as PostgreSQL enum types through pgrx.

Overview

IDExtensionPackageVersionCategoryLicenseLanguage
100807elementsemi_monorepo0.1.0TYPEGPL-3.0Rust

PostgreSQL · 13, 14, 15, 16, 17

Usage

Sources:

elements packages the EMI Rust chemical-elements crate as a PGRX extension artifact. The Rust crate contains element, isotope, atomic-weight, oxidation-state, valence, bonding, and electron-configuration APIs, but the reviewed 0.1.0 generated SQL exposes no user-facing SQL type or function.

Core Workflow

CREATE EXTENSION elements;

SELECT extversion
FROM pg_extension
WHERE extname = 'elements';

This registers the extension, but the pinned generated SQL contains only its PGRX header comments. Do not assume that Rust names such as Element or Isotope are available as PostgreSQL types in this artifact.

Current SQL Surface

  • No SQL type, function, operator, view, or configuration parameter is declared in the reviewed generated SQL.
  • The extensive element and isotope API documented by the README belongs to the Rust crate and requires a consumer compiled with the appropriate Rust feature set.

Operational Notes

Version 0.1.0 is non-relocatable. Its control file sets superuser = true and trusted = false, so a superuser must create it; it declares no prerequisite extension or preload requirement. Recheck the generated SQL when upgrading, because a later PGRX build may add a SQL surface that is absent from this version.

Table reader