OmniSciDB  8fa3bf436f
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
EmbeddedDatabase::DBEngineImpl Class Reference
+ Inheritance diagram for EmbeddedDatabase::DBEngineImpl:
+ Collaboration diagram for EmbeddedDatabase::DBEngineImpl:

Public Member Functions

 DBEngineImpl ()
 
 ~DBEngineImpl ()
 
bool init (const std::string &cmd_line)
 
std::shared_ptr< CursorImplsql_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< CursorImplexecuteDML (const std::string &query)
 
std::shared_ptr< CursorImplexecuteRA (const std::string &query)
 
std::vector< std::string > getTables ()
 
std::vector< ColumnDetailsgetTableDetails (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< CursorexecuteDML (const std::string &query)
 
std::shared_ptr< CursorexecuteRA (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< ColumnDetailsgetTableDetails (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
 
DBEngineoperator= (const DBEngine &)=delete
 

Private Attributes

std::string base_path_
 
std::string session_id_
 
mapd::shared_ptr< DBHandlerdb_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< DBEnginecreate (const std::string &cmd_line)
 

Detailed Description

DBEngine internal implementation

Definition at line 98 of file DBEngine.cpp.

Constructor & Destructor Documentation

EmbeddedDatabase::DBEngineImpl::DBEngineImpl ( )
inline

Definition at line 100 of file DBEngine.cpp.

100 : is_temp_db_(false) {}
EmbeddedDatabase::DBEngineImpl::~DBEngineImpl ( )
inline

Definition at line 102 of file DBEngine.cpp.

References reset().

102 { reset(); }

+ Here is the call graph for this function:

Member Function Documentation

bool EmbeddedDatabase::DBEngineImpl::catalogExists ( const std::string &  base_path)
inlineprotected

Definition at line 360 of file DBEngine.cpp.

References system_folders_.

Referenced by init().

360  {
361  if (!boost::filesystem::exists(base_path)) {
362  return false;
363  }
364  for (auto& subdir : system_folders_) {
365  std::string path = base_path + "/" + subdir;
366  if (!boost::filesystem::exists(path)) {
367  return false;
368  }
369  }
370  return true;
371  }
std::vector< std::string > system_folders_
Definition: DBEngine.cpp:433

+ Here is the caller graph for this function:

void EmbeddedDatabase::DBEngineImpl::cleanCatalog ( const std::string &  base_path)
inlineprotected

Definition at line 373 of file DBEngine.cpp.

References system_folders_.

373  {
374  if (boost::filesystem::exists(base_path)) {
375  for (auto& subdir : system_folders_) {
376  std::string path = base_path + "/" + subdir;
377  if (boost::filesystem::exists(path)) {
378  boost::filesystem::remove_all(path);
379  }
380  }
381  }
382  }
std::vector< std::string > system_folders_
Definition: DBEngine.cpp:433
std::string EmbeddedDatabase::DBEngineImpl::createCatalog ( const std::string &  base_path)
inlineprotected

Definition at line 384 of file DBEngine.cpp.

References is_temp_db_, and system_folders_.

Referenced by init().

384  {
385  std::string root_dir = base_path;
386  if (base_path.empty()) {
387  boost::system::error_code error;
388  auto tmp_path = boost::filesystem::temp_directory_path(error);
389  if (boost::system::errc::success != error.value()) {
390  std::cerr << error.message() << std::endl;
391  return "";
392  }
393  tmp_path /= "omnidbe_%%%%-%%%%-%%%%";
394  auto uniq_path = boost::filesystem::unique_path(tmp_path, error);
395  if (boost::system::errc::success != error.value()) {
396  std::cerr << error.message() << std::endl;
397  return "";
398  }
399  root_dir = uniq_path.string();
400  is_temp_db_ = true;
401  }
402  if (!boost::filesystem::exists(root_dir)) {
403  if (!boost::filesystem::create_directory(root_dir)) {
404  std::cerr << "Cannot create database directory: " << root_dir << std::endl;
405  return "";
406  }
407  }
408  size_t absent_count = 0;
409  for (auto& sub_dir : system_folders_) {
410  std::string path = root_dir + "/" + sub_dir;
411  if (!boost::filesystem::exists(path)) {
412  if (!boost::filesystem::create_directory(path)) {
413  std::cerr << "Cannot create database subdirectory: " << path << std::endl;
414  return "";
415  }
416  ++absent_count;
417  }
418  }
419  if ((absent_count > 0) && (absent_count < system_folders_.size())) {
420  std::cerr << "Database directory structure is broken: " << root_dir << std::endl;
421  return "";
422  }
423  return root_dir;
424  }
std::vector< std::string > system_folders_
Definition: DBEngine.cpp:433

+ Here is the caller graph for this function:

void EmbeddedDatabase::DBEngineImpl::executeDDL ( const std::string &  query)
inline

Definition at line 215 of file DBEngine.cpp.

References run_benchmark_import::res, session_id_, and sql_execute_dbe().

Referenced by EmbeddedDatabase::DBEngine::executeDDL().

215  {
216  auto res = sql_execute_dbe(session_id_, query, false, -1, -1);
217  }
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)
Definition: DBEngine.cpp:192

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

std::shared_ptr<CursorImpl> EmbeddedDatabase::DBEngineImpl::executeDML ( const std::string &  query)
inline

Definition at line 253 of file DBEngine.cpp.

References session_id_, and sql_execute_dbe().

Referenced by EmbeddedDatabase::DBEngine::executeDML().

253  {
254  return sql_execute_dbe(session_id_, query, false, -1, -1);
255  }
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)
Definition: DBEngine.cpp:192

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

std::shared_ptr<CursorImpl> EmbeddedDatabase::DBEngineImpl::executeRA ( const std::string &  query)
inline

Definition at line 257 of file DBEngine.cpp.

References session_id_, and sql_execute_dbe().

Referenced by EmbeddedDatabase::DBEngine::executeRA().

257  {
258  return sql_execute_dbe(session_id_, query, false, -1, -1);
259  }
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)
Definition: DBEngine.cpp:192

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

std::vector<ColumnDetails> EmbeddedDatabase::DBEngineImpl::getTableDetails ( const std::string &  table_name)
inline

Definition at line 279 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().

279  {
280  std::vector<ColumnDetails> result;
281  auto catalog = db_handler_->get_session_copy(session_id_).get_catalog_ptr();
282  if (catalog) {
283  auto metadata = catalog->getMetadataForTable(table_name, false);
284  if (metadata) {
285  const auto col_descriptors =
286  catalog->getAllColumnMetadataForTable(metadata->tableId, false, true, false);
287  const auto deleted_cd = catalog->getDeletedColumn(metadata);
288  for (const auto cd : col_descriptors) {
289  if (cd == deleted_cd) {
290  continue;
291  }
292  ColumnDetails col_details;
293  col_details.col_name = cd->columnName;
294  auto ct = cd->columnType;
295  SQLTypes sql_type = ct.get_type();
296  EncodingType sql_enc = ct.get_compression();
297  col_details.col_type = sqlToColumnType(sql_type);
298  col_details.encoding = sqlToColumnEncoding(sql_enc);
299  col_details.nullable = !ct.get_notnull();
300  col_details.is_array = (sql_type == kARRAY);
301  if (IS_GEO(sql_type)) {
302  col_details.precision = static_cast<int>(ct.get_subtype());
303  col_details.scale = ct.get_output_srid();
304  } else {
305  col_details.precision = ct.get_precision();
306  col_details.scale = ct.get_scale();
307  }
308  if (col_details.encoding == ColumnEncoding::DICT) {
309  // have to get the actual size of the encoding from the dictionary
310  // definition
311  const int dict_id = ct.get_comp_param();
312  auto dd = catalog->getMetadataForDict(dict_id, false);
313  if (dd) {
314  col_details.comp_param = dd->dictNBits;
315  } else {
316  throw std::runtime_error("Dictionary definition for column doesn't exist");
317  }
318  } else {
319  col_details.comp_param = ct.get_comp_param();
320  if (ct.is_date_in_days() && col_details.comp_param == 0) {
321  col_details.comp_param = 32;
322  }
323  }
324  result.push_back(col_details);
325  }
326  }
327  }
328  return result;
329  }
SQLTypes
Definition: sqltypes.h:37
ColumnType sqlToColumnType(const SQLTypes &type)
Definition: DBETypes.cpp:111
EncodingType
Definition: sqltypes.h:227
mapd::shared_ptr< DBHandler > db_handler_
Definition: DBEngine.cpp:429
ColumnEncoding sqlToColumnEncoding(const EncodingType &type)
Definition: DBETypes.cpp:162
tuple ColumnDetails
Definition: _parsers.py:23
#define IS_GEO(T)
Definition: sqltypes.h:245

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

std::vector<std::string> EmbeddedDatabase::DBEngineImpl::getTables ( )
inline

Definition at line 261 of file DBEngine.cpp.

References db_handler_, session_id_, and run_benchmark_import::tables.

Referenced by EmbeddedDatabase::DBEngine::getTables().

261  {
262  std::vector<std::string> table_names;
263  auto catalog = db_handler_->get_session_copy(session_id_).get_catalog_ptr();
264  if (catalog) {
265  const auto tables = catalog->getAllTableMetadata();
266  for (const auto td : tables) {
267  if (td->shard >= 0) {
268  // skip shards, they're not standalone tables
269  continue;
270  }
271  table_names.push_back(td->tableName);
272  }
273  } else {
274  throw std::runtime_error("System catalog uninitialized");
275  }
276  return table_names;
277  }
mapd::shared_ptr< DBHandler > db_handler_
Definition: DBEngine.cpp:429

+ Here is the caller graph for this function:

void EmbeddedDatabase::DBEngineImpl::importArrowTable ( const std::string &  name,
std::shared_ptr< arrow::Table > &  table,
uint64_t  fragment_size 
)
inline

Definition at line 219 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().

221  {
223  try {
224  auto session = db_handler_->get_session_copy(session_id_);
225  TableDescriptor td;
226  td.tableName = name;
227  td.userId = session.get_currentUser().userId;
228  td.storageType = "ARROW:" + name;
230  td.isView = false;
231  td.fragmenter = nullptr;
233  td.maxFragRows = fragment_size > 0 ? fragment_size : DEFAULT_FRAGMENT_ROWS;
237  td.keyMetainfo = "[]";
238 
239  std::list<ColumnDescriptor> cols;
240  std::vector<Parser::SharedDictionaryDef> dictionaries;
241  auto catalog = session.get_catalog_ptr();
242  // nColumns
243  catalog->createTable(td, cols, dictionaries, false);
245  session.get_currentUser(), td.tableName, TableDBObjectType, *catalog);
246  } catch (...) {
248  throw;
249  }
251  }
std::string tableName
std::string storageType
string name
Definition: setup.in.py:72
#define DEFAULT_MAX_CHUNK_SIZE
void setArrowTable(std::string name, std::shared_ptr< arrow::Table > table)
void createDBObject(const UserMetadata &user, const std::string &objectName, DBObjectType type, const Catalog_Namespace::Catalog &catalog, int32_t objectId=-1)
void releaseArrowTable(std::string name)
#define DEFAULT_MAX_ROWS
static SysCatalog & instance()
Definition: SysCatalog.h:292
mapd::shared_ptr< DBHandler > db_handler_
Definition: DBEngine.cpp:429
std::string keyMetainfo
std::shared_ptr< Fragmenter_Namespace::AbstractFragmenter > fragmenter
#define DEFAULT_PAGE_SIZE
#define DEFAULT_FRAGMENT_ROWS
Fragmenter_Namespace::FragmenterType fragType
Data_Namespace::MemoryLevel persistenceLevel

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

bool EmbeddedDatabase::DBEngineImpl::init ( const std::string &  cmd_line)
inline

Definition at line 104 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, CommandLineOptions::enable_runtime_udf, logger::FATAL, g_serialize_temp_tables, CommandLineOptions::idle_session_duration, CommandLineOptions::init_logging(), CommandLineOptions::intel_jit_profile, CommandLineOptions::jit_debug, LOG, CommandLineOptions::max_concurrent_render_sessions, CommandLineOptions::max_session_duration, CommandLineOptions::num_reader_threads, OMNISCI_DEFAULT_DB, OMNISCI_ROOT_PASSWD_DEFAULT, OMNISCI_ROOT_USER, 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_use_vulkan_driver, 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.

104  {
105  static bool initialized{false};
106  if (initialized) {
107  throw std::runtime_error("Database engine already initialized");
108  }
109 
111 
112  // Split the command line into parameters
113  std::vector<std::string> parameters;
114  if (!cmd_line.empty()) {
115  parameters = boost::program_options::split_unix(cmd_line);
116  }
117 
118  // Generate command line to initialize CommandLineOptions for DBHandler
119  const char* log_option = "omnisci_dbe";
120  std::vector<const char*> cstrings;
121  cstrings.push_back(log_option);
122  for (auto& param : parameters) {
123  cstrings.push_back(param.c_str());
124  }
125  int argc = cstrings.size();
126  const char** argv = cstrings.data();
127 
128  CommandLineOptions prog_config_opts(log_option);
129  if (prog_config_opts.parse_command_line(argc, argv, false)) {
130  throw std::runtime_error("DBE paramerameters parsing failed");
131  }
132 
133  auto base_path = prog_config_opts.base_path;
134 
135  // Check path to the database
136  bool is_new_db = base_path.empty() || !catalogExists(base_path);
137  if (is_new_db) {
138  base_path = createCatalog(base_path);
139  if (base_path.empty()) {
140  throw std::runtime_error("Database directory could not be created");
141  }
142  }
143  prog_config_opts.base_path = base_path;
144  prog_config_opts.init_logging();
145 
146  prog_config_opts.system_parameters.omnisci_server_port = -1;
147  prog_config_opts.system_parameters.calcite_keepalive = true;
148 
149  try {
150  db_handler_ =
151  mapd::make_shared<DBHandler>(prog_config_opts.db_leaves,
152  prog_config_opts.string_leaves,
153  prog_config_opts.base_path,
154  prog_config_opts.allow_multifrag,
155  prog_config_opts.jit_debug,
156  prog_config_opts.intel_jit_profile,
157  prog_config_opts.read_only,
158  prog_config_opts.allow_loop_joins,
159  prog_config_opts.enable_rendering,
160  prog_config_opts.renderer_use_vulkan_driver,
161  prog_config_opts.enable_auto_clear_render_mem,
162  prog_config_opts.render_oom_retry_threshold,
163  prog_config_opts.render_mem_bytes,
164  prog_config_opts.max_concurrent_render_sessions,
165  prog_config_opts.reserved_gpu_mem,
166  prog_config_opts.render_compositor_use_last_gpu,
167  prog_config_opts.num_reader_threads,
168  prog_config_opts.authMetadata,
169  prog_config_opts.system_parameters,
170  prog_config_opts.enable_legacy_syntax,
171  prog_config_opts.idle_session_duration,
172  prog_config_opts.max_session_duration,
173  prog_config_opts.enable_runtime_udf,
174  prog_config_opts.udf_file_name,
175  prog_config_opts.udf_compiler_path,
176  prog_config_opts.udf_compiler_options,
177 #ifdef ENABLE_GEOS
178  prog_config_opts.libgeos_so_filename,
179 #endif
180  prog_config_opts.disk_cache_config,
181  is_new_db);
182  } catch (const std::exception& e) {
183  LOG(FATAL) << "Failed to initialize database handler: " << e.what();
184  }
185  db_handler_->connect(
187  base_path_ = base_path;
188  initialized = true;
189  return true;
190  }
#define LOG(tag)
Definition: Logger.h:194
bool catalogExists(const std::string &base_path)
Definition: DBEngine.cpp:360
const std::string OMNISCI_DEFAULT_DB
Definition: SysCatalog.h:59
mapd::shared_ptr< DBHandler > db_handler_
Definition: DBEngine.cpp:429
std::string createCatalog(const std::string &base_path)
Definition: DBEngine.cpp:384
bool g_serialize_temp_tables
Definition: Catalog.cpp:98
const std::string OMNISCI_ROOT_USER
Definition: SysCatalog.h:60
const std::string OMNISCI_ROOT_PASSWD_DEFAULT
Definition: SysCatalog.h:63

+ Here is the call graph for this function:

bool EmbeddedDatabase::DBEngineImpl::login ( std::string &  db_name,
std::string &  user_name,
const std::string &  password 
)
inline

Definition at line 338 of file DBEngine.cpp.

References db_handler_, and session_id_.

Referenced by EmbeddedDatabase::DBEngine::login().

338  {
339  db_handler_->disconnect(session_id_);
340  db_handler_->connect(session_id_, user_name, password, db_name);
341  return true;
342  }
mapd::shared_ptr< DBHandler > db_handler_
Definition: DBEngine.cpp:429

+ Here is the caller graph for this function:

void EmbeddedDatabase::DBEngineImpl::reset ( )
inlineprotected

Definition at line 345 of file DBEngine.cpp.

References base_path_, db_handler_, Catalog_Namespace::SysCatalog::destroy(), is_temp_db_, session_id_, and logger::shutdown().

Referenced by ~DBEngineImpl().

345  {
346  if (db_handler_) {
347  db_handler_->disconnect(session_id_);
348  db_handler_->shutdown();
349  }
351  db_handler_.reset();
352 
354  if (is_temp_db_) {
355  boost::filesystem::remove_all(base_path_);
356  }
357  base_path_.clear();
358  }
mapd::shared_ptr< DBHandler > db_handler_
Definition: DBEngine.cpp:429
void shutdown()
Definition: Logger.cpp:314

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

bool EmbeddedDatabase::DBEngineImpl::setDatabase ( std::string &  db_name)
inline

Definition at line 331 of file DBEngine.cpp.

References db_handler_, Catalog_Namespace::SysCatalog::instance(), and session_id_.

Referenced by EmbeddedDatabase::DBEngine::setDatabase().

331  {
332  auto& sys_cat = Catalog_Namespace::SysCatalog::instance();
333  auto& user = db_handler_->get_session_copy(session_id_).get_currentUser();
334  sys_cat.switchDatabase(db_name, user.userName);
335  return true;
336  }
static SysCatalog & instance()
Definition: SysCatalog.h:292
mapd::shared_ptr< DBHandler > db_handler_
Definition: DBEngine.cpp:429

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

std::shared_ptr<CursorImpl> EmbeddedDatabase::DBEngineImpl::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 
)
inline

Definition at line 192 of file DBEngine.cpp.

References CPU, db_handler_, and run_benchmark_import::result.

Referenced by executeDDL(), executeDML(), and executeRA().

196  {
197  ExecutionResult result{std::make_shared<ResultSet>(std::vector<TargetInfo>{},
200  nullptr,
201  nullptr,
202  0,
203  0),
204  {}};
205  db_handler_->sql_execute(
206  result, session_id, query_str, column_format, first_n, at_most_n);
207  auto& targets = result.getTargetsMeta();
208  std::vector<std::string> col_names;
209  for (const auto target : targets) {
210  col_names.push_back(target.get_resname());
211  }
212  return std::make_shared<CursorImpl>(result.getRows(), col_names);
213  }
mapd::shared_ptr< DBHandler > db_handler_
Definition: DBEngine.cpp:429

+ Here is the caller graph for this function:

Member Data Documentation

std::string EmbeddedDatabase::DBEngineImpl::base_path_
private

Definition at line 427 of file DBEngine.cpp.

Referenced by init(), and reset().

mapd::shared_ptr<DBHandler> EmbeddedDatabase::DBEngineImpl::db_handler_
private
bool EmbeddedDatabase::DBEngineImpl::is_temp_db_
private

Definition at line 430 of file DBEngine.cpp.

Referenced by createCatalog(), and reset().

std::string EmbeddedDatabase::DBEngineImpl::session_id_
private
std::vector<std::string> EmbeddedDatabase::DBEngineImpl::system_folders_
private
Initial value:
= {"mapd_catalogs",
"mapd_data",
"mapd_export"}

Definition at line 433 of file DBEngine.cpp.

Referenced by catalogExists(), cleanCatalog(), and createCatalog().

std::string EmbeddedDatabase::DBEngineImpl::udf_filename_
private

Definition at line 431 of file DBEngine.cpp.


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