walberla::sqlite Namespace Reference

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
 

Function Documentation

template<typename IntType >
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.

Parameters
runIdresult of storeRun() member function, primary key of the run to store information for
tableNamename of the table where the information is stored in is created if it does not yet exist
*PropertiesMap 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 
)
template<typename IntType >
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

Parameters
*PropertiesMap of column names to value
Returns
The primary key of the inserted data set.
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 
)

Variable Documentation

const int walberla::sqlite::BUSY_TIMEOUT = 30