pgutil

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OIDToPgType

func OIDToPgType(oid pgtype.OID) interface{}

OIDToPgType returns the corresponding postgres type for the provided OID. Results from Postgres queries can be scanned into the returned value. Beware that most, but not all returned types implement the sql.Scanner and pgtype.Value interfaces, you need to do a type assertion to be sure, otherwise use pgtype.Unknown. If the oid is unknown pgtype.Unknown is returned. nolint:gocyclo // this switch is intentional and can't be slimmed down

Types

This section is empty.

Jump to

Keyboard shortcuts

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