Trait sqlx::Column[][src]

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

Associated Types

Loading content...

Required methods

pub 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

pub 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.

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

Gets the type information for the column.

Loading content...

Implementors

impl Column for AnyColumn[src]

type Database = Any

impl Column for MssqlColumn[src]

type Database = Mssql

impl Column for MySqlColumn[src]

type Database = MySql

impl Column for PgColumn[src]

type Database = Postgres

impl Column for SqliteColumn[src]

type Database = Sqlite

Loading content...