Expand description
Implementation of the Spin MySQL database interface. Conversions between Rust, WIT and MySQL types.
Types
Rust type | WIT (db-value) | MySQL type(s) |
---|---|---|
bool | int8(s8) | TINYINT(1), BOOLEAN |
i8 | int8(s8) | TINYINT |
i16 | int16(s16) | SMALLINT |
i32 | int32(s32) | MEDIUM, INT |
i64 | int64(s64) | BIGINT |
u8 | uint8(u8) | TINYINT UNSIGNED |
u16 | uint16(u16) | SMALLINT UNSIGNED |
u32 | uint32(u32) | INT UNSIGNED |
u64 | uint64(u64) | BIGINT UNSIGNED |
f32 | floating32(float32) | FLOAT |
f64 | floating64(float64) | DOUBLE |
String | str(string) | VARCHAR, CHAR, TEXT |
Vec<u8> | binary(list | VARBINARY, BINARY, BLOB |
Structs
Enums
Traits
A type that can be decoded from the database.