|
nanodbc
A small C++ wrapper for the native C ODBC API
|
Reads values from columns of the current rowset. More...
Functions | |
| template<class T > | |
| void | nanodbc::result::get_ref (short column, T &result) const |
| Gets data from the given column of the current rowset. | |
| template<class T > | |
| void | nanodbc::result::get_ref (short column, T const &fallback, T &result) const |
| Gets data from the given column of the current rowset. | |
| template<class T > | |
| void | nanodbc::result::get_ref (string const &column_name, T &result) const |
| Gets data from the given column by name of the current rowset. | |
| template<class T > | |
| void | nanodbc::result::get_ref (string const &column_name, T const &fallback, T &result) const |
| Gets data from the given column by name of the current rowset. | |
| template<class T > | |
| T | nanodbc::result::get (short column) const |
| Gets data from the given column of the current rowset. | |
| template<class T > | |
| T | nanodbc::result::get (short column, T const &fallback) const |
| Gets data from the given column of the current rowset. | |
| template<class T > | |
| T | nanodbc::result::get (string const &column_name) const |
| Gets data from the given column by name of the current rowset. | |
| template<class T > | |
| T | nanodbc::result::get (string const &column_name, T const &fallback) const |
| Gets data from the given column by name of the current rowset. | |
Reads values from columns of the current rowset.
| void nanodbc::result::get_ref | ( | short | column, |
| T & | result | ||
| ) | const |
Gets data from the given column of the current rowset.
Columns are numbered from left to right and 0-indexed.
| column | position. |
| result | The column's value will be written to this parameter. |
| void nanodbc::result::get_ref | ( | short | column, |
| T const & | fallback, | ||
| T & | result | ||
| ) | const |
Gets data from the given column of the current rowset.
If the data is null, fallback is returned instead.
Columns are numbered from left to right and 0-indexed.
| column | position. |
| fallback | if value is null, return fallback instead. |
| result | The column's value will be written to this parameter. |
| void nanodbc::result::get_ref | ( | string const & | column_name, |
| T & | result | ||
| ) | const |
Gets data from the given column by name of the current rowset.
| column_name | column's name. |
| result | The column's value will be written to this parameter. |
| void nanodbc::result::get_ref | ( | string const & | column_name, |
| T const & | fallback, | ||
| T & | result | ||
| ) | const |
Gets data from the given column by name of the current rowset.
If the data is null, fallback is returned instead.
| column_name | column's name. |
| fallback | if value is null, return fallback instead. |
| result | The column's value will be written to this parameter. |
| T nanodbc::result::get | ( | short | column | ) | const |
Gets data from the given column of the current rowset.
Columns are numbered from left to right and 0-indexed.
| column | position. |
| T nanodbc::result::get | ( | short | column, |
| T const & | fallback | ||
| ) | const |
Gets data from the given column of the current rowset.
If the data is null, fallback is returned instead.
Columns are numbered from left to right and 0-indexed.
| column | position. |
| fallback | if value is null, return fallback instead. |
| T nanodbc::result::get | ( | string const & | column_name | ) | const |
Gets data from the given column by name of the current rowset.
| column_name | column's name. |
| T nanodbc::result::get | ( | string const & | column_name, |
| T const & | fallback | ||
| ) | const |
Gets data from the given column by name of the current rowset.
If the data is null, fallback is returned instead.
| column_name | column's name. |
| fallback | if value is null, return fallback instead. |