(col int)
| 343 | } |
| 344 | |
| 345 | func (v *Value) DerefByColumn(col int) (*Value, bool) { |
| 346 | if v != nil { |
| 347 | if bytes, none, ok := v.nth(col); ok { |
| 348 | if none { |
| 349 | return nil, true |
| 350 | } |
| 351 | return NewValue(v.Fields()[col].Type, bytes).Ptr(), false |
| 352 | } |
| 353 | } |
| 354 | return nil, false |
| 355 | } |
| 356 | |
| 357 | func (v Value) IndexOfField(field string) (int, bool) { |
| 358 | if typ := TypeRecordOf(v.Type()); typ != nil { |
no test coverage detected