// scanValues returns the types for scanning values from sql.Rows.
scanValues returns the types for scanning values from sql.Rows.
// scanValues returns the types for scanning values from sql . Rows .
func (*Scope) scanValues(columns []string) ([]interface{}, error) {
	values := make([]interface{}, len(columns))
	for i := range columns {
		switch columns[i] {
		case scope.FieldID, scope.FieldCustomID, scope.FieldNonce, scope.FieldDomain:
			values[i] = &sql.NullString{}
		case scope.FieldCreatedAt, scope.FieldUpdatedAt, scope.FieldDeletedAt:
			values[i] = &sql.NullTime{}
		default:
			return nil, fmt.Errorf("unexpected column %q for type Scope", columns[i])
		}
	}
	return values, nil
}
func ( * Scope ) scanValues ( columns [ ] string ) ( [ ] interface { } , error ) { values := make ( [ ] interface { } , len ( columns ) ) for i := range columns { switch columns [ i ] { case scope . FieldID , scope . FieldCustomID , scope . FieldNonce , scope . FieldDomain : values [ i ] = & sql . NullString { } case scope . FieldCreatedAt , scope . FieldUpdatedAt , scope . FieldDeletedAt : values [ i ] = & sql . NullTime { } default : return nil , fmt . Errorf ( " " , columns [ i ] ) } } return values , nil }
scanValues returns the types for scanning values from sql.Rows.
scanValues returns the types for scanning values from sql . Rows .