MCPcopy Create free account
hub / github.com/IceFireDB/IceFireDB / GetValue

Method GetValue

IceFireDB-SQLite/pkg/mysql/mysql/resultset.go:72–82  ·  view source on GitHub ↗
(row, column int)

Source from the content-addressed store, hash-verified

70}
71
72func (r *Resultset) GetValue(row, column int) (any, error) {
73 if row >= len(r.Values) || row < 0 {
74 return nil, errors.Errorf("invalid row index %d", row)
75 }
76
77 if column >= len(r.Fields) || column < 0 {
78 return nil, errors.Errorf("invalid column index %d", column)
79 }
80
81 return r.Values[row][column].Value(), nil
82}
83
84func (r *Resultset) NameIndex(name string) (int, error) {
85 if column, ok := r.FieldNames[name]; ok {

Callers 5

GetValueByNameMethod · 0.95
IsNullMethod · 0.95
GetUintMethod · 0.95
GetFloatMethod · 0.95
GetStringMethod · 0.95

Calls 1

ValueMethod · 0.45

Tested by

no test coverage detected