MCPcopy Create free account
hub / github.com/RedisGraph/redisgraph-go / Record

Method Record

query_result.go:308–314  ·  view source on GitHub ↗

Record returns the current record.

()

Source from the content-addressed store, hash-verified

306
307// Record returns the current record.
308func (qr *QueryResult) Record() *Record {
309 if qr.current_record_idx >= 0 && qr.current_record_idx < len(qr.results) {
310 return qr.results[qr.current_record_idx]
311 } else {
312 return nil
313 }
314}
315
316// PrettyPrint prints the QueryResult to stdout, pretty-like.
317func (qr *QueryResult) PrettyPrint() {

Callers 10

ExampleGraphNewFunction · 0.80
ExampleGraphNew_poolFunction · 0.80
ExampleGraphNew_tlsFunction · 0.80
checkQueryResultsFunction · 0.80
TestCreateQueryFunction · 0.80
TestArrayFunction · 0.80
TestMapFunction · 0.80
TestPathFunction · 0.80
TestParameterizedQueryFunction · 0.80
mainFunction · 0.80

Calls

no outgoing calls

Tested by 9

ExampleGraphNewFunction · 0.64
ExampleGraphNew_poolFunction · 0.64
ExampleGraphNew_tlsFunction · 0.64
checkQueryResultsFunction · 0.64
TestCreateQueryFunction · 0.64
TestArrayFunction · 0.64
TestMapFunction · 0.64
TestPathFunction · 0.64
TestParameterizedQueryFunction · 0.64