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

Method Scan

backend/plugin/db/snowflake/sync.go:268–277  ·  view source on GitHub ↗

Scan implements the sql.Scanner interface.

(src any)

Source from the content-addressed store, hash-verified

266
267// Scan implements the sql.Scanner interface.
268func (a *ArrayString) Scan(src any) error {
269 switch v := src.(type) {
270 case string:
271 return json.Unmarshal([]byte(v), a)
272 case []byte:
273 return json.Unmarshal(v, a)
274 default:
275 return errors.New("invalid type")
276 }
277}
278
279// getTaskSchema returns the task map of the given database.
280//

Callers 15

QueryFunction · 0.80
isStoredColumnMethod · 0.80
getCurrentUserFunction · 0.80
PingMethod · 0.80
getVersionMethod · 0.80
queryStringValuesMethod · 0.80
getInstanceRolesMethod · 0.80
CountAffectedRowsMethod · 0.80

Calls 1

UnmarshalMethod · 0.80