#include <insert_query.h>
Inheritance diagram for pqxxobject::insert_query:
Public Types | |
typedef std::pair< std::string, std::string > | field_value |
Public Member Functions | |
insert_query () | |
The constructor. | |
insert_query (const std::string &table) | |
The constructor. | |
insert_query (const insert_query &rhs) | |
The copy constructor. | |
virtual | ~insert_query () |
The destructor. | |
template<typename T, template< typename > class F> void | add (F< T > &field) |
Add a field to the query. | |
void | remove (const field_base &field) |
Remove a field from the query. | |
std::string | str () |
Get the query as a string. | |
Private Attributes | |
std::string | table_name |
std::list< field_value > | field_list |
Convenience class to generate a database INSERT query string.
Definition at line 59 of file insert_query.h.
|
Definition at line 77 of file insert_query.h. |
|
The constructor.
Definition at line 43 of file insert_query.cc. |
|
The constructor.
Definition at line 50 of file insert_query.cc. |
|
The copy constructor.
Definition at line 57 of file insert_query.cc. |
|
The destructor.
Definition at line 64 of file insert_query.cc. |
|
Add a field to the query.
Definition at line 84 of file insert_query.h. References pqxxobject::query_helper< T, F >::apply(), field_list, and remove(). |
|
Remove a field from the query.
Definition at line 69 of file insert_query.cc. References field_list, and pqxxobject::field_base::get_column_name(). Referenced by add(). |
|
Get the query as a string.
Implements pqxxobject::query. Definition at line 82 of file insert_query.cc. References field_list, and table_name. Referenced by pqxxobject::operator<<(). |
|
Definition at line 105 of file insert_query.h. |
|
Definition at line 104 of file insert_query.h. Referenced by str(). |