pub struct Compilation {
pub commands: Vec<Vec<String>>,
pub query_cards: Vec<QueryCard>,
pub notes: Vec<String>,
}Expand description
The result of compile: engine commands, query cards, and notes.
Fields§
§commands: Vec<Vec<String>>Declaration commands in apply order: one TABLE.DECLARE per
table (declaration order), then the VIEW.CREATEs. Each is an
argv vector, ready for a RESP client.
query_cards: Vec<QueryCard>Runtime templates for parameterized / clause-bearing views, declaration order.
notes: Vec<String>Honest-mapping notes (coarse type mappings, naming, read templates) — informational, never errors.
Implementations§
Source§impl Compilation
impl Compilation
Sourcepub fn render_script(&self) -> String
pub fn render_script(&self) -> String
Render the compilation as a readable text artifact: commands as
pasteable lines, cards as documented comment blocks with a
machine-readable #@card / #@param / #@argv section (argv
tab-separated), then the notes. Deterministic.
Trait Implementations§
Source§impl Clone for Compilation
impl Clone for Compilation
Source§fn clone(&self) -> Compilation
fn clone(&self) -> Compilation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Compilation
impl Debug for Compilation
impl Eq for Compilation
Source§impl PartialEq for Compilation
impl PartialEq for Compilation
impl StructuralPartialEq for Compilation
Auto Trait Implementations§
impl Freeze for Compilation
impl RefUnwindSafe for Compilation
impl Send for Compilation
impl Sync for Compilation
impl Unpin for Compilation
impl UnsafeUnpin for Compilation
impl UnwindSafe for Compilation
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