pub struct ResolvedColumn {
pub name: String,
pub field_name: String,
pub lang_type: String,
pub full_type: String,
pub neutral_type: String,
pub nullable: bool,
pub join_group: Option<String>,
pub nullable_before_join: bool,
pub sql_type: String,
}Expand description
A column with its type resolved to the target language.
Fields§
§name: String§field_name: String§lang_type: String§full_type: String§neutral_type: String§nullable: bool§join_group: Option<String>Alias of the outer-joined relation this column came from, when the
column was widened to nullable by that join. See
scythe_core::analyzer::AnalyzedColumn::join_group.
nullable_before_join: boolWhether the column was nullable in the schema, before outer-join widening.
sql_type: StringThe raw SQL type this column was derived from (see
scythe_core::analyzer::AnalyzedColumn::sql_type). Backends that need
to distinguish storage representations the neutral type collapses
(Oracle CLOB vs. VARCHAR2, both neutral_type == "string") match on
this instead of neutral_type.
Implementations§
Source§impl ResolvedColumn
impl ResolvedColumn
Sourcepub fn is_join_discriminant(&self) -> bool
pub fn is_join_discriminant(&self) -> bool
Whether this column can only be null because its outer join found no row — making it a usable discriminant for a union.
Trait Implementations§
Source§impl Clone for ResolvedColumn
impl Clone for ResolvedColumn
Source§impl Debug for ResolvedColumn
impl Debug for ResolvedColumn
Auto Trait Implementations§
impl Freeze for ResolvedColumn
impl RefUnwindSafe for ResolvedColumn
impl Send for ResolvedColumn
impl Sync for ResolvedColumn
impl Unpin for ResolvedColumn
impl UnsafeUnpin for ResolvedColumn
impl UnwindSafe for ResolvedColumn
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