MCPcopy Create free account
hub / github.com/datastax/cql-proxy / StringByName

Method StringByName

proxycore/resultset.go:81–93  ·  view source on GitHub ↗
(n string)

Source from the content-addressed store, hash-verified

79}
80
81func (r Row) StringByName(n string) (string, error) {
82 val, err := r.ByName(n)
83 if err != nil {
84 return "", err
85 }
86 if val == nil {
87 return "", ColumnIsNull
88 } else if s, ok := val.(string); !ok {
89 return "", fmt.Errorf("'%s' is not a string", n)
90 } else {
91 return s, nil
92 }
93}
94
95func (r Row) InetByName(n string) (net.IP, error) {
96 val, err := r.ByName(n)

Callers 5

TestProxy_DseVersionFunction · 0.80
NewHostFromRowFunction · 0.80
queryHostsMethod · 0.80
NewEndpointMethod · 0.80

Calls 1

ByNameMethod · 0.95

Tested by 2

TestProxy_DseVersionFunction · 0.64