![]() |
mutable
A Database System for Research and Fast Prototyping
|
A SQL insert statement. More...
#include <AST.hpp>
Public Types | |
enum | kind_t { I_Default , I_Null , I_Expr } |
using | element_type = std::pair< kind_t, std::unique_ptr< Expr > > |
using | tuple_t = std::vector< element_type > |
Public Member Functions | |
InsertStmt (Token table_name, std::vector< tuple_t > tuples) | |
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< tuple_t > | tuples |
using m::ast::InsertStmt::element_type = std::pair<kind_t, std::unique_ptr<Expr> > |
using m::ast::InsertStmt::tuple_t = std::vector<element_type> |
|
overridevirtual |
Implements m::ast::Command.
|
overridevirtual |
Implements m::ast::Command.
|
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().
|
inherited |
Definition at line 251 of file AST.cpp.
References m::ast::Command::dump().
Referenced by m::ast::Command::dump().