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

Method ParameterizedQueryWithOptions

graph.go:167–172  ·  view source on GitHub ↗

ParameterizedQueryWithOptions issues a parameterized query with the given timeout

(q string, params map[string]interface{}, options *QueryOptions)

Source from the content-addressed store, hash-verified

165
166// ParameterizedQueryWithOptions issues a parameterized query with the given timeout
167func (g *Graph) ParameterizedQueryWithOptions(q string, params map[string]interface{}, options *QueryOptions) (*QueryResult, error) {
168 if(params != nil){
169 q = BuildParamsHeader(params) + q
170 }
171 return g.QueryWithOptions(q, options);
172}
173
174// ROQueryWithOptions issues a read-only query with the given timeout
175func (g *Graph) ROQueryWithOptions(q string, options *QueryOptions) (*QueryResult, error) {

Callers 1

TestTimeoutFunction · 0.80

Calls 2

QueryWithOptionsMethod · 0.95
BuildParamsHeaderFunction · 0.85

Tested by 1

TestTimeoutFunction · 0.64