pub struct BoundResultColumn {
pub expr: BoundExpr,
pub name: Vec<u8>,
pub origin: Option<(Vec<u8>, Vec<u8>, Vec<u8>)>,
pub declared_type: Vec<u8>,
pub written: Option<Vec<u8>>,
}Expand description
One result column, after star expansion.
Fields§
§expr: BoundExprThe expression.
name: Vec<u8>The name the column reports.
origin: Option<(Vec<u8>, Vec<u8>, Vec<u8>)>The table the column came from, when it came from one.
declared_type: Vec<u8>The declared type the column reports, when it has one.
written: Option<Vec<u8>>The name a derived table gives the column, when it is not name.
A column written as a bare reference, with no alias, is named as it
was written when a derived table or a CTE exposes it, and by the
table’s declared name everywhere else. SELECT * FROM (SELECT abc FROM t) over a column declared Abc has a column called abc, while the
header of SELECT abc FROM t and the columns of a view or a CREATE TABLE ... AS over it say Abc. None for every other column.
Trait Implementations§
Source§impl Clone for BoundResultColumn
impl Clone for BoundResultColumn
Source§impl Debug for BoundResultColumn
impl Debug for BoundResultColumn
Source§impl PartialEq for BoundResultColumn
impl PartialEq for BoundResultColumn
impl StructuralPartialEq for BoundResultColumn
Auto Trait Implementations§
impl !Send for BoundResultColumn
impl !Sync for BoundResultColumn
impl Freeze for BoundResultColumn
impl RefUnwindSafe for BoundResultColumn
impl Unpin for BoundResultColumn
impl UnsafeUnpin for BoundResultColumn
impl UnwindSafe for BoundResultColumn
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