Skip to content

slugify

PostgreSQL Extension to generate various variant of Slugs from a string.

slugify · PostgreSQL Extension to generate various variant of Slugs from a string.

Overview

IDExtensionPackageVersionCategoryLicenseLanguage
101773slugifyslugify0.0.1FUNCMITRust

Usage

Sources:

slugify — PostgreSQL Extension to generate various variant of Slugs from a string. Use it when SQL needs these specialized functions or aggregates. Use the pinned upstream revision linked above as the API boundary and test it on the target PostgreSQL build.

Core Workflow

CREATE EXTENSION slugify;

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

  • slug is an extension function.
  • slug_rand is an extension function.
  • slug_rand_c is an extension function.
  • slug_rand_sep is an extension function.
  • slug_rand_sep_c is an extension function.
  • slug_sep is an extension function.

Requirements and Caveats

  • The catalog records version 0.0.1.
  • 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