Struct sqlformat::FormatOptions [−][src]
pub struct FormatOptions {
pub indent: Indent,
pub uppercase: bool,
pub lines_between_queries: u8,
}
Expand description
Options for controlling how the library formats SQL
Fields
indent: Indent
Controls the type and length of indentation to use
Default: 2 spaces
uppercase: bool
When set, changes reserved keywords to ALL CAPS
Default: false
lines_between_queries: u8
Controls the number of line breaks after a query
Default: 1
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for FormatOptions
impl Send for FormatOptions
impl Sync for FormatOptions
impl Unpin for FormatOptions
impl UnwindSafe for FormatOptions
Blanket Implementations
Mutably borrows from an owned value. Read more