You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: models.go
    path of file: ./repos/river/riverdriver/riverdatabasesql/internal/dbsqlc
    
    the code of the file until where you have to start completion: // Code generated by sqlc. DO NOT EDIT.
// versions:
//   sqlc v1.25.0

package dbsqlc

import (
	"database/sql/driver"
	"
    
func (e *JobState) Scan(src interface{}) error {
	switch s := src.(type) {
	case []byte:
		*e = JobState(s)
	case string:
		*e = JobState(s)
	default:
		return fmt.Errorf("unsupported scan type for JobState: %T", src)
	}
	return nil
}