#include <RowDTOAdapter.hpp>
|
| RowDTOAdapter (const pqxx::row &row) |
|
template<typename T > |
T | get (const std::string &field_name) const |
| get the value of a field with the specified name
|
|
◆ RowDTOAdapter()
RowDTOAdapter::RowDTOAdapter |
( |
const pqxx::row & | row | ) |
|
|
inline |
◆ get()
template<typename T >
T RowDTOAdapter::get |
( |
const std::string & | field_name | ) |
const |
|
inline |
get the value of a field with the specified name
- Parameters
-
field_name | the name of the field in the database row |
- Returns
- returns the value in the database field. If the name is not found it returns an empty object of the expected type
The documentation for this class was generated from the following file: