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),));