mutable
A Database System for Research and Fast Prototyping
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Data Fields
m::ast::UpdateStmt Struct Reference

A SQL update statement. More...

#include <AST.hpp>

Inheritance diagram for m::ast::UpdateStmt:
[legend]
Collaboration diagram for m::ast::UpdateStmt:
[legend]

Public Types

using set_type = std::pair< Token, std::unique_ptr< Expr > >
 

Public Member Functions

 UpdateStmt (Token table_name, std::vector< set_type > set, std::unique_ptr< Clause > where)
 
void accept (ASTCommandVisitor &v) override
 
void accept (ConstASTCommandVisitor &v) const override
 
void dot (std::ostream &out) const
 Writes a Graphivz dot representation of this Stmt to out.
 
void dump (std::ostream &out) const
 
void dump () const
 

Data Fields

Token table_name
 
std::vector< set_typeset
 
std::unique_ptr< Clausewhere
 

Detailed Description

A SQL update statement.

Definition at line 985 of file AST.hpp.

Member Typedef Documentation

◆ set_type

using m::ast::UpdateStmt::set_type = std::pair<Token, std::unique_ptr<Expr> >

Definition at line 987 of file AST.hpp.

Constructor & Destructor Documentation

◆ UpdateStmt()

m::ast::UpdateStmt::UpdateStmt ( Token  table_name,
std::vector< set_type set,
std::unique_ptr< Clause where 
)
inline

Definition at line 993 of file AST.hpp.

Member Function Documentation

◆ accept() [1/2]

void m::ast::UpdateStmt::accept ( ASTCommandVisitor v)
overridevirtual

Implements m::ast::Command.

◆ accept() [2/2]

void m::ast::UpdateStmt::accept ( ConstASTCommandVisitor v) const
overridevirtual

Implements m::ast::Command.

◆ dot()

void Stmt::dot ( std::ostream &  out) const
inherited

Writes a Graphivz dot representation of this Stmt to out.

Used to render ASTs with Graphivz.

Definition at line 217 of file AST.cpp.

References m::ast::Stmt::dot().

Referenced by m::ast::Stmt::dot().

◆ dump() [1/2]

void Command::dump ( ) const
inherited

Definition at line 251 of file AST.cpp.

References m::ast::Command::dump().

Referenced by m::ast::Command::dump().

◆ dump() [2/2]

void Command::dump ( std::ostream &  out) const
inherited

Definition at line 245 of file AST.cpp.

Field Documentation

◆ set

std::vector<set_type> m::ast::UpdateStmt::set

Definition at line 990 of file AST.hpp.

◆ table_name

Token m::ast::UpdateStmt::table_name

Definition at line 989 of file AST.hpp.

◆ where

std::unique_ptr<Clause> m::ast::UpdateStmt::where

Definition at line 991 of file AST.hpp.


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