libdballe 9.14
dballe::sql::postgresql::Params< ARGS > Struct Template Reference

Argument list for PQexecParams built at compile time. More...

#include <postgresql.h>

Public Member Functions

 Params (const ARGS &... args)
 Params (const Params &)=delete
 Params (const Params &&)=delete
Params & operator= (const Params &)=delete
Params & operator= (const Params &&)=delete

Public Attributes

const char * args [sizeof...(ARGS)]
int lengths [sizeof...(ARGS)]
int formats [sizeof...(ARGS)]
void * local [sizeof...(ARGS)]

Static Public Attributes

static const int count = sizeof...(ARGS)

Protected Member Functions

void _add (unsigned pos)
 Terminating condition for compile-time arg expansion.
template<typename... REST>
void _add (unsigned pos, std::nullptr_t arg, const REST &... rest)
 Fill in the argument structures.
template<typename... REST>
void _add (unsigned pos, int32_t arg, const REST &... rest)
 Fill in the argument structures.
template<typename... REST>
void _add (unsigned pos, uint64_t arg, const REST &... rest)
 Fill in the argument structures.
template<typename... REST>
void _add (unsigned pos, const char *arg, const REST &... rest)
 Fill in the argument structures.
template<typename... REST>
void _add (unsigned pos, const std::string &arg, const REST &... rest)
 Fill in the argument structures.
template<typename... REST>
void _add (unsigned pos, const std::vector< uint8_t > &arg, const REST &... rest)
 Fill in the argument structures.
template<typename... REST>
void _add (unsigned pos, const Datetime &arg, const REST &... rest)
 Fill in the argument structures.

Detailed Description

template<typename... ARGS>
struct dballe::sql::postgresql::Params< ARGS >

Argument list for PQexecParams built at compile time.


The documentation for this struct was generated from the following file: