pub trait Column:
Sealed
+ 'static
+ Send
+ Sync
+ Debug {
type Database: Database;
// Required methods
fn ordinal(&self) -> usize;
fn name(&self) -> &str;
fn type_info(&self) -> &<Self::Database as Database>::TypeInfo;
}
Required Associated Types§
Required Methods§
Sourcefn ordinal(&self) -> usize
fn ordinal(&self) -> usize
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
Implementors§
Source§impl Column for AnyColumn
Available on (crate features postgres
or mysql
or mssql
or sqlite
or odbc
) and crate feature any
only.
impl Column for AnyColumn
Available on (crate features
postgres
or mysql
or mssql
or sqlite
or odbc
) and crate feature any
only.Source§impl Column for MssqlColumn
Available on crate feature mssql
only.
impl Column for MssqlColumn
Available on crate feature
mssql
only.Source§impl Column for MySqlColumn
Available on crate feature mysql
only.
impl Column for MySqlColumn
Available on crate feature
mysql
only.