|
|
mutex | invalidate_lock |
|
atomic< bool > | is_invalidated |
| | Set to true when encountering a fatal exception.
|
|
string | invalidated_msg |
| | The message invalidating the database instance.
|
|
DatabaseInstance & | db |
| | The database instance.
|
◆ ValidChecker()
303467}
DatabaseInstance & db
The database instance.
Definition duckdb.hpp:40278
atomic< bool > is_invalidated
Set to true when encountering a fatal exception.
Definition duckdb.hpp:40274
◆ Get() [1/2]
277325 {
277326 return db.GetValidChecker();
277327}
◆ Get() [2/2]
447082 {
447083 return transaction.transaction_validity;
447084}
◆ Invalidate() [1/2]
| void duckdb::ValidChecker::Invalidate |
( |
string | error | ) |
|
303469 {
303470 lock_guard<mutex> l(invalidate_lock);
303473}
string invalidated_msg
The message invalidating the database instance.
Definition duckdb.hpp:40276
◆ IsInvalidated() [1/2]
| bool duckdb::ValidChecker::IsInvalidated |
( |
| ) |
|
303475 {
303476 if (Settings::Get<DisableDatabaseInvalidationSetting>(
db)) {
303477 return false;
303478 }
303480}
◆ InvalidatedMessage() [1/2]
| string duckdb::ValidChecker::InvalidatedMessage |
( |
| ) |
|
303482 {
303483 lock_guard<mutex> l(invalidate_lock);
303485}
◆ IsInvalidated() [2/2]
template<class T>
| bool duckdb::ValidChecker::IsInvalidated |
( |
T & | o | ) |
|
|
inlinestatic |
40258 {
40259 return Get(o).IsInvalidated();
40260 }
◆ Invalidate() [2/2]
template<class T>
| void duckdb::ValidChecker::Invalidate |
( |
T & | o, |
|
|
string | error ) |
|
inlinestatic |
40262 {
40263 Get(o).Invalidate(std::move(error));
40264 }
◆ InvalidatedMessage() [2/2]
template<class T>
| string duckdb::ValidChecker::InvalidatedMessage |
( |
T & | o | ) |
|
|
inlinestatic |
40267 {
40268 return Get(o).InvalidatedMessage();
40269 }
The documentation for this class was generated from the following files: