MCPcopy Create free account
hub / github.com/abice/go-enum / Value

Method Value

example/sql_str_enum.go:166–171  ·  view source on GitHub ↗

Value implements the driver Valuer interface.

()

Source from the content-addressed store, hash-verified

164
165// Value implements the driver Valuer interface.
166func (x NullJobState) Value() (driver.Value, error) {
167 if !x.Valid {
168 return nil, nil
169 }
170 return x.JobState.String(), nil
171}

Callers

nothing calls this directly

Calls 1

StringMethod · 0.45

Tested by

no test coverage detected