Enum diesel::mysql::MysqlType [−][src]
pub enum MysqlType { Tiny, Short, Long, LongLong, Float, Double, Time, Date, DateTime, Timestamp, String, Blob, }
Expand description
Represents the possible forms a bind parameter can be transmitted as. Each variant represents one of the forms documented at https://dev.mysql.com/doc/refman/5.7/en/c-api-prepared-statement-type-codes.html
The null variant is omitted, as we will never prepare a statement in which one of the bind parameters can always be NULL
Variants
Sets buffer_type
to MYSQL_TYPE_TINY
Sets buffer_type
to MYSQL_TYPE_SHORT
Sets buffer_type
to MYSQL_TYPE_LONG
Sets buffer_type
to MYSQL_TYPE_LONGLONG
Sets buffer_type
to MYSQL_TYPE_FLOAT
Sets buffer_type
to MYSQL_TYPE_DOUBLE
Sets buffer_type
to MYSQL_TYPE_TIME
Sets buffer_type
to MYSQL_TYPE_DATE
Sets buffer_type
to MYSQL_TYPE_DATETIME
Sets buffer_type
to MYSQL_TYPE_TIMESTAMP
Sets buffer_type
to MYSQL_TYPE_STRING
Sets buffer_type
to MYSQL_TYPE_BLOB
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for MysqlType
impl UnwindSafe for MysqlType
Blanket Implementations
Mutably borrows from an owned value. Read more
Convert self
to an expression for Diesel’s query builder. Read more