5#include <unordered_map>
33 std::vector<std::shared_ptr<binder::Expression>>
columns;
66 return unknownParameters;
72 std::string
getName()
const {
return cachedPreparedStatementName; }
77 const std::string& errorMessage);
84 std::string cachedPreparedStatementName;
85 std::unordered_set<std::string> unknownParameters;
86 std::unordered_map<std::string, std::shared_ptr<common::Value>> parameterMap;
#define LBUG_API
Definition api.h:25
A prepared statement is a parameterized query which can avoid planning the same query for repeated ex...
Definition prepared_statement.h:46
void addParameter(const std::string &name, common::Value *value)
LBUG_API std::string getErrorMessage() const
const std::unordered_set< std::string > & getUnknownParameters() const
Definition prepared_statement.h:65
common::StatementType getStatementType() const
void updateParameter(const std::string &name, common::Value *value)
std::string getName() const
Definition prepared_statement.h:72
friend class Connection
Definition prepared_statement.h:47
static std::unique_ptr< PreparedStatement > getPreparedStatementWithError(const std::string &errorMessage)
LBUG_API bool isReadOnly() const
std::unordered_set< std::string > getKnownParameters()
friend class ClientContext
Definition prepared_statement.h:48
LBUG_API ~PreparedStatement()
LBUG_API bool isSuccess() const
Definition bind_input.h:12
Definition array_utils.h:7
Definition bind_input.h:16
Definition prepared_statement.h:16
Definition array_utils.h:7
std::vector< common::LogicalType > getColumnTypes() const
std::shared_ptr< parser::Statement > parsedStatement
Definition prepared_statement.h:31
bool useInternalCatalogEntry
Definition prepared_statement.h:30
std::unique_ptr< planner::LogicalPlan > logicalPlan
Definition prepared_statement.h:32
CachedPreparedStatement()
std::vector< std::string > getColumnNames() const
std::vector< std::shared_ptr< binder::Expression > > columns
Definition prepared_statement.h:33
~CachedPreparedStatement()
PreparedSummary stores the compiling time and query options of a query.
Definition query_summary.h:17