#include <vallist.h>
Collaboration diagram for mysqlpp::equal_list_ba< Seq1, Seq2, Manip >:
Public Member Functions | |
equal_list_ba (const Seq1 &s1, const Seq2 &s2, const char *d, const char *e, Manip m) | |
Create object. | |
Public Attributes | |
const Seq1 * | list1 |
the list of objects on the left-hand side of the equals sign | |
const Seq2 * | list2 |
the list of objects on the right-hand side of the equals sign | |
const char * | delem |
delimiter to use between each pair of elements | |
const char * | equl |
"equal" sign to use between each item in each equal pair; doesn't have to actually be " = " | |
Manip | manip |
manipulator to use when inserting the equal_list into a C++ stream |
The WHERE clause in a SQL SELECT statment is an example of an equals clause.
Imagine an object of this type contains the lists (a, b) (c, d), and that the object's delimiter and equals symbols are set to ", " and " = " respectively. When you insert that object into a C++ stream, you would get "a = c, b = d".
This class is never instantiated by hand. The equal_list() functions build instances of this structure template to do their work. MySQL++'s SSQLS mechanism calls those functions when building SQL queries; you can call them yourself to do similar work. The "Harnessing SSQLS Internals" section of the user manual has some examples of this.
|
Create object.
|