ExplainQueryForDatabase compiles a GraphQL query against a specific configured database without executing it.
(database, query string, vars json.RawMessage, role string)
| 2060 | |
| 2061 | // ExplainQueryForDatabase compiles a GraphQL query against a specific configured database without executing it. |
| 2062 | func (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. |
| 2071 | func (g *GraphJin) ExploreRelationships(table string, depth int) (*RelationshipGraph, error) { |
no test coverage detected