MCPcopy
hub / github.com/dgraph-io/dgraph / Oracle

Function Oracle

posting/oracle.go:30–32  ·  view source on GitHub ↗

Oracle returns the global oracle instance. TODO: Oracle should probably be located in worker package, instead of posting package now that we don't run inSnapshot anymore.

()

Source from the content-addressed store, hash-verified

28// TODO: Oracle should probably be located in worker package, instead of posting
29// package now that we don't run inSnapshot anymore.
30func Oracle() *oracle {
31 return o
32}
33
34func init() {
35 o = new(oracle)

Callers 15

HealthMethod · 0.92
processQueryFunction · 0.92
TestCalculateSnapshotFunction · 0.92
backupCurrentGroupFunction · 0.92
exportFunction · 0.92
processSortFunction · 0.92
RestoreMethod · 0.92
TestGetScalarListFunction · 0.92
TestMultipleTxnListCountFunction · 0.92

Calls

no outgoing calls

Tested by 15

TestCalculateSnapshotFunction · 0.74
TestGetScalarListFunction · 0.74
TestMultipleTxnListCountFunction · 0.74
TestScalarPredicateCountFunction · 0.74
TestSingleUidReplacementFunction · 0.74
TestSingleStringFunction · 0.74
TestLangExactFunction · 0.74
TestReverseEdgeFunction · 0.74