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

A SQL insert statement. More...

#include <AST.hpp>

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

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_ttuples
 

Detailed Description

A SQL insert statement.

Definition at line 966 of file AST.hpp.

Member Typedef Documentation

◆ element_type

using m::ast::InsertStmt::element_type = std::pair<kind_t, std::unique_ptr<Expr> >

Definition at line 969 of file AST.hpp.

◆ tuple_t

Definition at line 970 of file AST.hpp.

Member Enumeration Documentation

◆ kind_t

Enumerator
I_Default 
I_Null 
I_Expr 

Definition at line 968 of file AST.hpp.

Constructor & Destructor Documentation

◆ InsertStmt()

m::ast::InsertStmt::InsertStmt ( Token  table_name,
std::vector< tuple_t tuples 
)
inline

Definition at line 975 of file AST.hpp.

Member Function Documentation

◆ accept() [1/2]

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

Implements m::ast::Command.

◆ accept() [2/2]

void m::ast::InsertStmt::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

◆ table_name

Token m::ast::InsertStmt::table_name

Definition at line 972 of file AST.hpp.

◆ tuples

std::vector<tuple_t> m::ast::InsertStmt::tuples

Definition at line 973 of file AST.hpp.


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