pub struct Table {
pub columns: Vec<String>,
pub types: Vec<ColType>,
pub rows: Vec<Vec<Cell>>,
}Expand description
A lookup’s rows, typed.
Fields§
§columns: Vec<String>§types: Vec<ColType>§rows: Vec<Vec<Cell>>Implementations§
Source§impl Table
impl Table
Sourcepub fn inline_sql(&self, style: StringLiteral) -> String
pub fn inline_sql(&self, style: StringLiteral) -> String
(select * from (values ...) as t(cols)), with text spelled as the source asks.
Sourcepub fn to_batch(&self) -> Result<RecordBatch, String>
pub fn to_batch(&self) -> Result<RecordBatch, String>
The rows as one Arrow batch, for loading into a temp table.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Table
impl RefUnwindSafe for Table
impl Send for Table
impl Sync for Table
impl Unpin for Table
impl UnsafeUnpin for Table
impl UnwindSafe for Table
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