pub struct QueryEntry {
pub query: String,
pub path: PathBuf,
pub profile: Option<String>,
pub tab: bool,
pub tab_name: Option<String>,
pub anchor: Option<String>,
pub header: Option<bool>,
pub columns: BTreeMap<String, ColumnOptions>,
pub autofit: Option<bool>,
pub style: Option<SheetStyle>,
pub on_empty: Option<OnEmpty>,
pub secret_columns: Vec<String>,
}Fields§
§query: String§path: PathBufThe .sql file, relative to the root.
profile: Option<String>The query’s own connection (profile: on its entry), as written: it may hold Jinja.
tab: boolWhether this query’s result becomes a tab (a sheet, or a file for single-table formats).
One .sql file makes at most one tab: its last statement’s result. tab: false runs the
file only for its effects (temp views, SETs) and discards any result.
tab_name: Option<String>§anchor: Option<String>§header: Option<bool>§columns: BTreeMap<String, ColumnOptions>xlsx: per result column, how to show it ({format: "#,##0.00"}).
autofit: Option<bool>xlsx: size this tab’s columns from their content, over the output’s autofit.
style: Option<SheetStyle>xlsx: how this tab looks, over the output’s style.
on_empty: Option<OnEmpty>on_empty:: what to do when this query returns no rows; None: the output decides.
secret_columns: Vec<String>secret_columns:: columns whose values are masked wherever DRE reports.
Trait Implementations§
Source§impl Clone for QueryEntry
impl Clone for QueryEntry
Source§impl Debug for QueryEntry
impl Debug for QueryEntry
Source§impl PartialEq for QueryEntry
impl PartialEq for QueryEntry
Source§impl Serialize for QueryEntry
impl Serialize for QueryEntry
impl StructuralPartialEq for QueryEntry
Auto Trait Implementations§
impl Freeze for QueryEntry
impl RefUnwindSafe for QueryEntry
impl Send for QueryEntry
impl Sync for QueryEntry
impl Unpin for QueryEntry
impl UnsafeUnpin for QueryEntry
impl UnwindSafe for QueryEntry
Blanket Implementations§
impl<T> Allocation for T
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more