aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index 6c87a0b..7f372ea 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -79,7 +79,7 @@ fn main() {
} => {
let dbconn = rusqlite::Connection::open(database).unwrap();
- match primary_key {
+ let yaml_data = match primary_key {
Some(pk) => yaqlite::select_by_column(
&dbconn,
&table_name,
@@ -94,6 +94,11 @@ fn main() {
).unwrap(),
};
+ let mut emitter = yaml_rust::YamlEmitter::new(
+ &mut std::io::stdout().lock(),
+ );
+ emitter.dump(&yaml_data).unwrap();
+
dbconn.close().unwrap();
},
};