This file contains hidden or 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
use anyhow::Error; | |
use serde_json::{json, Value}; | |
use crate::utils::merge_json; | |
pub async fn report_to_sql(report: Value) -> Result<String, Error> { | |
let table = report["table"].as_object(); | |
if table.is_none() { | |
return Err(Error::msg("Table not found.")); |
OlderNewer