pgutils

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrDuplicatedKey         = errors.New("duplicated key not allowed")
	ErrForeignKeyViolated    = errors.New("violates foreign key constraint")
	ErrUndefinedColumn       = errors.New("undefined column or parameter name")
	ErrDatabaseAlreadyExists = errors.New("database already exists")
)

Functions

func HandlerError

func HandlerError(err error) error

Types

type JSONB

type JSONB map[string]any

JSONB Interface for JSONB field of your Table

func (*JSONB) Scan

func (a *JSONB) Scan(value any) error

Scan Unmarshal

func (*JSONB) Value

func (a *JSONB) Value() (driver.Value, error)

Value Marshal

Jump to

Keyboard shortcuts

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