OmniSciDB  ab4938a6a3
Parser::DeleteStmt Class Reference

#include <ParserNode.h>

+ Inheritance diagram for Parser::DeleteStmt:
+ Collaboration diagram for Parser::DeleteStmt:

Public Member Functions

 DeleteStmt (std::string *t, Expr *w)
 
const std::string * get_table () const
 
const Exprget_where_clause () const
 
void analyze (const Catalog_Namespace::Catalog &catalog, Analyzer::Query &query) const override
 
- Public Member Functions inherited from Parser::Node
virtual ~Node ()
 

Private Attributes

std::unique_ptr< std::string > table
 
std::unique_ptr< Exprwhere_clause
 

Detailed Description

Definition at line 2057 of file ParserNode.h.

Constructor & Destructor Documentation

◆ DeleteStmt()

Parser::DeleteStmt::DeleteStmt ( std::string *  t,
Expr w 
)
inline

Definition at line 2059 of file ParserNode.h.

2059 : table(t), where_clause(w) {}
std::unique_ptr< Expr > where_clause
Definition: ParserNode.h:2067
std::unique_ptr< std::string > table
Definition: ParserNode.h:2066

Member Function Documentation

◆ analyze()

void Parser::DeleteStmt::analyze ( const Catalog_Namespace::Catalog catalog,
Analyzer::Query query 
) const
overridevirtual

Implements Parser::DMLStmt.

Definition at line 1868 of file ParserNode.cpp.

1869  {
1870  throw std::runtime_error("DELETE statement not supported yet.");
1871 }

◆ get_table()

const std::string* Parser::DeleteStmt::get_table ( ) const
inline

Definition at line 2060 of file ParserNode.h.

2060 { return table.get(); }
std::unique_ptr< std::string > table
Definition: ParserNode.h:2066

◆ get_where_clause()

const Expr* Parser::DeleteStmt::get_where_clause ( ) const
inline

Definition at line 2061 of file ParserNode.h.

2061 { return where_clause.get(); }
std::unique_ptr< Expr > where_clause
Definition: ParserNode.h:2067

Member Data Documentation

◆ table

std::unique_ptr<std::string> Parser::DeleteStmt::table
private

Definition at line 2066 of file ParserNode.h.

◆ where_clause

std::unique_ptr<Expr> Parser::DeleteStmt::where_clause
private

Definition at line 2067 of file ParserNode.h.


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