fb-cpp 0.0.2
A modern C++ wrapper for the Firebird database API
Loading...
Searching...
No Matches
fbcpp::StatementOptions Class Referencefinal

Represents options used when preparing a Statement. More...

#include <StatementOptions.h>

Public Member Functions

bool getPrefetchLegacyPlan () const
 Reports whether the legacy textual plan should be prefetched during prepare.
 
StatementOptionssetPrefetchLegacyPlan (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.
 
StatementOptionssetPrefetchPlan (bool value)
 Enables or disables prefetching of the structured plan at prepare time.
 
const std::optional< std::string > & getCursorName () const
 Returns the cursor name to be set for the statement.
 
StatementOptionssetCursorName (const std::string &value)
 Sets the cursor name for the statement.
 
CursorType getCursorType () const
 Returns the cursor type to be used when opening a result set.
 
StatementOptionssetCursorType (CursorType value)
 Sets the cursor type used when opening a result set.
 
unsigned getDialect () const
 Returns the SQL dialect used when preparing the statement.
 
StatementOptionssetDialect (unsigned value)
 Sets the SQL dialect used when preparing the statement.
 

Detailed Description

Represents options used when preparing a Statement.

Definition at line 56 of file StatementOptions.h.

Member Function Documentation

◆ getCursorName()

const std::optional< std::string > & fbcpp::StatementOptions::getCursorName ( ) const
inline

Returns the cursor name to be set for the statement.

Definition at line 100 of file StatementOptions.h.

◆ getCursorType()

CursorType fbcpp::StatementOptions::getCursorType ( ) const
inline

Returns the cursor type to be used when opening a result set.

Definition at line 119 of file StatementOptions.h.

◆ getDialect()

unsigned fbcpp::StatementOptions::getDialect ( ) const
inline

Returns the SQL dialect used when preparing the statement.

Definition at line 138 of file StatementOptions.h.

◆ getPrefetchLegacyPlan()

bool fbcpp::StatementOptions::getPrefetchLegacyPlan ( ) const
inline

Reports whether the legacy textual plan should be prefetched during prepare.

Definition at line 62 of file StatementOptions.h.

◆ getPrefetchPlan()

bool fbcpp::StatementOptions::getPrefetchPlan ( ) const
inline

Reports whether the structured plan should be prefetched during prepare.

Definition at line 81 of file StatementOptions.h.

◆ setCursorName()

StatementOptions & fbcpp::StatementOptions::setCursorName ( const std::string &  value)
inline

Sets the cursor name for the statement.

Parameters
valueThe name of the cursor.
Returns
Reference to this instance for fluent configuration.

Definition at line 110 of file StatementOptions.h.

◆ setCursorType()

StatementOptions & fbcpp::StatementOptions::setCursorType ( CursorType  value)
inline

Sets the cursor type used when opening a result set.

Parameters
valueFORWARD_ONLY for streaming access, SCROLLABLE for bidirectional navigation.
Returns
Reference to this instance for fluent configuration.

Definition at line 129 of file StatementOptions.h.

◆ setDialect()

StatementOptions & fbcpp::StatementOptions::setDialect ( unsigned  value)
inline

Sets the SQL dialect used when preparing the statement.

Parameters
valueSQL dialect number (1 for InterBase compatibility, 3 for current).
Returns
Reference to this instance for fluent configuration.

Definition at line 148 of file StatementOptions.h.

◆ setPrefetchLegacyPlan()

StatementOptions & fbcpp::StatementOptions::setPrefetchLegacyPlan ( bool  value)
inline

Enables or disables prefetching of the legacy textual plan at prepare time.

Parameters
valuetrue to prefetch the legacy plan, false to skip it.
Returns
Reference to this instance for fluent configuration.

Definition at line 72 of file StatementOptions.h.

◆ setPrefetchPlan()

StatementOptions & fbcpp::StatementOptions::setPrefetchPlan ( bool  value)
inline

Enables or disables prefetching of the structured plan at prepare time.

Parameters
valuetrue to prefetch the optimized plan, false to skip it.
Returns
Reference to this instance for fluent configuration.

Definition at line 91 of file StatementOptions.h.


The documentation for this class was generated from the following file: