Skip to content

Commit

Permalink
Improved ETL
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgecardleitao committed Feb 8, 2024
1 parent 42e17e6 commit 2d526ab
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions examples/export_private_jets.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,20 +69,17 @@ async fn main() -> Result<(), Box<dyn Error>> {
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?;
Expand Down

0 comments on commit 2d526ab

Please sign in to comment.