OmniSciDB
a5dc49c757
|
Public Member Functions | |
DBEngineImpl () | |
~DBEngineImpl () | |
bool | init (const std::string &cmd_line) |
std::shared_ptr< CursorImpl > | sql_execute_dbe (const TSessionId &session_id, const std::string &query_str, const bool column_format, const int32_t first_n, const int32_t at_most_n) |
void | executeDDL (const std::string &query) |
void | importArrowTable (const std::string &name, std::shared_ptr< arrow::Table > &table, uint64_t fragment_size) |
std::shared_ptr< CursorImpl > | executeDML (const std::string &query) |
std::shared_ptr< CursorImpl > | executeRA (const std::string &query) |
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) |
Public Member Functions inherited from EmbeddedDatabase::DBEngine | |
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) |
Protected Member Functions | |
void | reset () |
bool | catalogExists (const std::string &base_path) |
void | cleanCatalog (const std::string &base_path) |
std::string | createCatalog (const std::string &base_path) |
Protected Member Functions inherited from EmbeddedDatabase::DBEngine | |
DBEngine () | |
DBEngine (const DBEngine &)=delete | |
DBEngine & | operator= (const DBEngine &)=delete |
Private Attributes | |
std::string | base_path_ |
std::string | session_id_ |
std::shared_ptr< DBHandler > | db_handler_ |
bool | is_temp_db_ |
std::string | udf_filename_ |
std::vector< std::string > | system_folders_ |
Additional Inherited Members | |
Static Public Member Functions inherited from EmbeddedDatabase::DBEngine | |
static std::shared_ptr< DBEngine > | create (const std::string &cmd_line) |
DBEngine internal implementation
Definition at line 100 of file DBEngine.cpp.
|
inline |
Definition at line 102 of file DBEngine.cpp.
|
inline |
Definition at line 104 of file DBEngine.cpp.
References reset().
|
inlineprotected |
Definition at line 368 of file DBEngine.cpp.
References system_folders_.
Referenced by init().
|
inlineprotected |
Definition at line 381 of file DBEngine.cpp.
References system_folders_.
|
inlineprotected |
Definition at line 392 of file DBEngine.cpp.
References report::error_code(), is_temp_db_, and system_folders_.
Referenced by init().
|
inline |
Definition at line 223 of file DBEngine.cpp.
References run_benchmark_import::res, session_id_, and sql_execute_dbe().
Referenced by EmbeddedDatabase::DBEngine::executeDDL().
|
inline |
Definition at line 261 of file DBEngine.cpp.
References session_id_, and sql_execute_dbe().
Referenced by EmbeddedDatabase::DBEngine::executeDML().
|
inline |
Definition at line 265 of file DBEngine.cpp.
References session_id_, and sql_execute_dbe().
Referenced by EmbeddedDatabase::DBEngine::executeRA().
|
inline |
Definition at line 287 of file DBEngine.cpp.
References EmbeddedDatabase::ColumnDetails::col_name, EmbeddedDatabase::ColumnDetails::col_type, EmbeddedDatabase::ColumnDetails::comp_param, db_handler_, EmbeddedDatabase::DICT, EmbeddedDatabase::ColumnDetails::encoding, EmbeddedDatabase::ColumnDetails::is_array, IS_GEO, kARRAY, EmbeddedDatabase::ColumnDetails::nullable, EmbeddedDatabase::ColumnDetails::precision, run_benchmark_import::result, EmbeddedDatabase::ColumnDetails::scale, session_id_, EmbeddedDatabase::sqlToColumnEncoding(), and EmbeddedDatabase::sqlToColumnType().
Referenced by EmbeddedDatabase::DBEngine::getTableDetails().
|
inline |
Definition at line 269 of file DBEngine.cpp.
References db_handler_, session_id_, and run_benchmark_import::tables.
Referenced by EmbeddedDatabase::DBEngine::getTables().
|
inline |
Definition at line 227 of file DBEngine.cpp.
References Data_Namespace::CPU_LEVEL, Catalog_Namespace::SysCatalog::createDBObject(), db_handler_, DEFAULT_FRAGMENT_ROWS, DEFAULT_MAX_CHUNK_SIZE, DEFAULT_MAX_ROWS, DEFAULT_PAGE_SIZE, TableDescriptor::fragmenter, TableDescriptor::fragPageSize, TableDescriptor::fragType, Fragmenter_Namespace::INSERT_ORDER, Catalog_Namespace::SysCatalog::instance(), TableDescriptor::isView, TableDescriptor::keyMetainfo, TableDescriptor::maxChunkSize, TableDescriptor::maxFragRows, TableDescriptor::maxRows, setup::name, TableDescriptor::persistenceLevel, releaseArrowTable(), session_id_, setArrowTable(), TableDescriptor::storageType, TableDBObjectType, TableDescriptor::tableName, and TableDescriptor::userId.
Referenced by EmbeddedDatabase::DBEngine::importArrowTable().
|
inline |
Definition at line 106 of file DBEngine.cpp.
References CommandLineOptions::allow_loop_joins, CommandLineOptions::allow_multifrag, CommandLineOptions::authMetadata, CommandLineOptions::base_path, base_path_, SystemParameters::calcite_keepalive, catalogExists(), createCatalog(), db_handler_, CommandLineOptions::db_leaves, CommandLineOptions::disk_cache_config, CommandLineOptions::enable_auto_clear_render_mem, CommandLineOptions::enable_legacy_syntax, CommandLineOptions::enable_rendering, logger::FATAL, g_enable_thrift_logs, g_serialize_temp_tables, CommandLineOptions::idle_session_duration, CommandLineOptions::init_logging(), CommandLineOptions::intel_jit_profile, CommandLineOptions::jit_debug, shared::kDefaultDbName, shared::kDefaultRootPasswd, shared::kRootUsername, LOG, CommandLineOptions::max_concurrent_render_sessions, CommandLineOptions::max_session_duration, CommandLineOptions::num_reader_threads, SystemParameters::omnisci_server_port, CommandLineOptions::parse_command_line(), CommandLineOptions::read_only, CommandLineOptions::render_compositor_use_last_gpu, CommandLineOptions::render_mem_bytes, CommandLineOptions::render_oom_retry_threshold, CommandLineOptions::renderer_prefer_igpu, CommandLineOptions::renderer_vulkan_timeout_ms, CommandLineOptions::reserved_gpu_mem, session_id_, CommandLineOptions::string_leaves, CommandLineOptions::system_parameters, CommandLineOptions::udf_compiler_options, CommandLineOptions::udf_compiler_path, and CommandLineOptions::udf_file_name.
|
inline |
Definition at line 346 of file DBEngine.cpp.
References db_handler_, and session_id_.
Referenced by EmbeddedDatabase::DBEngine::login().
|
inlineprotected |
Definition at line 353 of file DBEngine.cpp.
References base_path_, db_handler_, Catalog_Namespace::SysCatalog::destroy(), is_temp_db_, session_id_, and logger::shutdown().
Referenced by ~DBEngineImpl().
|
inline |
Definition at line 339 of file DBEngine.cpp.
References db_handler_, Catalog_Namespace::SysCatalog::instance(), and session_id_.
Referenced by EmbeddedDatabase::DBEngine::setDatabase().
|
inline |
Definition at line 200 of file DBEngine.cpp.
References CPU, db_handler_, and run_benchmark_import::result.
Referenced by executeDDL(), executeDML(), and executeRA().
|
private |
Definition at line 435 of file DBEngine.cpp.
|
private |
Definition at line 437 of file DBEngine.cpp.
Referenced by getTableDetails(), getTables(), importArrowTable(), init(), login(), reset(), setDatabase(), and sql_execute_dbe().
|
private |
Definition at line 438 of file DBEngine.cpp.
Referenced by createCatalog(), and reset().
|
private |
Definition at line 436 of file DBEngine.cpp.
Referenced by executeDDL(), executeDML(), executeRA(), getTableDetails(), getTables(), importArrowTable(), init(), login(), reset(), and setDatabase().
|
private |
Definition at line 441 of file DBEngine.cpp.
Referenced by catalogExists(), cleanCatalog(), and createCatalog().
|
private |
Definition at line 439 of file DBEngine.cpp.