Harlinn.Windows 0.1
|
#include <HODBC.h>
Public Member Functions | |
constexpr | DataReader (const Statement *statement) noexcept |
DataReader (const DataReader &other)=delete | |
DataReader (DataReader &&other)=delete | |
DataReader & | operator= (const DataReader &other)=delete |
DataReader & | operator= (DataReader &&other)=delete |
const Statement & | Statement () 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 Statement * | statement_ |
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.
|
inlineconstexprnoexcept |
|
delete |
|
delete |
|
inlineprotectedvirtual |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inlinenodiscard |
Gets the value of the specified column as an AnsiString.
columnNumber | The one-based column ordinal. |
The implementation throws an exception if the column value is NULL.
|
inlinenodiscard |
Gets the value of the specified column as a std::vector<Byte>.
columnNumber | The one-based column ordinal. |
The implementation throws an exception if the column value is NULL.
|
inlinenodiscard |
Gets the value of the specified column as a bool.
columnNumber | The one-based column ordinal. |
The implementation throws an exception if the column value is NULL.
|
inlinenodiscard |
Gets the value of the specified column as a Byte.
columnNumber | The one-based column ordinal. |
The implementation throws an exception if the column value is NULL.
|
inlinenodiscard |
Gets the value of the specified column as a Currency.
columnNumber | The one-based column ordinal. |
The implementation throws an exception if the column value is NULL.
|
inline |
|
inlinenodiscard |
Gets the value of the specified column as a Date.
columnNumber | The one-based column ordinal. |
The implementation throws an exception if the column value is NULL.
|
inlinenodiscard |
Gets the value of the specified column as a DateTime.
columnNumber | The one-based column ordinal. |
The implementation throws an exception if the column value is NULL.
|
inlinenodiscard |
Gets the value of the specified column as a DBAnsiString.
columnNumber | The one-based column ordinal. |
|
inlinenodiscard |
Gets the value of the specified column as a DBBinary.
columnNumber | The one-based column ordinal. |
|
inlinenodiscard |
Gets the value of the specified column as a DBBoolean.
columnNumber | The one-based column ordinal. |
|
inlinenodiscard |
Gets the value of the specified column as a DBByte.
columnNumber | The one-based column ordinal. |
|
inlinenodiscard |
Gets the value of the specified column as a DBCurrency.
columnNumber | The one-based column ordinal. |
|
inlinenodiscard |
Gets the value of the specified column as a DBDate.
columnNumber | The one-based column ordinal. |
|
inlinenodiscard |
Gets the value of the specified column as a DBDateTime.
columnNumber | The one-based column ordinal. |
|
inlinenodiscard |
Gets the value of the specified column as a DBDecimal.
columnNumber | The one-based column ordinal. |
|
inlinenodiscard |
Gets the value of the specified column as a DBDouble.
columnNumber | The one-based column ordinal. |
|
inlinenodiscard |
Gets the value of the specified column as a DBGuid.
columnNumber | The one-based column ordinal. |
|
inlinenodiscard |
Gets the value of the specified column as a DBInt16.
columnNumber | The one-based column ordinal. |
|
inlinenodiscard |
Gets the value of the specified column as a DBInt32.
columnNumber | The one-based column ordinal. |
|
inlinenodiscard |
Gets the value of the specified column as a DBInt64.
columnNumber | The one-based column ordinal. |
|
inlinenodiscard |
Gets the value of the specified column as a DBNumeric.
columnNumber | The one-based column ordinal. |
|
inlinenodiscard |
Gets the value of the specified column as a DBRowVersion.
columnNumber | The one-based column ordinal. |
|
inlinenodiscard |
Gets the value of the specified column as a DBSByte.
columnNumber | The one-based column ordinal. |
|
inlinenodiscard |
Gets the value of the specified column as a DBSingle.
columnNumber | The one-based column ordinal. |
|
inlinenodiscard |
Gets the value of the specified column as a DBTime.
columnNumber | The one-based column ordinal. |
|
inlinenodiscard |
Gets the value of the specified column as a DBTimeSpan.
columnNumber | The one-based column ordinal. |
|
inlinenodiscard |
Gets the value of the specified column as a DBTimestampOffset.
columnNumber | The one-based column ordinal. |
|
inlinenodiscard |
Gets the value of the specified column as a DBUInt16.
columnNumber | The one-based column ordinal. |
|
inlinenodiscard |
Gets the value of the specified column as a DBUInt32.
columnNumber | The one-based column ordinal. |
|
inlinenodiscard |
Gets the value of the specified column as a DBUInt64.
columnNumber | The one-based column ordinal. |
|
inlinenodiscard |
Gets the value of the specified column as a DBWideString.
columnNumber | The one-based column ordinal. |
|
inlinenodiscard |
Gets the value of the specified column as a Numeric.
columnNumber | The one-based column ordinal. |
The implementation throws an exception if the column value is NULL.
|
inlinenodiscard |
Gets the value of the specified column as a double.
columnNumber | The one-based column ordinal. |
The implementation throws an exception if the column value is NULL.
|
inlinenodiscard |
Gets the value of the specified column as a Guid.
columnNumber | The one-based column ordinal. |
The implementation throws an exception if the column value is NULL.
|
inlinenodiscard |
Gets the value of the specified column as an Int16.
columnNumber | The one-based column ordinal. |
The implementation throws an exception if the column value is NULL.
|
inlinenodiscard |
Gets the value of the specified column as an Int32.
columnNumber | The one-based column ordinal. |
The implementation throws an exception if the column value is NULL.
|
inlinenodiscard |
Gets the value of the specified column as an Int64.
columnNumber | The one-based column ordinal. |
The implementation throws an exception if the column value is NULL.
|
inlinenodiscard |
Gets the value of the specified column as a Numeric.
columnNumber | The one-based column ordinal. |
The implementation throws an exception if the column value is NULL.
|
inlinenodiscard |
Gets the value of the specified column as a RowVersion.
columnNumber | The one-based column ordinal. |
The implementation throws an exception if the column value is NULL.
|
inlinenodiscard |
Gets the value of the specified column as a SByte.
columnNumber | The one-based column ordinal. |
The implementation throws an exception if the column value is NULL.
|
inlinenodiscard |
Gets the value of the specified column as a float.
columnNumber | The one-based column ordinal. |
The implementation throws an exception if the column value is NULL.
|
inlinenodiscard |
Gets the value of the specified column as a Time.
columnNumber | The one-based column ordinal. |
The implementation throws an exception if the column value is NULL.
|
inlinenodiscard |
Gets the value of the specified column as a TimeSpan.
columnNumber | The one-based column ordinal. |
The implementation throws an exception if the column value is NULL.
|
inlinenodiscard |
Gets the value of the specified column as a TimestampOffset.
columnNumber | The one-based column ordinal. |
The implementation throws an exception if the column value is NULL.
|
inlinenodiscard |
Gets the value of the specified column as an UInt16.
columnNumber | The one-based column ordinal. |
The implementation throws an exception if the column value is NULL.
|
inlinenodiscard |
Gets the value of the specified column as an UInt32.
columnNumber | The one-based column ordinal. |
The implementation throws an exception if the column value is NULL.
|
inlinenodiscard |
Gets the value of the specified column as an UInt64.
columnNumber | The one-based column ordinal. |
The implementation throws an exception if the column value is NULL.
|
inlinenodiscard |
Gets the value of the specified column as a WideString.
columnNumber | The one-based column ordinal. |
The implementation throws an exception if the column value is NULL.
|
inlinenodiscardnoexcept |
|
delete |
|
delete |
|
inline |
|
inline |
|
private |