pub fn list(config: Config) -> Option<Vec<String>> {
    let database_type: DATABASES = get_database_type(config.database.database_type.clone());
    return match database_type {
        DATABASES::MongoDB => mongodb::list_tables(config),
        DATABASES::MySQL => mysql::list_tables(config),
    };
}
/// List all tables / collection for given database
List all tables / collection for given database
List all tables / collection for given database
pub fn list(config: Config) -> Option<Vec<String>> {
    let database_type: DATABASES = get_database_type(config.database.database_type.clone());
    return match database_type {
        DATABASES::MongoDB => mongodb::list_tables(config),
        DATABASES::MySQL => mysql::list_tables(config),
    };
}
pub fn list ( config : Config ) -> Option < Vec < String > > { let database_type : DATABASES = get_database_type ( config . database . database_type . clone ( ) ) ; return match database_type { DATABASES :: MongoDB => mongodb :: list_tables ( config ) , DATABASES :: MySQL => mysql :: list_tables ( config ) , } ; }
List all tables / collection for given database
List all tables / collection for given database
config
Config
config
Config