From 2d526ab8960928f7b4b60b9adc0f78bf6b877d40 Mon Sep 17 00:00:00 2001 From: Jorge Date: Thu, 8 Feb 2024 21:29:17 +0000 Subject: [PATCH] Improved ETL --- examples/export_private_jets.rs | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/examples/export_private_jets.rs b/examples/export_private_jets.rs index 1e06ebc..989ac32 100644 --- a/examples/export_private_jets.rs +++ b/examples/export_private_jets.rs @@ -69,20 +69,17 @@ async fn main() -> Result<(), Box> { It contains 3 columns: * `icao_number`: The transponder identifier * `tail_number`: The tail number of the aircraft -* `model`: The icao number of the aircraft type. It is only one of the ones - identified as private jet according to the methodology. +* `model`: The model of the aircraft. It is only one of the ones identified as private jet according to the methodology. Both `icao_number` and `tail_number` are unique keys (independently). "#; if client.as_ref().map(|c| c.can_put()).unwrap_or(false) { let client = client.unwrap(); - client - .put("database/private_jets/2023/11/06/data.csv", data_csv) - .await?; + client.put("private_jets/all.csv", data_csv).await?; client .put( - "database/private_jets/2023/11/06/description.md", + "private_jets/description.md", specification_md.as_bytes().to_vec(), ) .await?;