rbdc-mysql-4.9.3 has been yanked.
rbdc-mysql
MySQL database driver for the rbdc database abstraction layer.
Features
- High-performance async connection based on native MySQL protocol
- Full MySQL data type support
- Connection pooling support
- Zero-copy serialization/deserialization
- TLS support (rustls and native-tls)
Supported Connection String Formats
1. Standard URL format
mysql://user:password@host:port/database
2. JDBC-style format
jdbc:mysql://host:port/database?user=user&password=password
Usage
use ConnectionManager;
use MysqlDriver;
async
RBDC Architecture
- Database driver abstraction layer
- Zero-copy serialization/deserialization
Data flow: Database -> bytes -> rbs::Value -> Struct(User Define) Reverse: Struct(User Define) -> rbs::ValueRef -> ref clone() -> Database
How to Define a Custom Driver?
Implement the following traits and load the driver:
impl trait rbdc::db::{Driver, MetaData, Row, Connection, ConnectOptions, Placeholder}
Dependencies
- mysql_async - Async MySQL database driver
- url - URL parsing
- percent-encoding - URL encoding
License
This project is licensed under the same license as rbdc.