Skip to main content

explain

Function explain 

Source
pub fn explain(gated: &Gated, trace: bool) -> Result<String>
Expand description

Builds the request for the server’s own plan of a statement.

The statement is wrapped rather than rewritten, so every byte the caller wrote reaches the server unchanged.

§Errors

Returns a validation failure when the caller’s text already asks for a plan or for a measurement, because wrapping it again would ask a different question than the one the caller wrote.