5#include <unordered_map>
26 std::vector<std::shared_ptr<binder::Expression>>
columns;
64 std::string
getName()
const {
return cachedPreparedStatementName; }
71 const std::string& errorMessage);
78 std::string cachedPreparedStatementName;
79 std::unordered_map<std::string, std::shared_ptr<common::Value>> parameterMap;
#define KUZU_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:39
void validateExecuteParam(const std::string ¶mName, common::Value *param) const
KUZU_API bool isReadOnly() const
friend class testing::TestRunner
Definition prepared_statement.h:43
friend class Connection
Definition prepared_statement.h:40
friend class testing::TestHelper
Definition prepared_statement.h:42
KUZU_API ~PreparedStatement()
KUZU_API bool isSuccess() const
std::unordered_map< std::string, std::shared_ptr< common::Value > > & getParameterMapUnsafe()
Definition prepared_statement.h:60
KUZU_API std::string getErrorMessage() const
common::StatementType getStatementType() const
static std::unique_ptr< PreparedStatement > getPreparedStatementWithError(const std::string &errorMessage)
std::string getName() const
Definition prepared_statement.h:64
friend class ClientContext
Definition prepared_statement.h:41
Definition array_utils.h:7
StatementType
Definition statement_type.h:8
Definition bind_input.h:16
Definition client_context.h:20
Definition array_utils.h:7
CachedPreparedStatement()
~CachedPreparedStatement()
std::unique_ptr< planner::LogicalPlan > logicalPlan
Definition prepared_statement.h:25
std::shared_ptr< parser::Statement > parsedStatement
Definition prepared_statement.h:24
bool useInternalCatalogEntry
Definition prepared_statement.h:23
std::vector< std::string > getColumnNames() const
std::vector< common::LogicalType > getColumnTypes() const
std::vector< std::shared_ptr< binder::Expression > > columns
Definition prepared_statement.h:26
PreparedSummary stores the compiling time and query options of a query.
Definition query_summary.h:12