OmniSciDB
a5dc49c757
|
#include <ParserNode.h>
Public Member Functions | |
TruncateTableStmt (std::string *tab) | |
TruncateTableStmt (const rapidjson::Value &payload) | |
const std::string * | get_table () const |
void | execute (const Catalog_Namespace::SessionInfo &session, bool read_only_mode) override |
Public Member Functions inherited from Parser::DDLStmt | |
void | setColumnDescriptor (ColumnDescriptor &cd, const ColumnDef *coldef) |
Public Member Functions inherited from Parser::Node | |
virtual | ~Node () |
Private Attributes | |
std::unique_ptr< std::string > | table_ |
Definition at line 1227 of file ParserNode.h.
|
inline |
Definition at line 1229 of file ParserNode.h.
Parser::TruncateTableStmt::TruncateTableStmt | ( | const rapidjson::Value & | payload | ) |
Definition at line 4949 of file ParserNode.cpp.
References CHECK, json_str(), and table_.
|
overridevirtual |
Implements Parser::DDLStmt.
Definition at line 4954 of file ParserNode.cpp.
References Executor::clearExternalCaches(), Catalog_Namespace::SessionInfo::get_currentUser(), Catalog_Namespace::SessionInfo::getCatalog(), legacylockmgr::getExecuteReadLock(), lockmgr::TableLockMgrImpl< TableDataLockMgr >::getReadLockForTable(), lockmgr::TableLockMgrImpl< TableDataLockMgr >::getWriteLockForTable(), lockmgr::instance(), TableDescriptor::isView, DBObject::loadKey(), DBObject::setPrivileges(), table_, TableDBObjectType, AccessPrivileges::TRUNCATE_TABLE, Catalog_Namespace::UserMetadata::userLoggable(), and foreign_storage::validate_non_foreign_table_write().
Referenced by heavydb.cursor.Cursor::executemany().
|
inline |
|
private |
Definition at line 1236 of file ParserNode.h.
Referenced by execute(), get_table(), and TruncateTableStmt().