![]() |
Autonomy Software C++ 24.5.1
Welcome to the Autonomy Software repository of the Mars Rover Design Team (MRDT) at Missouri University of Science and Technology (Missouri S&T)! API reference contains the source code and other resources for the development of the autonomy software for our Mars rover. The Autonomy Software project aims to compete in the University Rover Challenge (URC) by demonstrating advanced autonomous capabilities and robust navigation algorithms.
|
The DatabaseFilePathManager is used to ensure we only ever open a single database file once. More...
#include <duckdb.hpp>

Public Member Functions | |
| idx_t | ApproxDatabaseCount () const |
| InsertDatabasePathResult | InsertDatabasePath (DatabaseManager &manager, const string &path, const string &name, OnCreateConflict on_conflict, AttachOptions &options) |
| void | EraseDatabasePath (const string &path) |
| Erase a database path - indicating we are done with using it. | |
| void | DetachDatabase (DatabaseManager &manager, const string &path) |
| Called when a database is detached, but before it is fully finished being used. | |
Private Attributes | |
| mutex | db_paths_lock |
| The lock to add entries to the db_paths map. | |
| unordered_map< string, DatabasePathInfo > | db_paths |
The DatabaseFilePathManager is used to ensure we only ever open a single database file once.
|
private |
A set containing all attached database path This allows to attach many databases efficiently, and to avoid attaching the same file path twice