droplet 1.1.0
A multipurpose Discord bot with the hacker in mind
Loading...
Searching...
No Matches
RowDTOAdapter Class Reference

#include <RowDTOAdapter.hpp>

Collaboration diagram for RowDTOAdapter:

Public Member Functions

 RowDTOAdapter (const pqxx::row &row)
 
template<typename T >
get (const std::string &field_name) const
 get the value of a field with the specified name
 

Constructor & Destructor Documentation

◆ RowDTOAdapter()

RowDTOAdapter::RowDTOAdapter ( const pqxx::row & row)
inline

Member Function Documentation

◆ 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_namethe 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: