Enum diesel::mysql::MysqlType [−][src]
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
Tiny
Sets buffer_type
to MYSQL_TYPE_TINY
Short
Sets buffer_type
to MYSQL_TYPE_SHORT
Long
Sets buffer_type
to MYSQL_TYPE_LONG
LongLong
Sets buffer_type
to MYSQL_TYPE_LONGLONG
Float
Sets buffer_type
to MYSQL_TYPE_FLOAT
Double
Sets buffer_type
to MYSQL_TYPE_DOUBLE
Time
Sets buffer_type
to MYSQL_TYPE_TIME
Date
Sets buffer_type
to MYSQL_TYPE_DATE
DateTime
Sets buffer_type
to MYSQL_TYPE_DATETIME
Timestamp
Sets buffer_type
to MYSQL_TYPE_TIMESTAMP
String
Sets buffer_type
to MYSQL_TYPE_STRING
Blob
Sets buffer_type
to MYSQL_TYPE_BLOB
Trait Implementations
impl Hash for MysqlType
[src]
[+]
impl Hash for MysqlType
impl PartialEq for MysqlType
[src]
[+]
impl PartialEq for MysqlType
impl Eq for MysqlType
[src]
impl Eq for MysqlType
impl Clone for MysqlType
[src]
[+]
impl Clone for MysqlType
impl Copy for MysqlType
[src]
impl Copy for MysqlType