2023-08-17 18:03:46 +00:00
|
|
|
use revision::revisioned;
|
2023-07-14 12:22:37 +00:00
|
|
|
use serde::{Deserialize, Serialize};
|
|
|
|
use std::fmt;
|
|
|
|
|
|
|
|
#[derive(Clone, Debug, Default, Eq, PartialEq, PartialOrd, Serialize, Deserialize, Hash)]
|
2023-08-17 18:03:46 +00:00
|
|
|
#[revisioned(revision = 1)]
|
2024-01-09 15:34:52 +00:00
|
|
|
#[cfg_attr(feature = "arbitrary", derive(arbitrary::Arbitrary))]
|
2023-07-14 12:22:37 +00:00
|
|
|
pub struct Explain(pub bool);
|
|
|
|
|
|
|
|
impl fmt::Display for Explain {
|
|
|
|
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
|
|
|
f.write_str("EXPLAIN")?;
|
|
|
|
if self.0 {
|
|
|
|
f.write_str(" FULL")?;
|
|
|
|
}
|
|
|
|
Ok(())
|
|
|
|
}
|
|
|
|
}
|