File tree Expand file tree Collapse file tree 3 files changed +11
-6
lines changed Expand file tree Collapse file tree 3 files changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,11 @@ All user visible changes to this project will be documented in this file.
44This project adheres to [ Semantic Versioning] ( http://semver.org/ ) , as described
55for Rust libraries in [ RFC #1105 ] ( https://github.com/rust-lang/rfcs/blob/master/text/1105-api-evolution.md )
66
7+ ## [ 0.3.1] - 2023-06-07
8+
9+ * Minor readme fixes
10+ * Add a missing ` UpdateAndFetchResults ` impl
11+
712## [ 0.3.0] - 2023-05-26
813
914* Compatibility with diesel 2.1
Original file line number Diff line number Diff line change 11[package ]
22name = " diesel-async"
3- version = " 0.3.0 "
3+ version = " 0.3.1 "
44authors = [
" Georg Semmler <[email protected] >" ]
5- edition = " 2018 "
5+ edition = " 2021 "
66autotests = false
77license = " MIT OR Apache-2.0"
88readme = " README.md"
Original file line number Diff line number Diff line change @@ -27,8 +27,8 @@ A normal project should use a setup similar to the following one:
2727
2828``` toml
2929[dependencies ]
30- diesel = " 2.0.3 " # no backend features need to be enabled
31- diesel-async = { version = " 0.2 .1" , features = [" postgres" ] }
30+ diesel = " 2.1.0 " # no backend features need to be enabled
31+ diesel-async = { version = " 0.3 .1" , features = [" postgres" ] }
3232```
3333
3434This allows to import the relevant traits from both crates:
@@ -50,11 +50,11 @@ table! {
5050#[diesel(table_name = users)]
5151struct User {
5252 id : i32 ,
53- name : Text ,
53+ name : String ,
5454}
5555
5656// create an async connection
57- let mut connection = AsyncPgConnection :: establish (std :: env :: var (" DATABASE_URL" )? ). await ? ;
57+ let mut connection = AsyncPgConnection :: establish (& std :: env :: var (" DATABASE_URL" )? ). await ? ;
5858
5959// use ordinary diesel query dsl to construct your query
6060let data : Vec <User > = users :: table
You can’t perform that action at this time.
0 commit comments