pub struct SqlSource {
pub query: String,
pub dimension_columns: Vec<String>,
pub value_column: String,
pub refresh_policy: RefreshPolicy,
}Expand description
How to refresh an SQL-backed input measure: the query and how its columns map to the measure’s dimensions + value. A live-query measure marked here is nondeterministic (its data comes from outside); determinism tests treat only measures WITHOUT an entry here as pure.
Fields§
§query: StringThe SELECT to run on refresh.
dimension_columns: Vec<String>Result column names, in the same order as the measure’s categories,
whose distinct values are the items of each dimension.
value_column: StringResult column holding the numeric value.
refresh_policy: RefreshPolicyWhen this measure should be refreshed. Defaults to Manual (only when
asked). This is policy metadata; a caller (CLI refresh-all, a future
scheduler) decides when to honor it — the deterministic engine core is
untouched either way.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SqlSource
impl<'de> Deserialize<'de> for SqlSource
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
impl Eq for SqlSource
impl StructuralPartialEq for SqlSource
Auto Trait Implementations§
impl Freeze for SqlSource
impl RefUnwindSafe for SqlSource
impl Send for SqlSource
impl Sync for SqlSource
impl Unpin for SqlSource
impl UnsafeUnpin for SqlSource
impl UnwindSafe for SqlSource
Blanket Implementations§
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