MCPcopy Index your code
hub / github.com/coder/coder / Scan

Method Scan

coderd/database/models.go:33–43  ·  view source on GitHub ↗
(src interface{})

Source from the content-addressed store, hash-verified

31)
32
33func (e *AIProviderType) Scan(src interface{}) error {
34 switch s := src.(type) {
35 case []byte:
36 *e = AIProviderType(s)
37 case string:
38 *e = AIProviderType(s)
39 default:
40 return fmt.Errorf("unsupported scan type for AIProviderType: %T", src)
41 }
42 return nil
43}
44
45type NullAIProviderType struct {
46 AIProviderType AIProviderType `json:"ai_provider_type"`

Callers

nothing calls this directly

Calls 2

AIProviderTypeTypeAlias · 0.70
ErrorfMethod · 0.45

Tested by

no test coverage detected