![]() |
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.
|
A prepared statement. More...

Public Member Functions | |
| DUCKDB_API | PreparedStatement (shared_ptr< ClientContext > context, shared_ptr< PreparedStatementData > data, string query, case_insensitive_map_t< idx_t > named_param_map) |
| Create a successfully prepared prepared statement object with the given name. | |
| DUCKDB_API | PreparedStatement (ErrorData error) |
| Create a prepared statement that was not successfully prepared. | |
| DUCKDB_API const string & | GetError () |
| Returns the stored error message. | |
| DUCKDB_API ErrorData & | GetErrorObject () |
| Returns the stored error object. | |
| DUCKDB_API bool | HasError () const |
| Returns whether or not an error occurred. | |
| DUCKDB_API idx_t | ColumnCount () |
| Returns the number of columns in the result. | |
| DUCKDB_API StatementType | GetStatementType () |
| Returns the statement type of the underlying prepared statement object. | |
| DUCKDB_API StatementProperties | GetStatementProperties () |
| Returns the underlying statement properties. | |
| DUCKDB_API const vector< LogicalType > & | GetTypes () |
| Returns the result SQL types of the prepared statement. | |
| DUCKDB_API const vector< string > & | GetNames () |
| Returns the result names of the prepared statement. | |
| DUCKDB_API case_insensitive_map_t< LogicalType > | GetExpectedParameterTypes () const |
| Returns the map of parameter index to the expected type of parameter. | |
| template<typename... ARGS> | |
| unique_ptr< PendingQueryResult > | PendingQuery (ARGS... args) |
| Create a pending query result of the prepared statement with the given set of arguments. | |
| DUCKDB_API unique_ptr< PendingQueryResult > | PendingQuery (vector< Value > &values, bool allow_stream_result=true) |
| Create a pending query result of the prepared statement with the given set of arguments. | |
| DUCKDB_API unique_ptr< PendingQueryResult > | PendingQuery (case_insensitive_map_t< BoundParameterData > &named_values, bool allow_stream_result=true) |
| Create a pending query result of the prepared statement with the given set named arguments. | |
| DUCKDB_API unique_ptr< QueryResult > | Execute (vector< Value > &values, bool allow_stream_result=true) |
| Execute the prepared statement with the given set of values. | |
| DUCKDB_API unique_ptr< QueryResult > | Execute (case_insensitive_map_t< BoundParameterData > &named_values, bool allow_stream_result=true) |
| Execute the prepared statement with the given set of named+unnamed values. | |
| template<typename... ARGS> | |
| unique_ptr< QueryResult > | Execute (ARGS... args) |
| Execute the prepared statement with the given set of arguments. | |
Static Public Member Functions | |
| template<class PAYLOAD > | |
| static string | ExcessValuesException (const case_insensitive_map_t< idx_t > ¶meters, const case_insensitive_map_t< PAYLOAD > &values) |
| template<class PAYLOAD > | |
| static string | MissingValuesException (const case_insensitive_map_t< idx_t > ¶meters, const case_insensitive_map_t< PAYLOAD > &values) |
| template<class PAYLOAD > | |
| static void | VerifyParameters (const case_insensitive_map_t< PAYLOAD > &provided, const case_insensitive_map_t< idx_t > &expected) |
| static bool | CanCachePlan (const LogicalOperator &op) |
| Returns whether or not we can / want to cache a logical plan. | |
Public Attributes | |
| shared_ptr< ClientContext > | context |
| The client context this prepared statement belongs to. | |
| shared_ptr< PreparedStatementData > | data |
| The prepared statement data. | |
| string | query |
| The query that is being prepared. | |
| bool | success |
| Whether or not the statement was successfully prepared. | |
| ErrorData | error |
| The error message (if success = false) | |
| case_insensitive_map_t< idx_t > | named_param_map |
| The parameter mapping. | |
Private Member Functions | |
| unique_ptr< PendingQueryResult > | PendingQueryRecursive (vector< Value > &values) |
| template<typename T , typename... ARGS> | |
| unique_ptr< PendingQueryResult > | PendingQueryRecursive (vector< Value > &values, T value, ARGS... args) |
| unique_ptr< QueryResult > | ExecuteRecursive (vector< Value > &values) |
| template<typename T , typename... ARGS> | |
| unique_ptr< QueryResult > | ExecuteRecursive (vector< Value > &values, T value, ARGS... args) |
A prepared statement.
|
inline |
Create a pending query result of the prepared statement with the given set of arguments.
|
inline |
Execute the prepared statement with the given set of arguments.
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |