MCPcopy
hub / github.com/dosco/graphjin / ExplainQueryForDatabase

Method ExplainQueryForDatabase

core/api.go:2062–2068  ·  view source on GitHub ↗

ExplainQueryForDatabase compiles a GraphQL query against a specific configured database without executing it.

(database, query string, vars json.RawMessage, role string)

Source from the content-addressed store, hash-verified

2060
2061// ExplainQueryForDatabase compiles a GraphQL query against a specific configured database without executing it.
2062func (g *GraphJin) ExplainQueryForDatabase(database, query string, vars json.RawMessage, role string) (*QueryExplanation, error) {
2063 gj, err := g.getEngine()
2064 if err != nil {
2065 return nil, err
2066 }
2067 return gj.explainQueryForDatabase(database, query, vars, role)
2068}
2069
2070// ExploreRelationships returns a graph of all reachable tables from the given table up to the specified depth.
2071func (g *GraphJin) ExploreRelationships(table string, depth int) (*RelationshipGraph, error) {

Callers 1

Calls 2

getEngineMethod · 0.95

Tested by

no test coverage detected