Trait sqlx_core::column::Column[][src]

pub trait Column: Sealed + 'static + Send + Sync + Debug {
    type Database: Database;
    fn ordinal(&self) -> usize;
fn name(&self) -> &str;
fn type_info(&self) -> &<Self::Database as Database>::TypeInfo; }

Associated Types

Required methods

fn ordinal(&self) -> usize[src][]

Gets the column ordinal.

This can be used to unambiguously refer to this column within a row in case more than one column have the same name

fn name(&self) -> &str[src][]

Gets the column name or alias.

The column name is unreliable (and can change between database minor versions) if this column is an expression that has not been aliased.

fn type_info(&self) -> &<Self::Database as Database>::TypeInfo[src][]

Gets the type information for the column.

Implementors