plpgsql

package
v0.1.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 19, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package plpgsql canonicalizes PL/pgSQL code so you can compare it for meaning rather than formatting. It strips line and block comments, keeps single-, double-, and dollar-quoted strings verbatim, and normalizes whitespace and operator spacing down to one canonical form. There's no error path: every input gives you a deterministic result.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Body

type Body string

Body is normalized PL/pgSQL code.

func (Body) Normalize

func (p Body) Normalize() Body

Normalize returns the canonical form of the PL/pgSQL code.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL