Module mysql

Source
Expand description

Implementation of the Spin MySQL database interface. Conversions between Rust, WIT and MySQL types.

§Types

Rust typeWIT (db-value)MySQL type(s)
boolint8(s8)TINYINT(1), BOOLEAN
i8int8(s8)TINYINT
i16int16(s16)SMALLINT
i32int32(s32)MEDIUM, INT
i64int64(s64)BIGINT
u8uint8(u8)TINYINT UNSIGNED
u16uint16(u16)SMALLINT UNSIGNED
u32uint32(u32)INT UNSIGNED
u64uint64(u64)BIGINT UNSIGNED
f32floating32(float32)FLOAT
f64floating64(float64)DOUBLE
Stringstr(string)VARCHAR, CHAR, TEXT
Vec<u8>binary(list<u8>)VARBINARY, BINARY, BLOB

Structs§

Column
A database column
Connection
A connection to a MySQL database.
RowSet
A set of database rows

Enums§

DbDataType
Data types for a database column
DbValue
Database values
Error
A MySQL error
Error
Errors related to interacting with a database.
ParameterValue
Values used in parameterized queries

Traits§

Decode
A type that can be decoded from the database.

Type Aliases§

MysqlError
Row
A database row