some renamings

This commit is contained in:
2021-07-22 18:32:00 +02:00
parent dec99b823a
commit fc5fd32976
10 changed files with 171 additions and 170 deletions

19
usql.h
View File

@@ -4,13 +4,15 @@
#include "table.h"
#include <string>
#include <list>
namespace usql {
class USql {
public:
USql();
USql() = default;
std::unique_ptr<Table> execute(const std::string &command);
@@ -30,10 +32,10 @@ private:
private:
bool evalWhere(Node *where, Table *table, Row &row) const;
std::unique_ptr<ValueNode> evalValueNode(Table *table, Row &row, Node *node) const;
std::unique_ptr<ValueNode> evalDatabaseValueNode(Table *table, Row &row, Node *node) const;
std::unique_ptr<ValueNode> evalLiteralValueNode(Table *table, Row &row, Node *node) const;
std::unique_ptr<ValueNode> evalFunctionValueNode(Table *table, Row &row, Node *node) const;
static std::unique_ptr<ValueNode> evalValueNode(Table *table, Row &row, Node *node);
static std::unique_ptr<ValueNode> evalDatabaseValueNode(Table *table, Row &row, Node *node);
static std::unique_ptr<ValueNode> evalLiteralValueNode(Table *table, Row &row, Node *node);
static std::unique_ptr<ValueNode> evalFunctionValueNode(Table *table, Row &row, Node *node);
bool evalRelationalOperator(const RelationalOperatorNode &filter, Table *table, Row &row) const;
@@ -41,13 +43,14 @@ private:
std::unique_ptr<ValueNode> evalArithmeticOperator(ColumnType outType, ArithmeticalOperatorNode &node, Table *table, Row &row) const;
std::unique_ptr<Table> create_stmt_result_table(long code, std::string text);
Table *find_table(const std::string name);
static std::unique_ptr<Table> create_stmt_result_table(long code, const std::string& text);
static std::tuple<int, ColDefNode> getColumnDefinition(Table *table, SelectColNode *select_col_node, int col_order) ;
Table *find_table(const std::string &name);
private:
Parser m_parser;
std::vector<Table> m_tables;
std::list<Table> m_tables;
};
} // namespace