Classes | |
class | SQLiteDB |
Functions | |
template<typename IntType > | |
uint_t | storeRunImpl (sqlite3 *dbHandle, std::string &filename, const map< string, IntType > &integerProperties, const map< string, string > &stringProperties, const map< string, double > &realProperties) |
Store information about a simulation run into a Sqlite3 Database. More... | |
template<typename IntType > | |
void | storeAdditionalRunInfoImpl (sqlite3 *dbHandle, uint_t runId, const std::string &tableName, const map< string, IntType > &integerProperties, const map< string, string > &stringProperties, const map< string, double > &realProperties) |
Stores information in another table, referencing the "run" table. More... | |
uint_t | storeRunInSqliteDB (const string &dbFile, const map< string, int > &integerProperties, const map< string, string > &stringProperties, const map< string, double > &realProperties, const int busyTimeout) |
uint_t | storeRunInSqliteDB (const string &dbFile, const map< string, int64_t > &integerProperties, const map< string, string > &stringProperties, const map< string, double > &realProperties, const int busyTimeout) |
void | storeAdditionalRunInfoInSqliteDB (const uint_t runId, const string &dbFile, const string &tableName, const map< string, int > &integerProperties, const map< string, string > &stringProperties, const map< string, double > &realProperties, const int busyTimeout) |
void | storeAdditionalRunInfoInSqliteDB (const uint_t runId, const string &dbFile, const string &tableName, const map< string, int64_t > &integerProperties, const map< string, string > &stringProperties, const map< string, double > &realProperties, const int busyTimeout) |
void | storeTimingPoolInSqliteDB (const string &dbFile, uint_t runId, const WcTimingPool &tp, const std::string &timingPoolName, const int busyTimeout) |
void | storeTimingTreeInSqliteDB (const string &dbFile, uint_t runId, const WcTimingTree &tt, const std::string &timingTreeName, const int busyTimeout) |
Variables | |
const int | BUSY_TIMEOUT = 30 |
void walberla::sqlite::storeAdditionalRunInfoImpl | ( | sqlite3 * | dbHandle, |
uint_t | runId, | ||
const std::string & | tableName, | ||
const map< string, IntType > & | integerProperties, | ||
const map< string, string > & | stringProperties, | ||
const map< string, double > & | realProperties | ||
) |
Stores information in another table, referencing the "run" table.
dbHandle | database cursor |
runId | result of storeRun() member function, primary key of the run to store information for |
tableName | name of the table where the information is stored in is created if it does not yet exist |
integerProperties,stringProperties,realProperties | Map of column names to value |
void walberla::sqlite::storeAdditionalRunInfoInSqliteDB | ( | const uint_t | runId, |
const string & | dbFile, | ||
const string & | tableName, | ||
const map< string, int > & | integerProperties, | ||
const map< string, string > & | stringProperties, | ||
const map< string, double > & | realProperties, | ||
const int | busyTimeout | ||
) |
void walberla::sqlite::storeAdditionalRunInfoInSqliteDB | ( | const uint_t | runId, |
const string & | dbFile, | ||
const string & | tableName, | ||
const map< string, int64_t > & | integerProperties, | ||
const map< string, string > & | stringProperties, | ||
const map< string, double > & | realProperties, | ||
const int | busyTimeout | ||
) |
uint_t walberla::sqlite::storeRunImpl | ( | sqlite3 * | dbHandle, |
std::string & | filename, | ||
const map< string, IntType > & | integerProperties, | ||
const map< string, string > & | stringProperties, | ||
const map< string, double > & | realProperties | ||
) |
Store information about a simulation run into a Sqlite3 Database.
The generated database is called "runs". The columns of the table are the keys of the given maps. If a column does not yet exist, it is appended to the database. The entries that have no value in this column are set to default value ( zero or empty string ). Additionally a column is created for each activated global state, and its value is set to 1
dbHandle | Database cursor |
filename | Database path |
integerProperties,stringProperties,realProperties | Map of column names to value |
uint_t walberla::sqlite::storeRunInSqliteDB | ( | const string & | dbFile, |
const map< string, int > & | integerProperties, | ||
const map< string, string > & | stringProperties, | ||
const map< string, double > & | realProperties, | ||
const int | busyTimeout | ||
) |
uint_t walberla::sqlite::storeRunInSqliteDB | ( | const string & | dbFile, |
const map< string, int64_t > & | integerProperties, | ||
const map< string, string > & | stringProperties, | ||
const map< string, double > & | realProperties, | ||
const int | busyTimeout | ||
) |
void walberla::sqlite::storeTimingPoolInSqliteDB | ( | const string & | dbFile, |
uint_t | runId, | ||
const WcTimingPool & | tp, | ||
const std::string & | timingPoolName, | ||
const int | busyTimeout | ||
) |
void walberla::sqlite::storeTimingTreeInSqliteDB | ( | const string & | dbFile, |
uint_t | runId, | ||
const WcTimingTree & | tt, | ||
const std::string & | timingTreeName, | ||
const int | busyTimeout | ||
) |
const int walberla::sqlite::BUSY_TIMEOUT = 30 |