starting on duckdb database work
This commit is contained in:
+8
-8
@@ -16,7 +16,7 @@
|
||||
use crate::types::*;
|
||||
use reqwest::Client;
|
||||
use std::collections::HashMap;
|
||||
use tracing::{debug, info, warn};
|
||||
use tracing::{debug, info};
|
||||
|
||||
/// Language code for PX-Web queries.
|
||||
const PX_WEB_LANGUAGE: &str = "fo";
|
||||
@@ -479,24 +479,24 @@ mod tests {
|
||||
fn mock_lookup_maps() -> LookupMap {
|
||||
let mut maps = LookupMap::new();
|
||||
maps.insert(
|
||||
"0".to_string(), // Tid / Month
|
||||
DIM_MONTH.to_string(),
|
||||
HashMap::from([
|
||||
("2015M01".to_string(), "Januar 2015".to_string()),
|
||||
("2015M02".to_string(), "Februar 2015".to_string()),
|
||||
]),
|
||||
);
|
||||
maps.insert(
|
||||
"1".to_string(), // Art / Species
|
||||
DIM_SPECIES.to_string(),
|
||||
HashMap::from([
|
||||
("Sild".to_string(), "Sild".to_string()),
|
||||
("Þorskur".to_string(), "Þorskur".to_string()),
|
||||
("148XXXXXXX00000".to_string(), "Sild".to_string()),
|
||||
("183XXXXXXX00000".to_string(), "Þorskur".to_string()),
|
||||
]),
|
||||
);
|
||||
maps.insert(
|
||||
"7".to_string(), // Måleenhed / Measure
|
||||
DIM_MEASURE.to_string(),
|
||||
HashMap::from([
|
||||
("MASS".to_string(), "Kilo".to_string()),
|
||||
("VALUE".to_string(), "Krónur".to_string()),
|
||||
("MASS".to_string(), "Nøgd".to_string()),
|
||||
("VALUE".to_string(), "Virði".to_string()),
|
||||
]),
|
||||
);
|
||||
maps
|
||||
|
||||
Reference in New Issue
Block a user