pub mod earliest_revision;
pub mod filters;
pub mod frontier;
pub mod frontier_set;
pub mod node_dataset;
pub mod x_in_y_dataset;
pub const VERSION: &str = env!("CARGO_PKG_VERSION");
pub fn parquet_metadata<G: swh_graph::graph::SwhGraph>(
graph: &G,
) -> Vec<parquet::file::metadata::KeyValue> {
use parquet::format::KeyValue;
vec![
KeyValue {
key: "swh_graph_version".into(),
value: Some(swh_graph::VERSION.into()),
},
KeyValue {
key: "swh_graph_provenance_version".into(),
value: Some(crate::VERSION.into()),
},
KeyValue {
key: "swh_graph_path".into(),
value: Some(graph.path().display().to_string()),
},
KeyValue {
key: "creation_date".into(),
value: Some(chrono::Local::now().to_rfc3339()),
},
]
}