Start of new ANTLR4 based parser.
Very simple tests pass.
This commit is contained in:
parent
03b4194193
commit
fbbe832a05
44 changed files with 860 additions and 8 deletions
18
pglablib/sqlast/SelectList.cpp
Normal file
18
pglablib/sqlast/SelectList.cpp
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
#include "SelectList.h"
|
||||
#include "SelectItem.h"
|
||||
|
||||
using namespace sqlast;
|
||||
|
||||
SelectList::SelectList()
|
||||
{
|
||||
}
|
||||
|
||||
void SelectList::Add(std::unique_ptr<SelectItem> select_item)
|
||||
{
|
||||
list.push_back(std::move(select_item));
|
||||
}
|
||||
|
||||
int SelectList::Count() const
|
||||
{
|
||||
return static_cast<int>(list.size());
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue