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

Method NameIndex

IceFireDB-SQLProxy/pkg/mysql/mysql/resultset.go:84–90  ·  view source on GitHub ↗
(name string)

Source from the content-addressed store, hash-verified

82}
83
84func (r *Resultset) NameIndex(name string) (int, error) {
85 if column, ok := r.FieldNames[name]; ok {
86 return column, nil
87 } else {
88 return 0, errors.Errorf("invalid field name %s", name)
89 }
90}
91
92func (r *Resultset) GetValueByName(row int, name string) (any, error) {
93 if column, err := r.NameIndex(name); err != nil {

Callers 5

GetValueByNameMethod · 0.95
IsNullByNameMethod · 0.95
GetUintByNameMethod · 0.95
GetFloatByNameMethod · 0.95
GetStringByNameMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected