Harlinn.Windows 0.1
Loading...
Searching...
No Matches
Harlinn::ODBC::DataReader Class Reference

#include <HODBC.h>

Collaboration diagram for Harlinn::ODBC::DataReader:
[legend]

Public Member Functions

constexpr DataReader (const Statement *statement) noexcept
 
 DataReader (const DataReader &other)=delete
 
 DataReader (DataReader &&other)=delete
 
DataReaderoperator= (const DataReader &other)=delete
 
DataReaderoperator= (DataReader &&other)=delete
 
const StatementStatement () const
 
bool Read ()
 
SQLHANDLE Handle () const noexcept
 
Result GetData (SQLUSMALLINT columnOrParameterNumber, NativeType targetValueDataType, SQLPOINTER targetValue, SQLLEN targetValueMaxLength, SQLLEN *nullIndicatorOrTargetValueActualLength) const
 
DBBoolean GetDBBoolean (SQLUSMALLINT columnNumber) const
 Gets the value of the specified column as a DBBoolean.
 
DBByte GetDBByte (SQLUSMALLINT columnNumber) const
 Gets the value of the specified column as a DBByte.
 
DBSByte GetDBSByte (SQLUSMALLINT columnNumber) const
 Gets the value of the specified column as a DBSByte.
 
DBInt16 GetDBInt16 (SQLUSMALLINT columnNumber) const
 Gets the value of the specified column as a DBInt16.
 
DBUInt16 GetDBUInt16 (SQLUSMALLINT columnNumber) const
 Gets the value of the specified column as a DBUInt16.
 
DBInt32 GetDBInt32 (SQLUSMALLINT columnNumber) const
 Gets the value of the specified column as a DBInt32.
 
DBUInt32 GetDBUInt32 (SQLUSMALLINT columnNumber) const
 Gets the value of the specified column as a DBUInt32.
 
DBInt64 GetDBInt64 (SQLUSMALLINT columnNumber) const
 Gets the value of the specified column as a DBInt64.
 
DBUInt64 GetDBUInt64 (SQLUSMALLINT columnNumber) const
 Gets the value of the specified column as a DBUInt64.
 
DBNumeric GetDBNumeric (SQLUSMALLINT columnNumber) const
 Gets the value of the specified column as a DBNumeric.
 
DBDecimal GetDBDecimal (SQLUSMALLINT columnNumber) const
 Gets the value of the specified column as a DBDecimal.
 
DBSingle GetDBSingle (SQLUSMALLINT columnNumber) const
 Gets the value of the specified column as a DBSingle.
 
DBDouble GetDBDouble (SQLUSMALLINT columnNumber) const
 Gets the value of the specified column as a DBDouble.
 
DBCurrency GetDBCurrency (SQLUSMALLINT columnNumber) const
 Gets the value of the specified column as a DBCurrency.
 
DBDateTime GetDBDateTime (SQLUSMALLINT columnNumber) const
 Gets the value of the specified column as a DBDateTime.
 
DBTimeStampOffset GetDBTimeStampOffset (SQLUSMALLINT columnNumber) const
 Gets the value of the specified column as a DBTimestampOffset.
 
DBDate GetDBDate (SQLUSMALLINT columnNumber) const
 Gets the value of the specified column as a DBDate.
 
DBTime GetDBTime (SQLUSMALLINT columnNumber) const
 Gets the value of the specified column as a DBTime.
 
DBTimeSpan GetDBTimeSpan (SQLUSMALLINT columnNumber) const
 Gets the value of the specified column as a DBTimeSpan.
 
DBWideString GetDBWideString (SQLUSMALLINT columnNumber) const
 Gets the value of the specified column as a DBWideString.
 
DBAnsiString GetDBAnsiString (SQLUSMALLINT columnNumber) const
 Gets the value of the specified column as a DBAnsiString.
 
DBBinary GetDBBinary (SQLUSMALLINT columnNumber) const
 Gets the value of the specified column as a DBBinary.
 
DBGuid GetDBGuid (SQLUSMALLINT columnNumber) const
 Gets the value of the specified column as a DBGuid.
 
DBRowVersion GetDBRowVersion (SQLUSMALLINT columnNumber) const
 Gets the value of the specified column as a DBRowVersion.
 
bool GetBoolean (SQLUSMALLINT columnNumber) const
 Gets the value of the specified column as a bool.
 
Byte GetByte (SQLUSMALLINT columnNumber) const
 Gets the value of the specified column as a Byte.
 
SByte GetSByte (SQLUSMALLINT columnNumber) const
 Gets the value of the specified column as a SByte.
 
Int16 GetInt16 (SQLUSMALLINT columnNumber) const
 Gets the value of the specified column as an Int16.
 
UInt16 GetUInt16 (SQLUSMALLINT columnNumber) const
 Gets the value of the specified column as an UInt16.
 
Int32 GetInt32 (SQLUSMALLINT columnNumber) const
 Gets the value of the specified column as an Int32.
 
UInt32 GetUInt32 (SQLUSMALLINT columnNumber) const
 Gets the value of the specified column as an UInt32.
 
Int64 GetInt64 (SQLUSMALLINT columnNumber) const
 Gets the value of the specified column as an Int64.
 
UInt64 GetUInt64 (SQLUSMALLINT columnNumber) const
 Gets the value of the specified column as an UInt64.
 
Numeric GetNumeric (SQLUSMALLINT columnNumber) const
 Gets the value of the specified column as a Numeric.
 
Numeric GetDecimal (SQLUSMALLINT columnNumber) const
 Gets the value of the specified column as a Numeric.
 
float GetSingle (SQLUSMALLINT columnNumber) const
 Gets the value of the specified column as a float.
 
double GetDouble (SQLUSMALLINT columnNumber) const
 Gets the value of the specified column as a double.
 
Currency GetCurrency (SQLUSMALLINT columnNumber) const
 Gets the value of the specified column as a Currency.
 
DateTime GetDateTime (SQLUSMALLINT columnNumber) const
 Gets the value of the specified column as a DateTime.
 
TimeStampOffset GetTimeStampOffset (SQLUSMALLINT columnNumber) const
 Gets the value of the specified column as a TimestampOffset.
 
Date GetDate (SQLUSMALLINT columnNumber) const
 Gets the value of the specified column as a Date.
 
Time GetTime (SQLUSMALLINT columnNumber) const
 Gets the value of the specified column as a Time.
 
TimeSpan GetTimeSpan (SQLUSMALLINT columnNumber) const
 Gets the value of the specified column as a TimeSpan.
 
WideString GetWideString (SQLUSMALLINT columnNumber) const
 Gets the value of the specified column as a WideString.
 
AnsiString GetAnsiString (SQLUSMALLINT columnNumber) const
 Gets the value of the specified column as an AnsiString.
 
Binary GetBinary (SQLUSMALLINT columnNumber) const
 Gets the value of the specified column as a std::vector<Byte>.
 
Guid GetGuid (SQLUSMALLINT columnNumber) const
 Gets the value of the specified column as a Guid.
 
RowVersion GetRowVersion (SQLUSMALLINT columnNumber) const
 Gets the value of the specified column as a RowVersion.
 

Protected Member Functions

virtual void AfterFetch ()
 
Result Fetch () const
 
Result FetchScroll (ODBC::FetchOrientation fetchOrientation, SQLLEN fetchOffset) const
 
Result BindColumn (SQLUSMALLINT columnNumber, NativeType targetType, SQLPOINTER targetValue, SQLLEN targetValueMaxLength, SQLLEN *nullIndicatorOrLength) const
 
Result BindBoolean (SQLUSMALLINT columnNumber, bool *targetAddress, SQLLEN *nullIndicatorOrActualLength=nullptr) const
 
Result BindSByte (SQLUSMALLINT columnNumber, SByte *targetAddress, SQLLEN *nullIndicatorOrActualLength=nullptr) const
 
Result BindByte (SQLUSMALLINT columnNumber, Byte *targetAddress, SQLLEN *nullIndicatorOrActualLength=nullptr) const
 
Result BindInt16 (SQLUSMALLINT columnNumber, Int16 *targetAddress, SQLLEN *nullIndicatorOrActualLength=nullptr) const
 
Result BindUInt16 (SQLUSMALLINT columnNumber, UInt16 *targetAddress, SQLLEN *nullIndicatorOrActualLength=nullptr) const
 
Result BindInt32 (SQLUSMALLINT columnNumber, Int32 *targetAddress, SQLLEN *nullIndicatorOrActualLength=nullptr) const
 
Result BindUInt32 (SQLUSMALLINT columnNumber, UInt32 *targetAddress, SQLLEN *nullIndicatorOrActualLength=nullptr) const
 
Result BindInt64 (SQLUSMALLINT columnNumber, Int64 *targetAddress, SQLLEN *nullIndicatorOrActualLength=nullptr) const
 
Result BindUInt64 (SQLUSMALLINT columnNumber, UInt64 *targetAddress, SQLLEN *nullIndicatorOrActualLength=nullptr) const
 
Result BindSingle (SQLUSMALLINT columnNumber, Double *targetAddress, SQLLEN *nullIndicatorOrActualLength=nullptr) const
 
Result BindDouble (SQLUSMALLINT columnNumber, Double *targetAddress, SQLLEN *nullIndicatorOrActualLength=nullptr) const
 
Result BindString (SQLUSMALLINT columnNumber, SQLPOINTER targetAddress, SQLLEN targetAddressMaxLength, SQLLEN *nullIndicatorOrActualLength) const
 
Result BindGuid (SQLUSMALLINT columnNumber, Guid *targetAddress, SQLLEN *nullIndicatorOrActualLength=nullptr) const
 
Result BindTimeStamp (SQLUSMALLINT columnNumber, ODBC::TimeStamp *targetAddress, SQLLEN *nullIndicatorOrActualLength=nullptr) const
 
template<size_t maxSize>
Result BindBinary (SQLUSMALLINT columnNumber, FixedDBBinary< maxSize > *targetAddress) const
 
template<size_t maxSize>
Result BindWideString (SQLUSMALLINT columnNumber, FixedDBWideString< maxSize > *targetAddress) const
 
template<size_t maxSize>
Result BindAnsiString (SQLUSMALLINT columnNumber, FixedDBAnsiString< maxSize > *targetAddress) const
 

Private Attributes

const Statementstatement_
 

Detailed Description

The DataReader class implements an API that is similar to .Net data readers.

It is often used as a base class for classes that contains variables that are bound to the statement.

Constructor & Destructor Documentation

◆ DataReader() [1/3]

Harlinn::ODBC::DataReader::DataReader ( const Statement * statement)
inlineconstexprnoexcept

◆ DataReader() [2/3]

Harlinn::ODBC::DataReader::DataReader ( const DataReader & other)
delete

◆ DataReader() [3/3]

Harlinn::ODBC::DataReader::DataReader ( DataReader && other)
delete

Member Function Documentation

◆ AfterFetch()

virtual void Harlinn::ODBC::DataReader::AfterFetch ( )
inlineprotectedvirtual

◆ BindAnsiString()

template<size_t maxSize>
Result Harlinn::ODBC::DataReader::BindAnsiString ( SQLUSMALLINT columnNumber,
FixedDBAnsiString< maxSize > * targetAddress ) const
inlineprotected

◆ BindBinary()

template<size_t maxSize>
Result Harlinn::ODBC::DataReader::BindBinary ( SQLUSMALLINT columnNumber,
FixedDBBinary< maxSize > * targetAddress ) const
inlineprotected

◆ BindBoolean()

Result Harlinn::ODBC::DataReader::BindBoolean ( SQLUSMALLINT columnNumber,
bool * targetAddress,
SQLLEN * nullIndicatorOrActualLength = nullptr ) const
inlineprotected

◆ BindByte()

Result Harlinn::ODBC::DataReader::BindByte ( SQLUSMALLINT columnNumber,
Byte * targetAddress,
SQLLEN * nullIndicatorOrActualLength = nullptr ) const
inlineprotected

◆ BindColumn()

Result Harlinn::ODBC::DataReader::BindColumn ( SQLUSMALLINT columnNumber,
NativeType targetType,
SQLPOINTER targetValue,
SQLLEN targetValueMaxLength,
SQLLEN * nullIndicatorOrLength ) const
inlineprotected

◆ BindDouble()

Result Harlinn::ODBC::DataReader::BindDouble ( SQLUSMALLINT columnNumber,
Double * targetAddress,
SQLLEN * nullIndicatorOrActualLength = nullptr ) const
inlineprotected

◆ BindGuid()

Result Harlinn::ODBC::DataReader::BindGuid ( SQLUSMALLINT columnNumber,
Guid * targetAddress,
SQLLEN * nullIndicatorOrActualLength = nullptr ) const
inlineprotected

◆ BindInt16()

Result Harlinn::ODBC::DataReader::BindInt16 ( SQLUSMALLINT columnNumber,
Int16 * targetAddress,
SQLLEN * nullIndicatorOrActualLength = nullptr ) const
inlineprotected

◆ BindInt32()

Result Harlinn::ODBC::DataReader::BindInt32 ( SQLUSMALLINT columnNumber,
Int32 * targetAddress,
SQLLEN * nullIndicatorOrActualLength = nullptr ) const
inlineprotected

◆ BindInt64()

Result Harlinn::ODBC::DataReader::BindInt64 ( SQLUSMALLINT columnNumber,
Int64 * targetAddress,
SQLLEN * nullIndicatorOrActualLength = nullptr ) const
inlineprotected

◆ BindSByte()

Result Harlinn::ODBC::DataReader::BindSByte ( SQLUSMALLINT columnNumber,
SByte * targetAddress,
SQLLEN * nullIndicatorOrActualLength = nullptr ) const
inlineprotected

◆ BindSingle()

Result Harlinn::ODBC::DataReader::BindSingle ( SQLUSMALLINT columnNumber,
Double * targetAddress,
SQLLEN * nullIndicatorOrActualLength = nullptr ) const
inlineprotected

◆ BindString()

Result Harlinn::ODBC::DataReader::BindString ( SQLUSMALLINT columnNumber,
SQLPOINTER targetAddress,
SQLLEN targetAddressMaxLength,
SQLLEN * nullIndicatorOrActualLength ) const
inlineprotected

◆ BindTimeStamp()

Result Harlinn::ODBC::DataReader::BindTimeStamp ( SQLUSMALLINT columnNumber,
ODBC::TimeStamp * targetAddress,
SQLLEN * nullIndicatorOrActualLength = nullptr ) const
inlineprotected

◆ BindUInt16()

Result Harlinn::ODBC::DataReader::BindUInt16 ( SQLUSMALLINT columnNumber,
UInt16 * targetAddress,
SQLLEN * nullIndicatorOrActualLength = nullptr ) const
inlineprotected

◆ BindUInt32()

Result Harlinn::ODBC::DataReader::BindUInt32 ( SQLUSMALLINT columnNumber,
UInt32 * targetAddress,
SQLLEN * nullIndicatorOrActualLength = nullptr ) const
inlineprotected

◆ BindUInt64()

Result Harlinn::ODBC::DataReader::BindUInt64 ( SQLUSMALLINT columnNumber,
UInt64 * targetAddress,
SQLLEN * nullIndicatorOrActualLength = nullptr ) const
inlineprotected

◆ BindWideString()

template<size_t maxSize>
Result Harlinn::ODBC::DataReader::BindWideString ( SQLUSMALLINT columnNumber,
FixedDBWideString< maxSize > * targetAddress ) const
inlineprotected

◆ Fetch()

Result Harlinn::ODBC::DataReader::Fetch ( ) const
inlineprotected

◆ FetchScroll()

Result Harlinn::ODBC::DataReader::FetchScroll ( ODBC::FetchOrientation fetchOrientation,
SQLLEN fetchOffset ) const
inlineprotected

◆ GetAnsiString()

AnsiString Harlinn::ODBC::DataReader::GetAnsiString ( SQLUSMALLINT columnNumber) const
inlinenodiscard

Gets the value of the specified column as an AnsiString.

Parameters
columnNumberThe one-based column ordinal.
Returns
The value of the column.

The implementation throws an exception if the column value is NULL.

◆ GetBinary()

Binary Harlinn::ODBC::DataReader::GetBinary ( SQLUSMALLINT columnNumber) const
inlinenodiscard

Gets the value of the specified column as a std::vector<Byte>.

Parameters
columnNumberThe one-based column ordinal.
Returns
The value of the column.

The implementation throws an exception if the column value is NULL.

◆ GetBoolean()

bool Harlinn::ODBC::DataReader::GetBoolean ( SQLUSMALLINT columnNumber) const
inlinenodiscard

Gets the value of the specified column as a bool.

Parameters
columnNumberThe one-based column ordinal.
Returns
The value of the column.

The implementation throws an exception if the column value is NULL.

◆ GetByte()

Byte Harlinn::ODBC::DataReader::GetByte ( SQLUSMALLINT columnNumber) const
inlinenodiscard

Gets the value of the specified column as a Byte.

Parameters
columnNumberThe one-based column ordinal.
Returns
The value of the column.

The implementation throws an exception if the column value is NULL.

◆ GetCurrency()

Currency Harlinn::ODBC::DataReader::GetCurrency ( SQLUSMALLINT columnNumber) const
inlinenodiscard

Gets the value of the specified column as a Currency.

Parameters
columnNumberThe one-based column ordinal.
Returns
The value of the column.

The implementation throws an exception if the column value is NULL.

◆ GetData()

Result Harlinn::ODBC::DataReader::GetData ( SQLUSMALLINT columnOrParameterNumber,
NativeType targetValueDataType,
SQLPOINTER targetValue,
SQLLEN targetValueMaxLength,
SQLLEN * nullIndicatorOrTargetValueActualLength ) const
inline

◆ GetDate()

Date Harlinn::ODBC::DataReader::GetDate ( SQLUSMALLINT columnNumber) const
inlinenodiscard

Gets the value of the specified column as a Date.

Parameters
columnNumberThe one-based column ordinal.
Returns
The value of the column.

The implementation throws an exception if the column value is NULL.

◆ GetDateTime()

DateTime Harlinn::ODBC::DataReader::GetDateTime ( SQLUSMALLINT columnNumber) const
inlinenodiscard

Gets the value of the specified column as a DateTime.

Parameters
columnNumberThe one-based column ordinal.
Returns
The value of the column.

The implementation throws an exception if the column value is NULL.

◆ GetDBAnsiString()

DBAnsiString Harlinn::ODBC::DataReader::GetDBAnsiString ( SQLUSMALLINT columnNumber) const
inlinenodiscard

Gets the value of the specified column as a DBAnsiString.

Parameters
columnNumberThe one-based column ordinal.
Returns
The value of the column.

◆ GetDBBinary()

DBBinary Harlinn::ODBC::DataReader::GetDBBinary ( SQLUSMALLINT columnNumber) const
inlinenodiscard

Gets the value of the specified column as a DBBinary.

Parameters
columnNumberThe one-based column ordinal.
Returns
The value of the column.

◆ GetDBBoolean()

DBBoolean Harlinn::ODBC::DataReader::GetDBBoolean ( SQLUSMALLINT columnNumber) const
inlinenodiscard

Gets the value of the specified column as a DBBoolean.

Parameters
columnNumberThe one-based column ordinal.
Returns
The value of the column.

◆ GetDBByte()

DBByte Harlinn::ODBC::DataReader::GetDBByte ( SQLUSMALLINT columnNumber) const
inlinenodiscard

Gets the value of the specified column as a DBByte.

Parameters
columnNumberThe one-based column ordinal.
Returns
The value of the column.

◆ GetDBCurrency()

DBCurrency Harlinn::ODBC::DataReader::GetDBCurrency ( SQLUSMALLINT columnNumber) const
inlinenodiscard

Gets the value of the specified column as a DBCurrency.

Parameters
columnNumberThe one-based column ordinal.
Returns
The value of the column.

◆ GetDBDate()

DBDate Harlinn::ODBC::DataReader::GetDBDate ( SQLUSMALLINT columnNumber) const
inlinenodiscard

Gets the value of the specified column as a DBDate.

Parameters
columnNumberThe one-based column ordinal.
Returns
The value of the column.

◆ GetDBDateTime()

DBDateTime Harlinn::ODBC::DataReader::GetDBDateTime ( SQLUSMALLINT columnNumber) const
inlinenodiscard

Gets the value of the specified column as a DBDateTime.

Parameters
columnNumberThe one-based column ordinal.
Returns
The value of the column.

◆ GetDBDecimal()

DBDecimal Harlinn::ODBC::DataReader::GetDBDecimal ( SQLUSMALLINT columnNumber) const
inlinenodiscard

Gets the value of the specified column as a DBDecimal.

Parameters
columnNumberThe one-based column ordinal.
Returns
The value of the column.

◆ GetDBDouble()

DBDouble Harlinn::ODBC::DataReader::GetDBDouble ( SQLUSMALLINT columnNumber) const
inlinenodiscard

Gets the value of the specified column as a DBDouble.

Parameters
columnNumberThe one-based column ordinal.
Returns
The value of the column.

◆ GetDBGuid()

DBGuid Harlinn::ODBC::DataReader::GetDBGuid ( SQLUSMALLINT columnNumber) const
inlinenodiscard

Gets the value of the specified column as a DBGuid.

Parameters
columnNumberThe one-based column ordinal.
Returns
The value of the column.

◆ GetDBInt16()

DBInt16 Harlinn::ODBC::DataReader::GetDBInt16 ( SQLUSMALLINT columnNumber) const
inlinenodiscard

Gets the value of the specified column as a DBInt16.

Parameters
columnNumberThe one-based column ordinal.
Returns
The value of the column.

◆ GetDBInt32()

DBInt32 Harlinn::ODBC::DataReader::GetDBInt32 ( SQLUSMALLINT columnNumber) const
inlinenodiscard

Gets the value of the specified column as a DBInt32.

Parameters
columnNumberThe one-based column ordinal.
Returns
The value of the column.

◆ GetDBInt64()

DBInt64 Harlinn::ODBC::DataReader::GetDBInt64 ( SQLUSMALLINT columnNumber) const
inlinenodiscard

Gets the value of the specified column as a DBInt64.

Parameters
columnNumberThe one-based column ordinal.
Returns
The value of the column.

◆ GetDBNumeric()

DBNumeric Harlinn::ODBC::DataReader::GetDBNumeric ( SQLUSMALLINT columnNumber) const
inlinenodiscard

Gets the value of the specified column as a DBNumeric.

Parameters
columnNumberThe one-based column ordinal.
Returns
The value of the column.

◆ GetDBRowVersion()

DBRowVersion Harlinn::ODBC::DataReader::GetDBRowVersion ( SQLUSMALLINT columnNumber) const
inlinenodiscard

Gets the value of the specified column as a DBRowVersion.

Parameters
columnNumberThe one-based column ordinal.
Returns
The value of the column.

◆ GetDBSByte()

DBSByte Harlinn::ODBC::DataReader::GetDBSByte ( SQLUSMALLINT columnNumber) const
inlinenodiscard

Gets the value of the specified column as a DBSByte.

Parameters
columnNumberThe one-based column ordinal.
Returns
The value of the column.

◆ GetDBSingle()

DBSingle Harlinn::ODBC::DataReader::GetDBSingle ( SQLUSMALLINT columnNumber) const
inlinenodiscard

Gets the value of the specified column as a DBSingle.

Parameters
columnNumberThe one-based column ordinal.
Returns
The value of the column.

◆ GetDBTime()

DBTime Harlinn::ODBC::DataReader::GetDBTime ( SQLUSMALLINT columnNumber) const
inlinenodiscard

Gets the value of the specified column as a DBTime.

Parameters
columnNumberThe one-based column ordinal.
Returns
The value of the column.

◆ GetDBTimeSpan()

DBTimeSpan Harlinn::ODBC::DataReader::GetDBTimeSpan ( SQLUSMALLINT columnNumber) const
inlinenodiscard

Gets the value of the specified column as a DBTimeSpan.

Parameters
columnNumberThe one-based column ordinal.
Returns
The value of the column.

◆ GetDBTimeStampOffset()

DBTimeStampOffset Harlinn::ODBC::DataReader::GetDBTimeStampOffset ( SQLUSMALLINT columnNumber) const
inlinenodiscard

Gets the value of the specified column as a DBTimestampOffset.

Parameters
columnNumberThe one-based column ordinal.
Returns
The value of the column.

◆ GetDBUInt16()

DBUInt16 Harlinn::ODBC::DataReader::GetDBUInt16 ( SQLUSMALLINT columnNumber) const
inlinenodiscard

Gets the value of the specified column as a DBUInt16.

Parameters
columnNumberThe one-based column ordinal.
Returns
The value of the column.

◆ GetDBUInt32()

DBUInt32 Harlinn::ODBC::DataReader::GetDBUInt32 ( SQLUSMALLINT columnNumber) const
inlinenodiscard

Gets the value of the specified column as a DBUInt32.

Parameters
columnNumberThe one-based column ordinal.
Returns
The value of the column.

◆ GetDBUInt64()

DBUInt64 Harlinn::ODBC::DataReader::GetDBUInt64 ( SQLUSMALLINT columnNumber) const
inlinenodiscard

Gets the value of the specified column as a DBUInt64.

Parameters
columnNumberThe one-based column ordinal.
Returns
The value of the column.

◆ GetDBWideString()

DBWideString Harlinn::ODBC::DataReader::GetDBWideString ( SQLUSMALLINT columnNumber) const
inlinenodiscard

Gets the value of the specified column as a DBWideString.

Parameters
columnNumberThe one-based column ordinal.
Returns
The value of the column.

◆ GetDecimal()

Numeric Harlinn::ODBC::DataReader::GetDecimal ( SQLUSMALLINT columnNumber) const
inlinenodiscard

Gets the value of the specified column as a Numeric.

Parameters
columnNumberThe one-based column ordinal.
Returns
The value of the column.

The implementation throws an exception if the column value is NULL.

◆ GetDouble()

double Harlinn::ODBC::DataReader::GetDouble ( SQLUSMALLINT columnNumber) const
inlinenodiscard

Gets the value of the specified column as a double.

Parameters
columnNumberThe one-based column ordinal.
Returns
The value of the column.

The implementation throws an exception if the column value is NULL.

◆ GetGuid()

Guid Harlinn::ODBC::DataReader::GetGuid ( SQLUSMALLINT columnNumber) const
inlinenodiscard

Gets the value of the specified column as a Guid.

Parameters
columnNumberThe one-based column ordinal.
Returns
The value of the column.

The implementation throws an exception if the column value is NULL.

◆ GetInt16()

Int16 Harlinn::ODBC::DataReader::GetInt16 ( SQLUSMALLINT columnNumber) const
inlinenodiscard

Gets the value of the specified column as an Int16.

Parameters
columnNumberThe one-based column ordinal.
Returns
The value of the column.

The implementation throws an exception if the column value is NULL.

◆ GetInt32()

Int32 Harlinn::ODBC::DataReader::GetInt32 ( SQLUSMALLINT columnNumber) const
inlinenodiscard

Gets the value of the specified column as an Int32.

Parameters
columnNumberThe one-based column ordinal.
Returns
The value of the column.

The implementation throws an exception if the column value is NULL.

◆ GetInt64()

Int64 Harlinn::ODBC::DataReader::GetInt64 ( SQLUSMALLINT columnNumber) const
inlinenodiscard

Gets the value of the specified column as an Int64.

Parameters
columnNumberThe one-based column ordinal.
Returns
The value of the column.

The implementation throws an exception if the column value is NULL.

◆ GetNumeric()

Numeric Harlinn::ODBC::DataReader::GetNumeric ( SQLUSMALLINT columnNumber) const
inlinenodiscard

Gets the value of the specified column as a Numeric.

Parameters
columnNumberThe one-based column ordinal.
Returns
The value of the column.

The implementation throws an exception if the column value is NULL.

◆ GetRowVersion()

RowVersion Harlinn::ODBC::DataReader::GetRowVersion ( SQLUSMALLINT columnNumber) const
inlinenodiscard

Gets the value of the specified column as a RowVersion.

Parameters
columnNumberThe one-based column ordinal.
Returns
The value of the column.

The implementation throws an exception if the column value is NULL.

◆ GetSByte()

SByte Harlinn::ODBC::DataReader::GetSByte ( SQLUSMALLINT columnNumber) const
inlinenodiscard

Gets the value of the specified column as a SByte.

Parameters
columnNumberThe one-based column ordinal.
Returns
The value of the column.

The implementation throws an exception if the column value is NULL.

◆ GetSingle()

float Harlinn::ODBC::DataReader::GetSingle ( SQLUSMALLINT columnNumber) const
inlinenodiscard

Gets the value of the specified column as a float.

Parameters
columnNumberThe one-based column ordinal.
Returns
The value of the column.

The implementation throws an exception if the column value is NULL.

◆ GetTime()

Time Harlinn::ODBC::DataReader::GetTime ( SQLUSMALLINT columnNumber) const
inlinenodiscard

Gets the value of the specified column as a Time.

Parameters
columnNumberThe one-based column ordinal.
Returns
The value of the column.

The implementation throws an exception if the column value is NULL.

◆ GetTimeSpan()

TimeSpan Harlinn::ODBC::DataReader::GetTimeSpan ( SQLUSMALLINT columnNumber) const
inlinenodiscard

Gets the value of the specified column as a TimeSpan.

Parameters
columnNumberThe one-based column ordinal.
Returns
The value of the column.

The implementation throws an exception if the column value is NULL.

◆ GetTimeStampOffset()

TimeStampOffset Harlinn::ODBC::DataReader::GetTimeStampOffset ( SQLUSMALLINT columnNumber) const
inlinenodiscard

Gets the value of the specified column as a TimestampOffset.

Parameters
columnNumberThe one-based column ordinal.
Returns
The value of the column.

The implementation throws an exception if the column value is NULL.

◆ GetUInt16()

UInt16 Harlinn::ODBC::DataReader::GetUInt16 ( SQLUSMALLINT columnNumber) const
inlinenodiscard

Gets the value of the specified column as an UInt16.

Parameters
columnNumberThe one-based column ordinal.
Returns
The value of the column.

The implementation throws an exception if the column value is NULL.

◆ GetUInt32()

UInt32 Harlinn::ODBC::DataReader::GetUInt32 ( SQLUSMALLINT columnNumber) const
inlinenodiscard

Gets the value of the specified column as an UInt32.

Parameters
columnNumberThe one-based column ordinal.
Returns
The value of the column.

The implementation throws an exception if the column value is NULL.

◆ GetUInt64()

UInt64 Harlinn::ODBC::DataReader::GetUInt64 ( SQLUSMALLINT columnNumber) const
inlinenodiscard

Gets the value of the specified column as an UInt64.

Parameters
columnNumberThe one-based column ordinal.
Returns
The value of the column.

The implementation throws an exception if the column value is NULL.

◆ GetWideString()

WideString Harlinn::ODBC::DataReader::GetWideString ( SQLUSMALLINT columnNumber) const
inlinenodiscard

Gets the value of the specified column as a WideString.

Parameters
columnNumberThe one-based column ordinal.
Returns
The value of the column.

The implementation throws an exception if the column value is NULL.

◆ Handle()

SQLHANDLE Harlinn::ODBC::DataReader::Handle ( ) const
inlinenodiscardnoexcept

◆ operator=() [1/2]

DataReader & Harlinn::ODBC::DataReader::operator= ( const DataReader & other)
delete

◆ operator=() [2/2]

DataReader & Harlinn::ODBC::DataReader::operator= ( DataReader && other)
delete

◆ Read()

bool Harlinn::ODBC::DataReader::Read ( )
inline

◆ Statement()

const Statement & Harlinn::ODBC::DataReader::Statement ( ) const
inline

Member Data Documentation

◆ statement_

const Statement* Harlinn::ODBC::DataReader::statement_
private

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