Skip to content

molecular_formulas

Molecular-formula parser and strongly typed PostgreSQL data type

emi_monorepo · Molecular-formula parser and strongly typed PostgreSQL data type

Overview

IDExtensionPackageVersionCategoryLicenseLanguage
100811molecular_formulasemi_monorepo0.1.0TYPEGPL-3.0Rust

PostgreSQL · 13, 14, 15, 16, 17

Usage

Sources:

molecular_formulas packages a Rust parser and utility library for molecular formulas as a PGRX extension artifact. In the reviewed 0.1.0 artifact, the generated extension SQL exposes no user-facing SQL parser, type, or function.

Core Workflow

CREATE EXTENSION molecular_formulas;

SELECT extversion
FROM pg_extension
WHERE extname = 'molecular_formulas';

This registers the extension only. Rust objects such as MolecularFormula, Ion, Atom, and Token are library APIs and are not PostgreSQL objects in the pinned generated SQL.

Current SQL Surface

  • No SQL type, function, operator, view, or configuration parameter is declared in the reviewed generated SQL.
  • The README describes the Rust parser as work in progress and lists molecular-orbital validation as future work; do not infer chemical-validity guarantees from parsing alone.

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. Reinspect generated SQL and release notes before an upgrade because the SQL boundary may change independently of the Rust crate API.

Table reader