diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2018-12-26 18:21:42 -0800 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2018-12-26 18:21:42 -0800 |
commit | 2089289d7d34c16d9530699f4635ff0f69d7d556 (patch) | |
tree | 9b2a699f27ab4abab33437792130da283eb79150 | |
parent | a8a22fabf26c23fbd7e9bae28b99d9bf17b98cbe (diff) | |
download | fatcat-2089289d7d34c16d9530699f4635ff0f69d7d556.tar.gz fatcat-2089289d7d34c16d9530699f4635ff0f69d7d556.zip |
fileset/web support for exports
-rw-r--r-- | rust/src/bin/fatcat-export.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/rust/src/bin/fatcat-export.rs b/rust/src/bin/fatcat-export.rs index dd3f4da4..8b7c4442 100644 --- a/rust/src/bin/fatcat-export.rs +++ b/rust/src/bin/fatcat-export.rs @@ -46,6 +46,8 @@ arg_enum! { Creator, Container, File, + Fileset, + Webcapture, Release, Work } @@ -107,6 +109,8 @@ macro_rules! generic_loop_work { generic_loop_work!(loop_work_container, ContainerEntity); generic_loop_work!(loop_work_creator, CreatorEntity); generic_loop_work!(loop_work_file, FileEntity); +generic_loop_work!(loop_work_fileset, FilesetEntity); +generic_loop_work!(loop_work_webcapture, WebcaptureEntity); generic_loop_work!(loop_work_release, ReleaseEntity); generic_loop_work!(loop_work_work, WorkEntity); @@ -203,6 +207,12 @@ pub fn do_export( ExportEntityType::File => { thread::spawn(move || loop_work_file(row_receiver, output_sender, &db_conn, expand)) } + ExportEntityType::Fileset => { + thread::spawn(move || loop_work_fileset(row_receiver, output_sender, &db_conn, expand)) + } + ExportEntityType::Webcapture=> { + thread::spawn(move || loop_work_webcapture(row_receiver, output_sender, &db_conn, expand)) + } ExportEntityType::Release => thread::spawn(move || { loop_work_release(row_receiver, output_sender, &db_conn, expand) }), |