[][src]Trait sqlx::TypeInfo

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

Provides information about a SQL type for the database driver.

Required methods

fn is_null(&self) -> bool

fn name(&self) -> &str

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