Represents options used when preparing a Statement.
More...
#include <Statement.h>
Represents options used when preparing a Statement.
Definition at line 89 of file Statement.h.
◆ getCursorName()
| const std::optional< std::string > & fbcpp::StatementOptions::getCursorName |
( |
| ) |
const |
|
inline |
Returns the cursor name to be set for the statement.
Definition at line 133 of file Statement.h.
◆ getCursorType()
| CursorType fbcpp::StatementOptions::getCursorType |
( |
| ) |
const |
|
inline |
Returns the cursor type to be used when opening a result set.
Definition at line 152 of file Statement.h.
◆ getDialect()
| unsigned fbcpp::StatementOptions::getDialect |
( |
| ) |
const |
|
inline |
Returns the SQL dialect used when preparing the statement.
Definition at line 171 of file Statement.h.
◆ getPrefetchLegacyPlan()
| bool fbcpp::StatementOptions::getPrefetchLegacyPlan |
( |
| ) |
const |
|
inline |
Reports whether the legacy textual plan should be prefetched during prepare.
Definition at line 95 of file Statement.h.
◆ getPrefetchPlan()
| bool fbcpp::StatementOptions::getPrefetchPlan |
( |
| ) |
const |
|
inline |
Reports whether the structured plan should be prefetched during prepare.
Definition at line 114 of file Statement.h.
◆ setCursorName()
| StatementOptions & fbcpp::StatementOptions::setCursorName |
( |
const std::string & |
value | ) |
|
|
inline |
Sets the cursor name for the statement.
- Parameters
-
| value | The name of the cursor. |
- Returns
- Reference to this instance for fluent configuration.
Definition at line 143 of file Statement.h.
◆ setCursorType()
Sets the cursor type used when opening a result set.
- Parameters
-
| value | FORWARD_ONLY for streaming access, SCROLLABLE for bidirectional navigation. |
- Returns
- Reference to this instance for fluent configuration.
Definition at line 162 of file Statement.h.
◆ setDialect()
Sets the SQL dialect used when preparing the statement.
- Parameters
-
| value | SQL dialect number (1 for InterBase compatibility, 3 for current). |
- Returns
- Reference to this instance for fluent configuration.
Definition at line 181 of file Statement.h.
◆ setPrefetchLegacyPlan()
Enables or disables prefetching of the legacy textual plan at prepare time.
- Parameters
-
| value | true to prefetch the legacy plan, false to skip it. |
- Returns
- Reference to this instance for fluent configuration.
Definition at line 105 of file Statement.h.
◆ setPrefetchPlan()
Enables or disables prefetching of the structured plan at prepare time.
- Parameters
-
| value | true to prefetch the optimized plan, false to skip it. |
- Returns
- Reference to this instance for fluent configuration.
Definition at line 124 of file Statement.h.
The documentation for this class was generated from the following file: