Struct prql_compiler::Options
source · pub struct Options {
pub format: bool,
pub target: Target,
pub signature_comment: 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.
Implementations§
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