Struct prql_compiler::Options
source · pub struct Options {
pub format: bool,
pub target: Target,
pub signature_comment: bool,
pub color: bool,
}
Expand description
Compilation options for SQL backend of the compiler.
Fields§
§format: bool
Pass generated SQL string trough a formatter that splits it into multiple lines and prettifies indentation and spacing.
Defaults to true.
target: Target
Target and dialect to compile to.
signature_comment: bool
Emits the compiler signature as a comment after generated SQL
Defaults to true.
color: bool
Whether to use ANSI colors in error messages.
Implementations§
source§impl Options
impl Options
pub fn no_format(self) -> Self
pub fn with_signature_comment(self, signature_comment: bool) -> Self
pub fn no_signature(self) -> Self
pub fn with_target(self, target: Target) -> Self
pub fn some(self) -> Option<Self>
pub fn with_color(self, color: bool) -> Self
Trait Implementations§
source§impl<'de> Deserialize<'de> for Options
impl<'de> Deserialize<'de> for Options
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