KiCad PCB EDA Suite
Loading...
Searching...
No Matches
DB_WORKER_FAILURE Struct Reference

What a backend reports, and what it does with its connection, when a worker call did not complete. More...

#include <db_backend_support.h>

Public Types

enum class  CONNECTION { KEEP , DROP , FORGET }
 

Public Attributes

DB_FAILURE failure
 
std::string message
 
CONNECTION connection
 

Detailed Description

What a backend reports, and what it does with its connection, when a worker call did not complete.

Definition at line 47 of file db_backend_support.h.

Member Enumeration Documentation

◆ CONNECTION

enum class DB_WORKER_FAILURE::CONNECTION
strong
Enumerator
KEEP 

Nothing ran, so the connection is intact.

DROP 

The connection is closed through the worker.

FORGET 

The stuck job releases the connection itself when its blocked call returns.

Definition at line 49 of file db_backend_support.h.

Member Data Documentation

◆ connection

CONNECTION DB_WORKER_FAILURE::connection

Definition at line 58 of file db_backend_support.h.

Referenced by ACE_BACKEND::runOnWorker(), and SQLITE_BACKEND::runOnWorker().

◆ failure

DB_FAILURE DB_WORKER_FAILURE::failure

◆ message

std::string DB_WORKER_FAILURE::message

The documentation for this struct was generated from the following file: