Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members

pqxxobject::query_helper< T, F > Struct Template Reference

Helper function used when constructing a query. More...

#include <query_helpers.h>

List of all members.

Public Member Functions

std::pair< std::string, std::string > apply (F< T > &field)
 Construct a pair containing the field name and value from a field value.


Detailed Description

template<typename T, template< typename > class F>
struct pqxxobject::query_helper< T, F >

Helper function used when constructing a query.

It handles quoting and formatting of datatypes into a format suitable for an SQL statement.

Definition at line 52 of file query_helpers.h.


Member Function Documentation

template<typename T, template< typename > class F>
std::pair< std::string, std::string > pqxxobject::query_helper< T, F >::apply F< T > &  field  )  [inline]
 

Construct a pair containing the field name and value from a field value.

Parameters:
field the field to use.
Returns:
a std::pair containing the field name and its value as std::string types.

Definition at line 61 of file query_helpers.h.

Referenced by pqxxobject::update_query::add(), pqxxobject::insert_query::add(), and pqxxobject::update_query::where().


The documentation for this struct was generated from the following file:
Generated on Thu Apr 1 12:53:11 2004 for pqxx-object API Reference by doxygen 1.3.5