pub struct ExplainOptions {
pub options: Vec<ExplainOption>,
}Expand description
Retain every occurrence in parser order. Describing a result reads FORMAT; executing the command interprets all options before planning its body.
Fields§
§options: Vec<ExplainOption>Implementations§
Source§impl ExplainOptions
impl ExplainOptions
Sourcepub fn infers_unbound_parameters(&self) -> Result<bool, SQLError>
pub fn infers_unbound_parameters(&self) -> Result<bool, SQLError>
Ordinary analysis without an external parameter hook reads only GENERIC_PLAN before the body. All other option diagnostics retain their execution order.
pub fn result_schema(&self) -> Result<RowSchema, SQLError>
pub fn result_schema_with_control( &self, control: &ProductionControl<'_>, ) -> Result<RowSchema, SQLError>
pub fn interpret(&self) -> Result<ExplainSettings, SQLError>
Trait Implementations§
Source§impl Clone for ExplainOptions
impl Clone for ExplainOptions
Source§impl Debug for ExplainOptions
impl Debug for ExplainOptions
Source§impl Default for ExplainOptions
impl Default for ExplainOptions
Source§impl<'de> Deserialize<'de> for ExplainOptions
impl<'de> Deserialize<'de> for ExplainOptions
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ExplainOptions
Source§impl PartialEq for ExplainOptions
impl PartialEq for ExplainOptions
Source§impl Serialize for ExplainOptions
impl Serialize for ExplainOptions
impl StructuralPartialEq for ExplainOptions
Auto Trait Implementations§
impl Freeze for ExplainOptions
impl RefUnwindSafe for ExplainOptions
impl Send for ExplainOptions
impl Sync for ExplainOptions
impl Unpin for ExplainOptions
impl UnsafeUnpin for ExplainOptions
impl UnwindSafe for ExplainOptions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more