pghelper

package
v0.0.0-...-08b4e76 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2023 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Interval

func Interval(d time.Duration) pgtype.Interval

Interval returns a pgtype.Interval for a given duration.

func Numeric

func Numeric[T numeric](d T) pgtype.Numeric

Numeric returns a pgtype.Numeric for numbers that fulfill the numeric type constraint.

func ToDuration

func ToDuration(i pgtype.Interval) time.Duration

ToDuration returns the duration for a given pgtype.Interval.

Types

This section is empty.

Jump to

Keyboard shortcuts

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