OmniSciDB  04ee39c94c
Parser::ColumnConstraintDef Class Reference

#include <ParserNode.h>

+ Inheritance diagram for Parser::ColumnConstraintDef:
+ Collaboration diagram for Parser::ColumnConstraintDef:

Public Member Functions

 ColumnConstraintDef (bool n, bool u, bool p, Literal *d)
 
 ColumnConstraintDef (Expr *c)
 
 ColumnConstraintDef (std::string *t, std::string *c)
 
bool get_notnull () const
 
bool get_unique () const
 
bool get_is_primarykey () const
 
const Literalget_defaultval () const
 
const Exprget_check_condition () const
 
const std::string * get_foreign_table () const
 
const std::string * get_foreign_column () const
 
- Public Member Functions inherited from Parser::Node
virtual ~Node ()
 

Private Attributes

bool notnull
 
bool unique
 
bool is_primarykey
 
std::unique_ptr< Literaldefaultval
 
std::unique_ptr< Exprcheck_condition
 
std::unique_ptr< std::string > foreign_table
 
std::unique_ptr< std::string > foreign_column
 

Detailed Description

Definition at line 751 of file ParserNode.h.

Constructor & Destructor Documentation

◆ ColumnConstraintDef() [1/3]

Parser::ColumnConstraintDef::ColumnConstraintDef ( bool  n,
bool  u,
bool  p,
Literal d 
)
inline

Definition at line 753 of file ParserNode.h.

754  : notnull(n), unique(u), is_primarykey(p), defaultval(d) {}
void d(const SQLTypes expected_type, const std::string &str)
Definition: ImportTest.cpp:268
std::unique_ptr< Literal > defaultval
Definition: ParserNode.h:775

◆ ColumnConstraintDef() [2/3]

Parser::ColumnConstraintDef::ColumnConstraintDef ( Expr c)
inline

Definition at line 755 of file ParserNode.h.

756  : notnull(false), unique(false), is_primarykey(false), check_condition(c) {}
void c(const std::string &query_string, const ExecutorDeviceType device_type)
std::unique_ptr< Expr > check_condition
Definition: ParserNode.h:776

◆ ColumnConstraintDef() [3/3]

Parser::ColumnConstraintDef::ColumnConstraintDef ( std::string *  t,
std::string *  c 
)
inline

Definition at line 757 of file ParserNode.h.

758  : notnull(false)
759  , unique(false)
760  , is_primarykey(false)
761  , foreign_table(t)
762  , foreign_column(c) {}
std::unique_ptr< std::string > foreign_column
Definition: ParserNode.h:778
void c(const std::string &query_string, const ExecutorDeviceType device_type)
std::unique_ptr< std::string > foreign_table
Definition: ParserNode.h:777

Member Function Documentation

◆ get_check_condition()

const Expr* Parser::ColumnConstraintDef::get_check_condition ( ) const
inline

Definition at line 767 of file ParserNode.h.

767 { return check_condition.get(); }
std::unique_ptr< Expr > check_condition
Definition: ParserNode.h:776

◆ get_defaultval()

const Literal* Parser::ColumnConstraintDef::get_defaultval ( ) const
inline

Definition at line 766 of file ParserNode.h.

766 { return defaultval.get(); }
std::unique_ptr< Literal > defaultval
Definition: ParserNode.h:775

◆ get_foreign_column()

const std::string* Parser::ColumnConstraintDef::get_foreign_column ( ) const
inline

Definition at line 769 of file ParserNode.h.

769 { return foreign_column.get(); }
std::unique_ptr< std::string > foreign_column
Definition: ParserNode.h:778

◆ get_foreign_table()

const std::string* Parser::ColumnConstraintDef::get_foreign_table ( ) const
inline

Definition at line 768 of file ParserNode.h.

768 { return foreign_table.get(); }
std::unique_ptr< std::string > foreign_table
Definition: ParserNode.h:777

◆ get_is_primarykey()

bool Parser::ColumnConstraintDef::get_is_primarykey ( ) const
inline

Definition at line 765 of file ParserNode.h.

765 { return is_primarykey; }

◆ get_notnull()

bool Parser::ColumnConstraintDef::get_notnull ( ) const
inline

Definition at line 763 of file ParserNode.h.

Referenced by Parser::DDLStmt::setColumnDescriptor().

763 { return notnull; }
+ Here is the caller graph for this function:

◆ get_unique()

bool Parser::ColumnConstraintDef::get_unique ( ) const
inline

Definition at line 764 of file ParserNode.h.

764 { return unique; }

Member Data Documentation

◆ check_condition

std::unique_ptr<Expr> Parser::ColumnConstraintDef::check_condition
private

Definition at line 776 of file ParserNode.h.

◆ defaultval

std::unique_ptr<Literal> Parser::ColumnConstraintDef::defaultval
private

Definition at line 775 of file ParserNode.h.

◆ foreign_column

std::unique_ptr<std::string> Parser::ColumnConstraintDef::foreign_column
private

Definition at line 778 of file ParserNode.h.

◆ foreign_table

std::unique_ptr<std::string> Parser::ColumnConstraintDef::foreign_table
private

Definition at line 777 of file ParserNode.h.

◆ is_primarykey

bool Parser::ColumnConstraintDef::is_primarykey
private

Definition at line 774 of file ParserNode.h.

◆ notnull

bool Parser::ColumnConstraintDef::notnull
private

Definition at line 772 of file ParserNode.h.

◆ unique

bool Parser::ColumnConstraintDef::unique
private

Definition at line 773 of file ParserNode.h.


The documentation for this class was generated from the following file: