OmniSciDB
a5dc49c757
|
#include <DBEngine.h>
Public Member Functions | |
virtual | ~DBEngine () |
void | executeDDL (const std::string &query) |
std::shared_ptr< Cursor > | executeDML (const std::string &query) |
std::shared_ptr< Cursor > | executeRA (const std::string &query) |
void | importArrowTable (const std::string &name, std::shared_ptr< arrow::Table > &table, uint64_t fragment_size=0) |
std::vector< std::string > | getTables () |
std::vector< ColumnDetails > | getTableDetails (const std::string &table_name) |
bool | setDatabase (std::string &db_name) |
bool | login (std::string &db_name, std::string &user_name, const std::string &password) |
Static Public Member Functions | |
static std::shared_ptr< DBEngine > | create (const std::string &cmd_line) |
Protected Member Functions | |
DBEngine () | |
DBEngine (const DBEngine &)=delete | |
DBEngine & | operator= (const DBEngine &)=delete |
Definition at line 39 of file DBEngine.h.
|
inlinevirtual |
Definition at line 41 of file DBEngine.h.
|
inlineprotected |
Definition at line 55 of file DBEngine.h.
|
protecteddelete |
|
static |
Definition at line 450 of file DBEngine.cpp.
References test_exceptions::engine, and EmbeddedDatabase::anonymous_namespace{DBEngine.cpp}::engine_create_mutex.
Referenced by main().
void EmbeddedDatabase::DBEngine::executeDDL | ( | const std::string & | query | ) |
DBEngine external methods
Definition at line 470 of file DBEngine.cpp.
References test_exceptions::engine, EmbeddedDatabase::DBEngineImpl::executeDDL(), and EmbeddedDatabase::getImpl().
std::shared_ptr< Cursor > EmbeddedDatabase::DBEngine::executeDML | ( | const std::string & | query | ) |
Definition at line 475 of file DBEngine.cpp.
References test_exceptions::engine, EmbeddedDatabase::DBEngineImpl::executeDML(), and EmbeddedDatabase::getImpl().
std::shared_ptr< Cursor > EmbeddedDatabase::DBEngine::executeRA | ( | const std::string & | query | ) |
Definition at line 480 of file DBEngine.cpp.
References test_exceptions::engine, EmbeddedDatabase::DBEngineImpl::executeRA(), and EmbeddedDatabase::getImpl().
std::vector< ColumnDetails > EmbeddedDatabase::DBEngine::getTableDetails | ( | const std::string & | table_name | ) |
Definition at line 497 of file DBEngine.cpp.
References test_exceptions::engine, EmbeddedDatabase::getImpl(), and EmbeddedDatabase::DBEngineImpl::getTableDetails().
std::vector< std::string > EmbeddedDatabase::DBEngine::getTables | ( | ) |
Definition at line 492 of file DBEngine.cpp.
References test_exceptions::engine, EmbeddedDatabase::getImpl(), and EmbeddedDatabase::DBEngineImpl::getTables().
void EmbeddedDatabase::DBEngine::importArrowTable | ( | const std::string & | name, |
std::shared_ptr< arrow::Table > & | table, | ||
uint64_t | fragment_size = 0 |
||
) |
Definition at line 485 of file DBEngine.cpp.
References test_exceptions::engine, EmbeddedDatabase::getImpl(), and EmbeddedDatabase::DBEngineImpl::importArrowTable().
bool EmbeddedDatabase::DBEngine::login | ( | std::string & | db_name, |
std::string & | user_name, | ||
const std::string & | password | ||
) |
Definition at line 507 of file DBEngine.cpp.
References test_exceptions::engine, EmbeddedDatabase::getImpl(), and EmbeddedDatabase::DBEngineImpl::login().
bool EmbeddedDatabase::DBEngine::setDatabase | ( | std::string & | db_name | ) |
Definition at line 502 of file DBEngine.cpp.
References test_exceptions::engine, EmbeddedDatabase::getImpl(), and EmbeddedDatabase::DBEngineImpl::setDatabase().