Implements the VPXToolScanner class for loading and managing table metadata from vpxtool_index.json. More...
#include "vpxtool_scanner.h"
#include "log/logging.h"
#include "utils/string_utils.h"
#include <filesystem>
#include <fstream>
#include <nlohmann/json.hpp>
#include <thread>
#include <future>
#include <atomic>
#include <cstdio>
#include <cstdlib>
#include <unistd.h>
Typedefs | |
using | json = nlohmann::json |
Functions | |
bool | CommandUtils::runCommand (const std::string &command, const std::string &working_directory, LoadingProgress *progress, std::string &output_log) |
bool | CommandUtils::isExecutableFile (const std::string &path) |
Implements the VPXToolScanner class for loading and managing table metadata from vpxtool_index.json.
This file provides the implementation of the VPXToolScanner class, which attempts to load table metadata from a pre-generated vpxtool_index.json. If the index is not found or is invalid, it attempts to run the 'vpxtool' command-line utility to generate a new index, either from a user-specified path or by looking for 'vpxtool' in the system's PATH. After loading/generating the index, it processes table metadata.