pgxgithub.com/jackc/pgx/pgtype/ext/shopspring-numeric Index | Files

package numeric

import "github.com/jackc/pgx/pgtype/ext/shopspring-numeric"

Index

Types

type Numeric

type Numeric struct {
	Decimal decimal.Decimal
	Status  pgtype.Status
}

func (*Numeric) AssignTo

func (src *Numeric) AssignTo(dst interface{}) error

func (*Numeric) DecodeBinary

func (dst *Numeric) DecodeBinary(ci *pgtype.ConnInfo, src []byte) error

func (*Numeric) DecodeText

func (dst *Numeric) DecodeText(ci *pgtype.ConnInfo, src []byte) error

func (*Numeric) EncodeBinary

func (src *Numeric) EncodeBinary(ci *pgtype.ConnInfo, buf []byte) ([]byte, error)

func (*Numeric) EncodeText

func (src *Numeric) EncodeText(ci *pgtype.ConnInfo, buf []byte) ([]byte, error)

func (*Numeric) Get

func (dst *Numeric) Get() interface{}

func (*Numeric) Scan

func (dst *Numeric) Scan(src interface{}) error

Scan implements the database/sql Scanner interface.

func (*Numeric) Set

func (dst *Numeric) Set(src interface{}) error

func (*Numeric) Value

func (src *Numeric) Value() (driver.Value, error)

Value implements the database/sql/driver Valuer interface.

Source Files

decimal.go

Version
v3.6.2+incompatible (latest)
Published
Jan 24, 2020
Platform
linux/amd64
Imports
5 packages
Last checked
2 weeks ago

Tools for package owners.