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