OmniSciDB  c07336695a
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 1909 of file ParserNode.h.

Constructor & Destructor Documentation

◆ DeleteStmt()

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

Definition at line 1911 of file ParserNode.h.

1911 : table(t), where_clause(w) {}
std::unique_ptr< Expr > where_clause
Definition: ParserNode.h:1919
std::unique_ptr< std::string > table
Definition: ParserNode.h:1918

Member Function Documentation

◆ analyze()

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

Implements Parser::DMLStmt.

Definition at line 1873 of file ParserNode.cpp.

1874  {
1875  throw std::runtime_error("DELETE statement not supported yet.");
1876 }

◆ get_table()

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

Definition at line 1912 of file ParserNode.h.

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

◆ get_where_clause()

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

Definition at line 1913 of file ParserNode.h.

References anonymous_namespace{UpdateMetadataTest.cpp}::query.

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

Member Data Documentation

◆ table

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

Definition at line 1918 of file ParserNode.h.

◆ where_clause

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

Definition at line 1919 of file ParserNode.h.


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