| 501 | } |
| 502 | |
| 503 | void DbConnection::UpdateAllObjects() |
| 504 | { |
| 505 | for (const Type::Ptr& type : Type::GetAllTypes()) { |
| 506 | auto *dtype = dynamic_cast<ConfigType *>(type.get()); |
| 507 | |
| 508 | if (!dtype) |
| 509 | continue; |
| 510 | |
| 511 | for (const ConfigObject::Ptr& object : dtype->GetObjects()) { |
| 512 | m_QueryQueue.Enqueue([this, object](){ UpdateObject(object); }, PriorityHigh); |
| 513 | } |
| 514 | } |
| 515 | } |
| 516 | |
| 517 | void DbConnection::PrepareDatabase() |
| 518 | { |
nothing calls this directly
no test coverage detected