launchql-inflection
inflection is a port of the functionality from Ruby on Rails’ Active Support Inflection classes into PostgreSQL
launchql-inflection · inflection is a port of the functionality from Ruby on Rails’ Active Support Inflection classes into PostgreSQL
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 101433 | launchql-inflection | launchql-inflection | 0.0.2 | FUNC | MIT | PLpgSQL |
Usage
Sources:
- Official upstream README
- Official extension control file (launchql-inflection.control)
- Official extension SQL (launchql-inflection–0.0.2.sql)
launchql-inflection — inflection is a port of the functionality from Ruby on Rails’ Active Support Inflection classes into PostgreSQL. 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.lower(str 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.0.2. - Install the confirmed extension dependencies first:
plpgsql,unaccent,uuid-ossp. - 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.