Skip to content

Commit

Permalink
better output
Browse files Browse the repository at this point in the history
  • Loading branch information
Henry Fontanier authored and Henry Fontanier committed Nov 21, 2023
1 parent 59a424e commit 177c636
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions core/src/blocks/database.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use anyhow::{anyhow, Result};
use async_trait::async_trait;

use pest::iterators::Pair;
use serde_json::Value;
use serde_json::{json, Value};
use tokio::sync::mpsc::UnboundedSender;

use super::helpers::get_data_source_project;
Expand Down Expand Up @@ -112,7 +112,10 @@ impl Block for Database {
};

Ok(BlockResult {
value: serde_json::to_value((rows, schema))?,
value: json!({
"rows": rows,
"schema": schema,
}),
meta: None,
})
}
Expand Down

0 comments on commit 177c636

Please sign in to comment.