better table print, order by/offset/limit improvements
This commit is contained in:
4
table.h
4
table.h
@@ -4,7 +4,6 @@
|
||||
#include "row.h"
|
||||
|
||||
#include <vector>
|
||||
#include <list>
|
||||
|
||||
namespace usql {
|
||||
|
||||
@@ -17,6 +16,7 @@ namespace usql {
|
||||
ColDefNode get_column_def(int col_index);
|
||||
|
||||
int columns_count() const { return m_col_defs.size(); };
|
||||
int rows_count() const { return m_rows.size(); };
|
||||
|
||||
Row create_empty_row(); // TODO this means unnecessary copying
|
||||
void add_row(const Row &row);
|
||||
@@ -33,7 +33,7 @@ namespace usql {
|
||||
|
||||
std::string m_name;
|
||||
std::vector<ColDefNode> m_col_defs;
|
||||
std::list<Row> m_rows;
|
||||
std::vector<Row> m_rows;
|
||||
};
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user