Struct prql_compiler::sql::Options
source · 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.
dialect: Option<Dialect>
Target dialect you want to compile for.
Because PRQL compiles to a subset of SQL, not all SQL features are required for PRQL. This means that generic dialect may work with most databases.
If something does not work in dialect you need, please report it at GitHub issues.
If None is used, sql_dialect
flag from query definition is used.
If it does not exist, Dialect::Generic is used.
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