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

Method Query

dgraphapi/cluster.go:776–783  ·  view source on GitHub ↗

Query performa a given query in a new txn

(query string)

Source from the content-addressed store, hash-verified

774
775// Query performa a given query in a new txn
776func (gc *GrpcClient) Query(query string) (*api.Response, error) {
777 txn := gc.NewTxn()
778 defer func() { _ = txn.Discard(context.Background()) }()
779
780 ctx, cancel := context.WithTimeout(context.Background(), requestTimeout)
781 defer cancel()
782 return txn.Query(ctx, query)
783}
784
785// IsHigherVersion checks whether "higher" is the higher version compared to "lower"
786func IsHigherVersion(higher, lower, repoDir string) (bool, error) {

Callers 15

parseTablesFunction · 0.45
showTablesFunction · 0.45
dumpTableMethod · 0.45
dumpTableConstraintsMethod · 0.45
intFromQueryParamFunction · 0.45
assignMethod · 0.45
moveTabletMethod · 0.45
verifyImportResultsFunction · 0.45
waitForClusterReadyFunction · 0.45

Calls

no outgoing calls

Tested by 15

verifyImportResultsFunction · 0.36
waitForClusterReadyFunction · 0.36
waitForAlphaReadyFunction · 0.36
validateClientConnectionFunction · 0.36
requireCanaryServesFunction · 0.36
checkUpsertLoadedDataFunction · 0.36
checkLoadedDataFunction · 0.36
checkLoadedDataFunction · 0.36
TestTxnRead1Function · 0.36
TestTxnRead2Function · 0.36
TestTxnRead3Function · 0.36