Skip to content

Commit

Permalink
Comment on purpose of query transformation
Browse files Browse the repository at this point in the history
  • Loading branch information
mloskot committed Feb 27, 2013
1 parent a4ba497 commit 02ff82e
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/core/query_transformation.h
Expand Up @@ -18,7 +18,17 @@ namespace soci
namespace details
{

class query_transformation_function : public std::unary_function<std::string const&, std::string>
// Query transformation is a mechanism that enables user to apply
// any string-to-string transformation to SQL statement just
// before it is executed.
// Transformation procedure is specified by user,
// be it a function or an arbitrary type as long as it
// defines operator() with the appropriate signature:
// unary function takes any type converible-to std::string
// and returns std::string.

class query_transformation_function
: public std::unary_function<std::string const&, std::string>
{
public:
virtual result_type operator()(argument_type a) const = 0;
Expand Down

0 comments on commit 02ff82e

Please sign in to comment.