mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-02 01:20:25 +08:00
DBDriver: added getDatabaseVersion() method
This commit is contained in:
@@ -99,6 +99,15 @@ long DBDriver::getMemoryUsed() const
|
||||
return bytes;
|
||||
}
|
||||
|
||||
std::string DBDriver::getDatabaseVersion() const
|
||||
{
|
||||
std::string version = "0.0.0";
|
||||
_dbSafeAccessMutex.lock();
|
||||
getDatabaseVersionQuery(version);
|
||||
_dbSafeAccessMutex.unlock();
|
||||
return version;
|
||||
}
|
||||
|
||||
void DBDriver::mainLoop()
|
||||
{
|
||||
this->emptyTrashes();
|
||||
|
||||
Reference in New Issue
Block a user