Help us shape the future of Go! Take the 2026 Go Developer Survey

paramdecoder

package
v0.12.813 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package paramdecoder decodes parameter values from their wire format (text or binary) into string representations suitable for SQL substitution.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DecodedParam added in v0.12.778

type DecodedParam interface {
	GetValue() string
	IsNull() bool
}

DecodedParam is one decoded parameter. SQL NULL is flagged rather than inferred from the value, so a client string "NULL" stays a string.

type Decoder

type Decoder interface {
	DecodeParams(paramOIDs []uint32, paramFormats []int16, paramValues [][]byte) ([]DecodedParam, error)
}

Decoder decodes raw parameter bytes according to their format codes and OIDs, returning one DecodedParam for each.

func NewDecoder

func NewDecoder() Decoder

NewDecoder creates a new parameter decoder.

Jump to

Keyboard shortcuts

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