pgpm-inflection
String inflection, naming-convention and slug conversion functions.
pgpm-inflection · String inflection, naming-convention and slug conversion functions.
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 101678 | pgpm-inflection | pgpm-inflection | 0.30.0 | FUNC | MIT | PLpgSQL |
| Relationships | |
|---|---|
| Requires | pgpm-verify plpgsql unaccent |
Usage
Sources:
- Official upstream README
- Official extension control file (pgpm-inflection.control)
- Official extension SQL (pgpm-inflection–0.30.0.sql)
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
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 returnstext.inflection.dashed(str text)is an extension function and returnstext.inflection.dns_1123(value text)is an extension function and returnstext.inflection.no_consecutive_caps(str text)is an extension function and returnstext.inflection.no_consecutive_caps_till_end(str text)is an extension function and returnstext.inflection.no_consecutive_caps_till_lower(str text)is an extension function and returnstext.inflection.no_single_underscores(str text)is an extension function and returnstext.inflection.no_single_underscores_at_end(str text)is an extension function and returnstext.inflection.no_single_underscores_in_beginning(str text)is an extension function and returnstext.inflection.no_single_underscores_in_middle(str text)is an extension function and returnstext.inflection.pascal(str text)is an extension function and returnstext.inflection.pg_slugify(text)is an extension function and returnstext.inflection.pg_slugify(value text, allow_unicode boolean)is an extension function and returnstext.inflection.plural(str text)is an extension function and returnstext.
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.