Trait sqlx::TypeInfo[][src]

pub trait TypeInfo: Clone + PartialEq<Self> + Send + Sync + Debug + Display {
    pub fn is_null(&self) -> bool;
pub fn name(&self) -> &str; }

Provides information about a SQL type for the database driver.

Required methods

pub fn is_null(&self) -> bool[src]

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

Returns the database system name of the type. Length specifiers should not be included. Common type names are VARCHAR, TEXT, or INT. Type names should be uppercase. They should be a rough approximation of how they are written in SQL in the given database.

Loading content...

Implementors

impl TypeInfo for AnyTypeInfo[src]

impl TypeInfo for MssqlTypeInfo[src]

impl TypeInfo for MySqlTypeInfo[src]

impl TypeInfo for PgTypeInfo[src]

impl TypeInfo for SqliteTypeInfo[src]

Loading content...