Documentation
¶
Index ¶
- func Register(m *pgtype.Map)
- func TryWrapNumericEncodePlan(value interface{}) (plan pgtype.WrappedEncodePlanNextSetter, nextValue interface{}, ok bool)
- func TryWrapNumericScanPlan(target interface{}) (plan pgtype.WrappedScanPlanNextSetter, nextDst interface{}, ok bool)
- type Decimal
- func (d Decimal) Float64Value() (pgtype.Float8, error)
- func (d Decimal) Int64Value() (pgtype.Int8, error)
- func (d Decimal) NumericValue() (pgtype.Numeric, error)
- func (d *Decimal) ScanFloat64(v pgtype.Float8) error
- func (d *Decimal) ScanInt64(v pgtype.Int8) error
- func (d *Decimal) ScanNumeric(v pgtype.Numeric) error
- type NullDecimal
- func (d NullDecimal) Float64Value() (pgtype.Float8, error)
- func (d NullDecimal) Int64Value() (pgtype.Int8, error)
- func (d NullDecimal) NumericValue() (pgtype.Numeric, error)
- func (d *NullDecimal) ScanFloat64(v pgtype.Float8) error
- func (d *NullDecimal) ScanInt64(v pgtype.Int8) error
- func (d *NullDecimal) ScanNumeric(v pgtype.Numeric) error
- type NumericCodec
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TryWrapNumericEncodePlan ¶
func TryWrapNumericEncodePlan(value interface{}) (plan pgtype.WrappedEncodePlanNextSetter, nextValue interface{}, ok bool)
func TryWrapNumericScanPlan ¶
func TryWrapNumericScanPlan(target interface{}) (plan pgtype.WrappedScanPlanNextSetter, nextDst interface{}, ok bool)
Types ¶
type NullDecimal ¶
type NullDecimal decimal.NullDecimal
func (NullDecimal) Float64Value ¶
func (d NullDecimal) Float64Value() (pgtype.Float8, error)
func (NullDecimal) Int64Value ¶
func (d NullDecimal) Int64Value() (pgtype.Int8, error)
func (NullDecimal) NumericValue ¶
func (d NullDecimal) NumericValue() (pgtype.Numeric, error)
func (*NullDecimal) ScanFloat64 ¶
func (d *NullDecimal) ScanFloat64(v pgtype.Float8) error
func (*NullDecimal) ScanNumeric ¶
func (d *NullDecimal) ScanNumeric(v pgtype.Numeric) error
type NumericCodec ¶
type NumericCodec struct {
pgtype.NumericCodec
}
func (NumericCodec) DecodeValue ¶
Click to show internal directories.
Click to hide internal directories.