Releases: blackbeam/rust-mysql-simple
Releases · blackbeam/rust-mysql-simple
v9.1.0
Changes:
- Serde-based JSON support via
serde_integrationfeature (thanks to @TheServerAsterisk). - Connect timeout is implemented and available through
tcp_connect_timeoutoption andtcp_connect_timeout_msurl parameter.
v9.0.0
Changes:
- JSON support.
- openssl updated to v0.9
tcp_keepalive_timeout_msoption added.
JSON Support
-
FromValueis implemented forrustc_serialize::json::Jsonand forUnserialized<T> where T: Decodable:#[derive(RustcDecodable)] struct DecodableStruct { // ... } // ... let (Unserialized(val),): (Unserialized<DecodableStruct>,) = from_row(row_with_single_json_column);
-
From<Json>andFrom<Serialized<T>> where T: Encodableis implemented forValue:#[derive(RustcEncodable)] struct EncodableStruct { // ... } // ... conn.prep_exec("INSERT INTO table (json_column) VALUES (?)", (Serialized(encodable_struct_instance),));
v8.0.0
Changes:
- Reexport
chronoandtimecrates (@deniskolodin). - Conditional compilation and
iomodule refactoring (@deniskolodin). socket,pipeanduuidfeatures removed.- Native ssl support on OS X (via security framework).
- Fix unicode handling in
parse_named_params. sslfeature is now opt-in.GenericConnectiontrait introduced (@alex-gulyas).- Traits reexports moved to
mysql::preludemodule.
v7.1.2
v7.1.1
v7.0.1
v7.0.0
v6.0.0
This release fixes typo in PooledConn::drop() which leads to huge performance regressions for cases where number of acquired PooledConns is greater than pool.min. It also fixes Pool::first_exec signature (mut removed) and adds implementation of From<[u8; 0..32]> for Value.
Also this release adds a bunch of performance improvements as a result of solving #53:
Columnwas rewritten to speedupColumn::from_payloadandColumn::clone(). It affects performance ofprepareandprep_execin all cases.- Connectivity check was improved. It affects performance of
Pool::prepareandPool::get_conn. - TLS slot for pool connection was added. It removes pool overhead in many cases.
- A way to turn off connectivity checks, pool-level stmt cache and TLS slot was added. Turning off connectivity checks may speedup batch jobs in cases when
Pool::get_connandPool::prepareis frequently used. - XXHash now used for stmt cache.
InnerPoolnow usingVecDequeto store connections.