25#ifndef FBCPP_STATEMENT_OPTIONS_H
26#define FBCPP_STATEMENT_OPTIONS_H
64 return prefetchLegacyPlan;
74 prefetchLegacyPlan = value;
155 bool prefetchLegacyPlan =
false;
156 bool prefetchPlan =
false;
157 std::optional<std::string> cursorName;
159 unsigned dialect = SQL_DIALECT_CURRENT;
Represents options used when preparing a Statement.
const std::optional< std::string > & getCursorName() const
Returns the cursor name to be set for the statement.
unsigned getDialect() const
Returns the SQL dialect used when preparing the statement.
StatementOptions & setDialect(unsigned value)
Sets the SQL dialect used when preparing the statement.
StatementOptions & setCursorType(CursorType value)
Sets the cursor type used when opening a result set.
StatementOptions & setPrefetchLegacyPlan(bool value)
Enables or disables prefetching of the legacy textual plan at prepare time.
bool getPrefetchPlan() const
Reports whether the structured plan should be prefetched during prepare.
StatementOptions & setCursorName(const std::string &value)
Sets the cursor name for the statement.
StatementOptions & setPrefetchPlan(bool value)
Enables or disables prefetching of the structured plan at prepare time.
bool getPrefetchLegacyPlan() const
Reports whether the legacy textual plan should be prefetched during prepare.
CursorType getCursorType() const
Returns the cursor type to be used when opening a result set.
CursorType
Selects the cursor type for a SELECT statement.
@ FORWARD_ONLY
Forward-only traversal (default, more efficient for streaming).
@ SCROLLABLE
Allows bidirectional traversal and absolute/relative positioning.