zero-mysql
A high-performance MySQL client library for Rust.
API Reference (docs.rs) | User Guide
Python binding: pyro-mysql
Feature Flags
sync(default): synchronous APItokio(default): asynchronous APIsync-tls: TLS support for synchronous API (experimental)tokio-tls: TLS support for asynchronous API (experimental)
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