Skip to content

pgpm-inflection

String inflection, naming-convention and slug conversion functions.

pgpm-inflection · String inflection, naming-convention and slug conversion functions.

Overview

IDExtensionPackageVersionCategoryLicenseLanguage
101678pgpm-inflectionpgpm-inflection0.30.0FUNCMITPLpgSQL
Relationships
Requirespgpm-verify plpgsql unaccent

Usage

Sources:

pgpm-inflection — String inflection utilities for PostgreSQL naming conventions. Use it when SQL needs these specialized functions or aggregates. Its extension dependencies must be installed and validated first.

Core Workflow

CREATE EXTENSION "pgpm-inflection";

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

  • inflection.camel(str text) is an extension function and returns text.
  • inflection.dashed(str text) is an extension function and returns text.
  • inflection.dns_1123(value text) is an extension function and returns text.
  • inflection.no_consecutive_caps(str text) is an extension function and returns text.
  • inflection.no_consecutive_caps_till_end(str text) is an extension function and returns text.
  • inflection.no_consecutive_caps_till_lower(str text) is an extension function and returns text.
  • inflection.no_single_underscores(str text) is an extension function and returns text.
  • inflection.no_single_underscores_at_end(str text) is an extension function and returns text.
  • inflection.no_single_underscores_in_beginning(str text) is an extension function and returns text.
  • inflection.no_single_underscores_in_middle(str text) is an extension function and returns text.
  • inflection.pascal(str text) is an extension function and returns text.
  • inflection.pg_slugify(text) is an extension function and returns text.
  • inflection.pg_slugify(value text, allow_unicode boolean) is an extension function and returns text.
  • inflection.plural(str text) is an extension function and returns text.

Requirements and Caveats

  • The reviewed control file declares default version 0.30.0.
  • Install the confirmed extension dependencies first: plpgsql, unaccent, pgpm-verify.
  • The control file marks the extension as non-relocatable.
  • The control file does not require superuser-only installation.
  • Confirm privileges, supported PostgreSQL versions, upgrade behavior, and failure cases against the pinned source before production use.

Table reader