MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / finalizeSession

Method finalizeSession

app/src/Sessions/Export.cpp:567–577  ·  view source on GitHub ↗

* @brief Updates the session's ended_at timestamp. */

Source from the content-addressed store, hash-verified

565 * @brief Updates the session's ended_at timestamp.
566 */
567void Sessions::ExportWorker::finalizeSession()
568{
569 if (m_sessionId < 0 || !m_db || !m_db->isOpen())
570 return;
571
572 QSqlQuery q(*m_db);
573 q.prepare("UPDATE sessions SET ended_at = ? WHERE session_id = ?");
574 q.bindValue(0, QDateTime::currentDateTime().toString(Qt::ISODate));
575 q.bindValue(1, m_sessionId);
576 q.exec();
577}
578
579//--------------------------------------------------------------------------------------------------
580// Export singleton

Callers

nothing calls this directly

Calls 2

execMethod · 0.80
isOpenMethod · 0.45

Tested by

no test coverage detected