MCPcopy Create free account
hub / github.com/dolthub/doltgresql / Scan

Method Scan

postgres/parser/uuid/sql.go:84–93  ·  view source on GitHub ↗

Scan implements the sql.Scanner interface.

(src interface{})

Source from the content-addressed store, hash-verified

82
83// Scan implements the sql.Scanner interface.
84func (u *NullUUID) Scan(src interface{}) error {
85 if src == nil {
86 u.UUID, u.Valid = Nil, false
87 return nil
88 }
89
90 // Delegate to UUID Scan function
91 u.Valid = true
92 return u.UUID.Scan(src)
93}
94
95// MarshalJSON marshals the NullUUID as null or the nested UUID
96func (u NullUUID) MarshalJSON() ([]byte, error) {

Callers

nothing calls this directly

Calls 1

ScanMethod · 0.45

Tested by

no test coverage detected