C++ Get Arrow::Table from Liberator

 

std::shared_ptr<arrow::Table> get_table(Result ptr)

The “get_table” function takes a query Result as input. In this case, Result is a std::variant that represents a std::function pointer to a custom C++ generator. It returns a shared pointer to an Arrow Table.

Example Get Arrow::Table

auto table = liberator.get_table(liberator.query({
                {"symbols",std::vector<std::string>{"AAPL","GOOGL"}},
{"name","daily_bars"s},}));

(void)arrow::PrettyPrint(*table, arrow::PrettyPrintOptions(0, 1), &std::cout);