MCPcopy Create free account
hub / github.com/cockroachdb/apd / Scan

Method Scan

decimal.go:824–831  ·  view source on GitHub ↗

Scan implements the database/sql.Scanner interface.

(value interface{})

Source from the content-addressed store, hash-verified

822
823// Scan implements the database/sql.Scanner interface.
824func (nd *NullDecimal) Scan(value interface{}) error {
825 if value == nil {
826 nd.Valid = false
827 return nil
828 }
829 nd.Valid = true
830 return nd.Decimal.Scan(value)
831}
832
833// Value implements the database/sql/driver.Valuer interface.
834func (nd NullDecimal) Value() (driver.Value, error) {

Callers

nothing calls this directly

Calls 1

ScanMethod · 0.45

Tested by

no test coverage detected