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

package numeric

import "github.com/jackc/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) MarshalJSON

func (src Numeric) MarshalJSON() ([]byte, error)

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) UnmarshalJSON

func (dst *Numeric) UnmarshalJSON(b []byte) error

func (Numeric) Value

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

Value implements the database/sql/driver Valuer interface.

Source Files

decimal.go

Version
v1.14.4 (latest)
Published
Oct 18, 2024
Platform
linux/amd64
Imports
6 packages
Last checked
1 month ago

Tools for package owners.