summaryrefslogtreecommitdiffstats
path: root/rust/src/bin/show_creators.rs
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2018-05-14 23:17:26 -0700
committerBryan Newbold <bnewbold@robocracy.org>2018-05-14 23:17:26 -0700
commit2c56f2b65bcf3b3f85db9d2a34501154c9c9404d (patch)
treed9580fb8578f6e1ea0f47dd1e6402ebd41d3a0e9 /rust/src/bin/show_creators.rs
parente468707ee53f4a8ff75b00a1eec44921672464b6 (diff)
downloadfatcat-2c56f2b65bcf3b3f85db9d2a34501154c9c9404d.tar.gz
fatcat-2c56f2b65bcf3b3f85db9d2a34501154c9c9404d.zip
regenerated and pseudo-integrated
Diffstat (limited to 'rust/src/bin/show_creators.rs')
-rw-r--r--rust/src/bin/show_creators.rs24
1 files changed, 0 insertions, 24 deletions
diff --git a/rust/src/bin/show_creators.rs b/rust/src/bin/show_creators.rs
deleted file mode 100644
index 968d2542..00000000
--- a/rust/src/bin/show_creators.rs
+++ /dev/null
@@ -1,24 +0,0 @@
-
-extern crate fatcat;
-extern crate diesel;
-
-use self::fatcat::*;
-use self::models::*;
-use self::diesel::prelude::*;
-
-fn main() {
- use diesel_demo::database_schema::creators::dsl::*;
-
- let connection = establish_connection();
- let results = creators.filter(published.eq(true))
- .limit(5)
- .load::<CreatorRev>(&connection)
- .expect("Error loading creators");
-
- println!("Displaying {} creators", results.len());
- for creator in results {
- println!("{}", creator.title);
- println!("----------\n");
- println!("{}", creator.body);
- }
-}