Expand description
MySQL type system and type conversion.
This module provides:
- MySQL field type constants
- Encoding/decoding between Rust types and MySQL wire format
- Type information for column definitions
§MySQL Type System
MySQL uses field type codes in result sets and binary protocol. The encoding differs between text protocol (all strings) and binary protocol (type-specific binary encoding).
Modules§
- column_
flags - Column flags in result set metadata.
Structs§
- Column
Def - Column definition from a result set.
Enums§
- Field
Type - MySQL field type codes.
Functions§
- decode_
binary_ value - Decode a binary protocol value to a sqlmodel Value.
- decode_
binary_ value_ with_ len - Decode a binary protocol value and return bytes consumed.
- decode_
text_ value - Decode a text protocol value to a sqlmodel Value.
- encode_
binary_ value - Encode a sqlmodel Value for binary protocol.
- format_
value_ for_ sql - Format a sqlmodel Value for use in MySQL text protocol SQL.
- interpolate_
params - Interpolate parameters into a SQL query string.