spin_sdk

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§

Enums§

Traits§

  • A type that can be decoded from the database.

Type Aliases§