zero-mysql
A high-performance MySQL client library for Rust.
API Reference (docs.rs) | User Guide
Python binding: pyro-mysql
Feature Flags
derive(default):#[derive(FromRow)]and#[derive(RefFromRow)]macrossync(default): synchronous APItokio(default): asynchronous APIcompio: asynchronous API using compio (experimental)sync-tls: TLS support for synchronous API (experimental)tokio-tls: TLS support for tokio (experimental)compio-tls: TLS support for compio (experimental)diesel: Diesel support (experimental)
TLS flags use native-tls.
with-chrono- Support chrono date/time typeswith-time- Support time date/time typeswith-uuid- Support uuid typeswith-rust-decimal- Support rust_decimal types
Perf Notes
- Prefer MariaDB to MySQL
- Prefer UnixSocket to TCP
- Set
Opts.upgrade_to_unix_socket=falseand manually set the socket path - Use Conn.exec_bulk_insert_or_update to group 2~1000
INSERTs orUPDATEs