// ValByName returns a value and its associated type from the Row
// corresponding to the supplied column name. If the column name is not
// recognised then an error is returned.
ValByName returns a value and its associated type from the Row
corresponding to the supplied column name. If the column name is not
recognised then an error is returned.
// ValByName returns a value and its associated type from the Row // corresponding to the supplied column name . If the column name is not // recognised then an error is returned .
func (r *Row) ValByName(name string) (interface{}, ColType, error) {
	ci, ok := r.mci.nameToCol[name]
	if !ok {
		return nil, ColTypeUnknown, dfErrorf("Unknown column name: %q", name)
	}
	return r.ValByIdx(ci)
}
func ( r * Row ) ValByName ( name string ) ( interface { } , ColType , error ) { ci , ok := r . mci . nameToCol [ name ] if ! ok { return nil , ColTypeUnknown , dfErrorf ( " " , name ) } return r . ValByIdx ( ci ) }
ValByName returns a value and its associated type from the Row
corresponding to the supplied column name.
ValByName returns a value and its associated type from the Row corresponding to the supplied column name .