MCPcopy Index your code
hub / github.com/dosco/graphjin / ExplainQuery

Method ExplainQuery

core/api.go:2053–2059  ·  view source on GitHub ↗

ExplainQuery compiles a GraphQL query without executing it. Returns the compiled query, parameters, tables touched, join depth, and cache info.

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

Source from the content-addressed store, hash-verified

2051// ExplainQuery compiles a GraphQL query without executing it.
2052// Returns the compiled query, parameters, tables touched, join depth, and cache info.
2053func (g *GraphJin) ExplainQuery(query string, vars json.RawMessage, role string) (*QueryExplanation, error) {
2054 gj, err := g.getEngine()
2055 if err != nil {
2056 return nil, err
2057 }
2058 return gj.explainQuery(query, vars, role)
2059}
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) {

Callers 5

validateExampleQueryMethod · 0.80
handleExplainQueryMethod · 0.80
logSnowflakeQueryFailureFunction · 0.80

Calls 2

getEngineMethod · 0.95
explainQueryMethod · 0.80

Tested by 2

logSnowflakeQueryFailureFunction · 0.64