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

Function NewQueryOptions

graph.go:105–109  ·  view source on GitHub ↗

NewQueryOptions instantiates a new QueryOptions struct.

()

Source from the content-addressed store, hash-verified

103
104// NewQueryOptions instantiates a new QueryOptions struct.
105func NewQueryOptions() *QueryOptions {
106 return &QueryOptions{
107 timeout: -1,
108 }
109}
110
111// SetTimeout sets the timeout member of the QueryOptions struct
112func (options *QueryOptions) SetTimeout(timeout int) *QueryOptions {

Callers 1

TestTimeoutFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestTimeoutFunction · 0.68