use crate::traits::{Column, Table};
#[allow(non_camel_case_types)]
pub struct keys;
impl Table for keys {
fn string(&self) -> String {
"keys".to_string()
}
}
#[allow(non_camel_case_types)]
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash, strum::Display)]
pub enum Col {
description,
from_table,
key_id,
target_table,
utype,
}
impl Column for Col {}
#[cfg(test)]
pub fn collect_known(map: &mut std::collections::HashMap<String, Vec<String>>) {
let mut col_strings = Vec::new();
col_strings.push(Col::description.to_string());
col_strings.push(Col::from_table.to_string());
col_strings.push(Col::key_id.to_string());
col_strings.push(Col::target_table.to_string());
col_strings.push(Col::utype.to_string());
map.insert(keys.string(), col_strings);
}