Skip to content

pgpm-base32

Base32 encoding and decoding functions for PostgreSQL.

pgpm-base32 · Base32 encoding and decoding functions for PostgreSQL.

Overview

IDExtensionPackageVersionCategoryLicenseLanguage
101675pgpm-base32pgpm-base320.15.5UTILMITPLpgSQL
Relationships
Requirespgcrypto pgpm-verify plpgsql

Usage

Sources:

pgpm-base32 — @pgpm/base32 implements Base32 encoding and decoding entirely in PostgreSQL using plpgsql. Use it for the corresponding SQL or database utility workflow. Its extension dependencies must be installed and validated first.

Core Workflow

CREATE EXTENSION "pgpm-base32";

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

  • base32.base32_alphabet(input int) is an extension function and returns char.
  • base32.base32_alphabet_to_decimal(input text) is an extension function and returns text.
  • base32.base32_alphabet_to_decimal_int(input text) is an extension function and returns int.
  • base32.base32_to_decimal(input text) is an extension function and returns text[].
  • base32.binary_to_int(input text) is an extension function and returns int.
  • base32.decimal_to_chunks(input text[]) is an extension function and returns text[].
  • base32.decode(input text) is an extension function and returns text.
  • base32.encode(input text) is an extension function and returns text.
  • base32.fill_chunks(input text[]) is an extension function and returns text[].
  • base32.string_nchars(text, int) is an extension function and returns text[].
  • base32.to_ascii(input text) is an extension function and returns int[].
  • base32.to_base32(input text[]) is an extension function and returns text.
  • base32.to_binary(input int) is an extension function and returns text.
  • base32.to_binary(input int[]) is an extension function and returns text[].

Requirements and Caveats

  • The reviewed control file declares default version 0.15.5.
  • Install the confirmed extension dependencies first: pgcrypto, plpgsql, 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