Releases: blackbeam/rust-mysql-simple
Releases · blackbeam/rust-mysql-simple
v11.3.0
Row::get_opt
andRow::take_opt
added by @zacharygolba
v11.2.0
v11.1.2
@klingtnet made Pool::new
more generic via impl<T: AsRef<str>> From<T> for Opts
.
v11.1.1
v11.1.0
v11.0.0
v10.0.0
v9.1.0
Changes:
- Serde-based JSON support via
serde_integration
feature (thanks to @TheServerAsterisk). - Connect timeout is implemented and available through
tcp_connect_timeout
option andtcp_connect_timeout_ms
url parameter.
v9.0.0
Changes:
- JSON support.
- openssl updated to v0.9
tcp_keepalive_timeout_ms
option added.
JSON Support
-
FromValue
is implemented forrustc_serialize::json::Json
and 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: Encodable
is implemented forValue
:#[derive(RustcEncodable)] struct EncodableStruct { // ... } // ... conn.prep_exec("INSERT INTO table (json_column) VALUES (?)", (Serialized(encodable_struct_instance),));
v8.0.0
Changes:
- Reexport
chrono
andtime
crates (@deniskolodin). - Conditional compilation and
io
module refactoring (@deniskolodin). socket
,pipe
anduuid
features removed.- Native ssl support on OS X (via security framework).
- Fix unicode handling in
parse_named_params
. ssl
feature is now opt-in.GenericConnection
trait introduced (@alex-gulyas).- Traits reexports moved to
mysql::prelude
module.