#include <Database.hpp>
tsm::Database::Database |
( |
const std::filesystem::path & |
inputPath, |
|
|
const std::filesystem::path & |
outputPath, |
|
|
const std::string & |
datasetName |
|
) |
| |
tsm::Database::~Database |
( |
| ) |
|
void tsm::Database::closeConnection |
( |
| ) |
|
|
private |
Close connection to database.
void tsm::Database::configureDBConnection |
( |
| ) |
|
|
private |
void tsm::Database::configureSQLITE |
( |
| ) |
|
|
private |
void tsm::Database::createDimensionsTable |
( |
| ) |
|
|
private |
void tsm::Database::createHistoricalTable |
( |
| ) |
|
|
private |
void tsm::Database::createVariablesDimensionsTable |
( |
| ) |
|
|
private |
void tsm::Database::createVariablesTable |
( |
| ) |
|
|
private |
void tsm::Database::execStatement |
( |
const std::string & |
sqlStatement, |
|
|
int(*)(void *, int, char **, char **) |
callback = nullptr |
|
) |
| |
|
private |
Ideal for 1-shot SQL statements (like setting PRAGMAs, etc.).
void tsm::Database::insertHistorical |
( |
const ds::DatasetDesc & |
datasetDesc | ) |
|
|
private |
void tsm::Database::insertHistoricalCombined |
( |
const ds::DatasetDesc & |
datasetDesc | ) |
|
|
private |
bool tsm::Database::open |
( |
| ) |
|
void tsm::Database::populateHistoricalJoinTable |
( |
const ds::DatasetDesc & |
datasetDesc | ) |
|
|
private |
void tsm::Database::populateVarsDimTable |
( |
const std::unordered_set< ds::VariableDesc > & |
insertedVariables | ) |
|
|
private |
Database::stmtPtr tsm::Database::prepareStatement |
( |
const std::string & |
sqlStatement | ) |
|
|
private |
Ideal for repetitive SQL statements.
sqlite3* tsm::Database::m_DBHandle { nullptr } |
|
private |
const std::filesystem::path tsm::Database::m_inputPath |
|
private |
const std::filesystem::path tsm::Database::m_outputFilePath |
|
private |
The documentation for this class was generated from the following files: