OmniSciDB
c1a53651b2
|
#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 |
![]() | |
void | setColumnDescriptor (ColumnDescriptor &cd, const ColumnDef *coldef) |
![]() | |
virtual | ~Node () |
Private Attributes | |
std::unique_ptr< std::string > | table_ |
Definition at line 1240 of file ParserNode.h.
|
inline |
Definition at line 1242 of file ParserNode.h.
Parser::TruncateTableStmt::TruncateTableStmt | ( | const rapidjson::Value & | payload | ) |
Definition at line 4599 of file ParserNode.cpp.
References CHECK, json_str(), and table_.
|
overridevirtual |
Implements Parser::DDLStmt.
Definition at line 4604 of file ParserNode.cpp.
References Executor::clearExternalCaches(), legacylockmgr::ExecutorOuterLock, Catalog_Namespace::SessionInfo::get_currentUser(), Catalog_Namespace::SessionInfo::getCatalog(), legacylockmgr::LockMgr< MutexType, KeyType >::getMutex(), lockmgr::TableLockMgrImpl< TableDataLockMgr >::getReadLockForTable(), lockmgr::TableLockMgrImpl< TableDataLockMgr >::getWriteLockForTable(), 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 1249 of file ParserNode.h.
Referenced by execute(), get_table(), and TruncateTableStmt().