OmniSciDB
a5dc49c757
|
#include <ExternalExecutor.h>
Public Member Functions | |
SqliteMemDatabase (const ExternalQueryTable &external_query_table) | |
~SqliteMemDatabase () | |
void | run (const std::string &sql) |
std::unique_ptr< ResultSet > | runSelect (const std::string &sql, const ExternalQueryOutputSpec &output_spec) |
Private Attributes | |
sqlite3 * | db_ |
ExternalQueryTable | external_query_table_ |
Static Private Attributes | |
static std::mutex | session_mutex_ |
Definition at line 48 of file ExternalExecutor.h.
SqliteMemDatabase::SqliteMemDatabase | ( | const ExternalQueryTable & | external_query_table | ) |
Definition at line 384 of file ExternalExecutor.cpp.
References CHECK_EQ, db_, external_query_table_, and anonymous_namespace{ExternalExecutor.cpp}::omnisci_module.
SqliteMemDatabase::~SqliteMemDatabase | ( | ) |
void SqliteMemDatabase::run | ( | const std::string & | sql | ) |
Definition at line 398 of file ExternalExecutor.cpp.
References CHECK_EQ, db_, and session_mutex_.
Referenced by run_query_external().
std::unique_ptr< ResultSet > SqliteMemDatabase::runSelect | ( | const std::string & | sql, |
const ExternalQueryOutputSpec & | output_spec | ||
) |
Definition at line 419 of file ExternalExecutor.cpp.
References CHECK, CHECK_EQ, SqliteConnector::columnTypes, CPU, db_, ExternalQueryOutputSpec::executor, logger::FATAL, get_scan_output_slot(), SqliteConnector::getData(), SqliteConnector::getNumCols(), SqliteConnector::getNumRows(), inline_fp_null_value< double >(), inline_fp_null_value< float >(), inline_int_max_min(), inline_int_null_val(), SqliteConnector::isNull(), kBIGINT, kBOOLEAN, kCHAR, kDOUBLE, kFLOAT, kINT, kSMALLINT, kTEXT, kTINYINT, kVARCHAR, LOG, SqliteConnector::query(), ExternalQueryOutputSpec::query_mem_desc, query_mem_desc, and ExternalQueryOutputSpec::target_infos.
Referenced by run_query_external().
|
private |
Definition at line 59 of file ExternalExecutor.h.
Referenced by run(), runSelect(), SqliteMemDatabase(), and ~SqliteMemDatabase().
|
private |
Definition at line 60 of file ExternalExecutor.h.
Referenced by SqliteMemDatabase().
|
staticprivate |
Definition at line 61 of file ExternalExecutor.h.
Referenced by run(), and ~SqliteMemDatabase().