MCPcopy
hub / github.com/sqlc-dev/sqlc / Scan

Method Scan

examples/booktest/postgresql/models.go:39–46  ·  view source on GitHub ↗

Scan implements the Scanner interface.

(value interface{})

Source from the content-addressed store, hash-verified

37
38// Scan implements the Scanner interface.
39func (ns *NullBookType) Scan(value interface{}) error {
40 if value == nil {
41 ns.BookType, ns.Valid = "", false
42 return nil
43 }
44 ns.Valid = true
45 return ns.BookType.Scan(value)
46}
47
48// Value implements the driver Valuer interface.
49func (ns NullBookType) Value() (driver.Value, error) {

Callers

nothing calls this directly

Calls 1

ScanMethod · 0.45

Tested by

no test coverage detected