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
28
pglablib/sqlast/ColumnDefinition.h
Normal file
28
pglablib/sqlast/ColumnDefinition.h
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
#pragma once
|
||||
|
||||
#include "Node.h"
|
||||
#include <QString>
|
||||
#include <memory>
|
||||
|
||||
namespace sqlast {
|
||||
|
||||
class TypeSpecification;
|
||||
|
||||
/// Defines the details of a table column
|
||||
///
|
||||
/// Constraints are not included here, as we handle constraints can apply to multiple columns
|
||||
/// and we want to put them all in one place. The UI and SQL generator is allowed to display
|
||||
/// column specific constraints with the column they belong to.
|
||||
class ColumnDefinition : public Node
|
||||
{
|
||||
public:
|
||||
ColumnDefinition();
|
||||
|
||||
private:
|
||||
QString name;
|
||||
std::unique_ptr<TypeSpecification> typeName;
|
||||
bool notNull = true;
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue