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

An import statement for a delimiter separated values (DSV) file. More...

#include <AST.hpp>

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

Public Member Functions

 DSVImportStmt (Token table_name)
 
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 path = Token::CreateArtificial()
 
Token delimiter = Token::CreateArtificial()
 
Token escape = Token::CreateArtificial()
 
Token quote = Token::CreateArtificial()
 
Token rows = Token::CreateArtificial()
 
bool has_header = false
 
bool skip_header = false
 
Token table_name
 

Detailed Description

An import statement for a delimiter separated values (DSV) file.

Definition at line 1026 of file AST.hpp.

Constructor & Destructor Documentation

◆ DSVImportStmt()

m::ast::DSVImportStmt::DSVImportStmt ( Token  table_name)
inline

Definition at line 1036 of file AST.hpp.

Member Function Documentation

◆ accept() [1/2]

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

Implements m::ast::Command.

◆ accept() [2/2]

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

◆ delimiter

Token m::ast::DSVImportStmt::delimiter = Token::CreateArtificial()

Definition at line 1029 of file AST.hpp.

Referenced by m::ast::Parser::parse_ImportStmt().

◆ escape

Token m::ast::DSVImportStmt::escape = Token::CreateArtificial()

Definition at line 1030 of file AST.hpp.

Referenced by m::ast::Parser::parse_ImportStmt().

◆ has_header

bool m::ast::DSVImportStmt::has_header = false

Definition at line 1033 of file AST.hpp.

Referenced by m::ast::Parser::parse_ImportStmt().

◆ path

Token m::ast::DSVImportStmt::path = Token::CreateArtificial()

Definition at line 1028 of file AST.hpp.

Referenced by m::ast::Parser::parse_ImportStmt().

◆ quote

Token m::ast::DSVImportStmt::quote = Token::CreateArtificial()

Definition at line 1031 of file AST.hpp.

Referenced by m::ast::Parser::parse_ImportStmt().

◆ rows

Token m::ast::DSVImportStmt::rows = Token::CreateArtificial()

Definition at line 1032 of file AST.hpp.

Referenced by m::ast::Parser::parse_ImportStmt().

◆ skip_header

bool m::ast::DSVImportStmt::skip_header = false

Definition at line 1034 of file AST.hpp.

Referenced by m::ast::Parser::parse_ImportStmt().

◆ table_name

Token m::ast::ImportStmt::table_name
inherited

Definition at line 1021 of file AST.hpp.


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