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

#include <AST.hpp>

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

Public Member Functions

 CreateIndexStmt (Token has_unique, bool has_if_not_exists, Token index_name, Token table_name, Token method, std::vector< std::unique_ptr< Expr > > key_fields)
 
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 has_unique
 
bool has_if_not_exists
 
Token index_name
 
Token table_name
 
Token method
 
std::vector< std::unique_ptr< Expr > > key_fields
 

Detailed Description

Definition at line 897 of file AST.hpp.

Constructor & Destructor Documentation

◆ CreateIndexStmt()

m::ast::CreateIndexStmt::CreateIndexStmt ( Token  has_unique,
bool  has_if_not_exists,
Token  index_name,
Token  table_name,
Token  method,
std::vector< std::unique_ptr< Expr > >  key_fields 
)
inline

Definition at line 906 of file AST.hpp.

Member Function Documentation

◆ accept() [1/2]

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

Implements m::ast::Command.

◆ accept() [2/2]

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

◆ has_if_not_exists

bool m::ast::CreateIndexStmt::has_if_not_exists

Definition at line 900 of file AST.hpp.

◆ has_unique

Token m::ast::CreateIndexStmt::has_unique

Definition at line 899 of file AST.hpp.

◆ index_name

Token m::ast::CreateIndexStmt::index_name

Definition at line 901 of file AST.hpp.

◆ key_fields

std::vector<std::unique_ptr<Expr> > m::ast::CreateIndexStmt::key_fields

Definition at line 904 of file AST.hpp.

◆ method

Token m::ast::CreateIndexStmt::method

Definition at line 903 of file AST.hpp.

◆ table_name

Token m::ast::CreateIndexStmt::table_name

Definition at line 902 of file AST.hpp.


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