Skip to main content

MySQLColumn

Trait MySQLColumn 

Source
pub trait MySQLColumn<'a>: SQLColumn<'a, MySQLValue<'a>> {
    const DDL_NAME: &'static str;
    const AUTO_INCREMENT: bool = false;
    const CHARSET: Option<&'static str> = None;
    const COLLATE: Option<&'static str> = None;
}
Expand description

A generated column belonging to a MySQL table.

Required Associated Constants§

Source

const DDL_NAME: &'static str

Backtick-quoted column identifier for const DDL generation.

Provided Associated Constants§

Source

const AUTO_INCREMENT: bool = false

Whether the column uses MySQL’s AUTO_INCREMENT behavior.

Source

const CHARSET: Option<&'static str> = None

Effective character set declared by the column or its table.

Source

const COLLATE: Option<&'static str> = None

Effective collation declared by the column or its table.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<'a, T> MySQLColumn<'a> for &T
where T: MySQLColumn<'a>, for<'r> &'r T: SQLColumn<'a, MySQLValue<'a>>,

Source§

const DDL_NAME: &'static str = T::DDL_NAME

Source§

const AUTO_INCREMENT: bool = T::AUTO_INCREMENT

Source§

const CHARSET: Option<&'static str> = T::CHARSET

Source§

const COLLATE: Option<&'static str> = T::COLLATE

Implementors§