Enum gluesql::core::executor::RowContext
source · pub enum RowContext<'a> {
Data {
table_alias: &'a str,
row: Cow<'a, Row>,
next: Option<Rc<RowContext<'a>>>,
},
RefVecData {
columns: &'a [String],
values: &'a [Value],
},
RefMapData(&'a HashMap<String, Value>),
Bridge {
left: Rc<RowContext<'a>>,
right: Rc<RowContext<'a>>,
},
}
Variants§
Implementations§
source§impl<'a> RowContext<'a>
impl<'a> RowContext<'a>
pub fn new( table_alias: &'a str, row: Cow<'a, Row>, next: Option<Rc<RowContext<'a>>> ) -> RowContext<'a>
pub fn concat( left: Rc<RowContext<'a>>, right: Rc<RowContext<'a>> ) -> RowContext<'a>
pub fn get_value(&'a self, target: &str) -> Option<&'a Value>
pub fn get_alias_value( &'a self, target_table_alias: &str, target: &str ) -> Option<&'a Value>
pub fn get_alias_entries(&self, alias: &str) -> Option<Vec<(&String, Value)>>
pub fn get_all_entries(&self) -> Vec<(&String, Value)>
Trait Implementations§
Auto Trait Implementations§
impl<'a> RefUnwindSafe for RowContext<'a>
impl<'a> !Send for RowContext<'a>
impl<'a> !Sync for RowContext<'a>
impl<'a> Unpin for RowContext<'a>
impl<'a> UnwindSafe for RowContext<'a>
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