File tree Expand file tree Collapse file tree
mysql/getting_started_step_3/src/bin
postgres/getting_started_step_3/src/bin
sqlite/getting_started_step_3/src/bin Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,14 +4,14 @@ use diesel_demo_step_3_mysql::*;
44use std:: env:: args;
55
66fn main ( ) {
7- use self :: schema:: posts:: dsl:: { posts , id } ;
7+ use self :: schema:: posts:: dsl:: { id , posts } ;
88
99 let post_id = args ( )
1010 . nth ( 1 )
1111 . expect ( "get_post requires a post id" )
1212 . parse :: < i32 > ( )
1313 . expect ( "Invalid ID" ) ;
14-
14+
1515 let connection = & mut establish_connection ( ) ;
1616
1717 let post = connection
Original file line number Diff line number Diff line change @@ -4,14 +4,14 @@ use diesel_demo_step_3_pg::*;
44use std:: env:: args;
55
66fn main ( ) {
7- use self :: schema:: posts:: dsl:: { posts , id } ;
7+ use self :: schema:: posts:: dsl:: { id , posts } ;
88
99 let post_id = args ( )
1010 . nth ( 1 )
1111 . expect ( "get_post requires a post id" )
1212 . parse :: < i32 > ( )
1313 . expect ( "Invalid ID" ) ;
14-
14+
1515 let connection = & mut establish_connection ( ) ;
1616
1717 let post = connection
Original file line number Diff line number Diff line change @@ -4,14 +4,14 @@ use diesel_demo_step_3_sqlite::*;
44use std:: env:: args;
55
66fn main ( ) {
7- use self :: schema:: posts:: dsl:: { posts , id } ;
7+ use self :: schema:: posts:: dsl:: { id , posts } ;
88
99 let post_id = args ( )
1010 . nth ( 1 )
1111 . expect ( "get_post requires a post id" )
1212 . parse :: < i32 > ( )
1313 . expect ( "Invalid ID" ) ;
14-
14+
1515 let connection = & mut establish_connection ( ) ;
1616
1717 let post = connection
You can’t perform that action at this time.
0 commit comments