26 #include <boost/lexical_cast.hpp>
36 if (type ==
typeid(
bool)) {
38 }
if (type ==
typeid(int32_t)) {
40 }
if (type ==
typeid(int64_t)) {
42 }
if (type ==
typeid(
float)) {
44 }
if (type ==
typeid(
double)) {
70 <<
" is not supported";
76 auto column_info = table.getColumnInfo();
77 for (
size_t i=0; i<column_info->size(); ++i) {
78 sizes.push_back(column_info->getDescription(i).name.size());
80 for (
auto row : table) {
81 for (
size_t i=0; i<sizes.size(); ++i) {
82 sizes[i] =
std::max(sizes[i], boost::lexical_cast<std::string>(row[i]).size());
85 for (
auto&
s : sizes) {