types

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Numeric = NumericFormatter{}
	UUID    = UUIDFormatter{}
)

Functions

func Format

func Format(oid uint32, v any) (any, error)

Types

type NumericFormatter

type NumericFormatter struct{}

func (NumericFormatter) BigRatFromNumeric added in v0.13.0

func (NumericFormatter) BigRatFromNumeric(num pgtype.Numeric) (*big.Rat, error)

BigRatFromNumeric converts a pgtype.Numeric to a big.Rat.

type UUIDFormatter added in v0.7.5

type UUIDFormatter struct{}

func (UUIDFormatter) Format added in v0.7.5

func (UUIDFormatter) Format(v any) (string, error)

Format takes a slice of bytes and returns a UUID in string format Returns error when byte array cannot be parsed.

Jump to

Keyboard shortcuts

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