Main Page Namespace List Class Hierarchy Compound List File List Namespace Members Compound Members File Members

# sql_query.h File Reference

Declares the base class for mysqlpp::Query, plus some utility classes to be used with it. More...

`#include "defs.h"`
`#include "sql_string.h"`
`#include "tiny_int.h"`
`#include <sstream>`
`#include <vector>`
`#include <map>`

Include dependency graph for sql_query.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

## Namespaces

namespace | mysqlpp

## Defines

#define | mysql_query_define0(RETURN, FUNC)
| Used to define many similar functions in class SQLQuery.

## Detailed Description

Declares the base class for mysqlpp::Query, plus some utility classes to be used with it.

Class SQLQuery contains a large part of the functionality of class Query, which is the only thing that derives from this class. It is separate for historical reasons only: early on, there was a dream (and some effort) to make MySQL++ database-independent. Once maintainership shifted to MySQL AB employees in 1999, though, that dream died.

The current maintainers have no wish to try and revive that dream, so at some point this class's contents will be folded into the Query class. This will probably happen in the next major release, when major ABI breakage is acceptable.

## Define Documentation

#define mysql_query_define0 | ( | RETURN,
|  | FUNC |  | ) |

Value:

    RETURN FUNC (ss a)\
        {return FUNC (parms() << a);}\
      RETURN FUNC (ss a, ss b)\
        {return FUNC (parms() << a << b);}\
      RETURN FUNC (ss a, ss b, ss c)\
        {return FUNC (parms() << a << b << c);}\
      RETURN FUNC (ss a, ss b, ss c, ss d)\
        {return FUNC (parms() << a << b << c << d);}\
      RETURN FUNC (ss a, ss b, ss c, ss d, ss e)\
        {return FUNC (parms() << a << b << c << d << e);} \
      RETURN FUNC (ss a, ss b, ss c, ss d, ss e, ss f)\
        {return FUNC (parms() << a << b << c << d << e << f);}\
      RETURN FUNC (ss a, ss b, ss c, ss d, ss e, ss f, ss g)\
        {return FUNC (parms() << a << b << c << d << e << f << g);}\
      RETURN FUNC (ss a, ss b, ss c, ss d, ss e, ss f, ss g, ss h)\
        {return FUNC (parms() << a << b << c << d << e << f << g << h);}\
      RETURN FUNC (ss a, ss b, ss c, ss d, ss e, ss f, ss g, ss h, ss i)\
        {return FUNC (parms() << a << b << c << d << e << f << g << h << i);}\
      RETURN FUNC (ss a,ss b,ss c,ss d,ss e,ss f,ss g,ss h,ss i,ss j)\
        {return FUNC (parms() <<a <<b <<c <<d <<e <<f <<g <<h <<i <<j);}\
      RETURN FUNC (ss a,ss b,ss c,ss d,ss e,ss f,ss g,ss h,ss i,ss j,ss k)\
        {return FUNC (parms() <<a <<b <<c <<d <<e <<f <<g <<h <<i <<j <<k);}\
      RETURN FUNC (ss a,ss b,ss c,ss d,ss e,ss f,ss g,ss h,ss i,ss j,ss k,\
                           ss l)\
        {return FUNC (parms() <<a <<b <<c <<d <<e <<f <<g <<h <<i <<j <<k <<l);}\

Used to define many similar functions in class SQLQuery.