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>,
}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"}).
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