-
-
Save stephanbuys/10bdce8038b1c9c27aa30f6a51d15b23 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diesel::debug_sql; | |
let posts_with_sql = posts.filter(published.eq(true)) | |
.limit(5); | |
println!("SelectStatement: {:#?}", posts_with_sql); | |
let results = posts_with_sql | |
.load::<Post>(&connection) | |
.expect("Error loading posts"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment