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

Method Flush

graph.go:82–89  ·  view source on GitHub ↗

Flush will create the graph and clear it

()

Source from the content-addressed store, hash-verified

80
81// Flush will create the graph and clear it
82func (g *Graph) Flush() (*QueryResult, error) {
83 res, err := g.Commit()
84 if err == nil {
85 g.Nodes = make(map[string]*Node)
86 g.Edges = make([]*Edge, 0)
87 }
88 return res, err
89}
90
91// Commit creates the entire graph, but will re-add nodes if called again.
92func (g *Graph) Commit() (*QueryResult, error) {

Callers 3

TestArrayFunction · 0.80
TestQueryStatisticsFunction · 0.80
TestNodeMapDatatypeFunction · 0.80

Calls 1

CommitMethod · 0.95

Tested by 3

TestArrayFunction · 0.64
TestQueryStatisticsFunction · 0.64
TestNodeMapDatatypeFunction · 0.64