Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

pqxx Namespace Reference


Compounds

class  broken_connection
 Exception class for lost backend connection. More...

class  CachedResult
class  const_iterator
 NOT IMPLEMENTED YET. More...

class  Connection
 Connection class; represents a connection to a database. More...

class  in_doubt_error
 "Help, I don't know whether transaction was committed successfully!" More...

class  FieldConverter
class  const_iterator
 Iterator for rows (tuples) in a query result set. More...

class  Cursor
 SQL cursor class. More...

class  Field
 Reference to a field in a result set. More...

class  NonTransaction
 Simple "Transaction" class offering no transactional integrity. More...

struct  Noticer
 Base class for user-definable error/warning message processor. More...

struct  unknown_position
 Exception thrown when cursor position is requested, but is unknown. More...

class  Result
 Query or command result set. More...

class  Tuple
 Reference to one row in a Result. More...

class  RobustTransaction
 Slower, better fortified version of Transaction. More...

class  TableReader
 Efficiently pull data directly out of a table. More...

class  TableStream
 Base class for streaming data to/from database tables. More...

class  TableWriter
 Efficiently write data directly to a database table. More...

class  Transaction
 Back-end transaction. More...

class  TransactionItf
 Interface definition (and common code) for "transaction" classes. More...

class  Transactor
 Wrapper for transactions that automatically restarts them on failure. More...

class  Trigger
 "Observer" base class for trigger notifications. More...

class  Unique

Typedefs

typedef void(* NoticeProcessor )(void *arg, const char *msg)
typedef long Result_size_type
typedef int Tuple_size_type

Functions

template<> PGSTD::string Classname (const TransactionItf *)
 Human-readable class names for use by Unique template.

Result::const_iterator operator+ (Result::const_iterator::difference_type o, Result::const_iterator i)
template<> PGSTD::string Classname (const TableStream *)
template<typename T> const char * FmtString (T)
template<> const char * FmtString (int)
template<> const char * FmtString (long)
template<> const char * FmtString (unsigned)
template<> const char * FmtString (float)
template<> const char * FmtString (double)
template<> const char * FmtString (char)
template<typename T> PGSTD::string ToString (const T &Obj)
 Convert object of built-in type to string.

template<> PGSTD::string ToString (const PGSTD::string &Obj)
template<> PGSTD::string ToString (const char *const &Obj)
template<> PGSTD::string ToString (const bool &Obj)
template<> PGSTD::string ToString (const short &Obj)
template<> PGSTD::string ToString (const unsigned short &Obj)
template<typename T> void FromString (const char Str[], T &Obj)
template<> void FromString (const char Str[], PGSTD::string &Obj)
template<> void FromString (const char Str[], const char *&Obj)
template<> void FromString (const char Str[], bool &Obj)
template<typename T> PGSTD::string Quote (const T &Obj, bool EmptyIsNull=false)
template<> PGSTD::string Quote (const PGSTD::string &Obj, bool EmptyIsNull)
 std::string version, on which the other versions are built

template<> PGSTD::string Quote (const char *const &Obj, bool EmptyIsNull)
template<typename T> PGSTD::string Classname (const T *)
 Return user-readable name for a class. Specialize this whereever used.


Typedef Documentation

typedef void(* pqxx::NoticeProcessor)(void *arg, const char *msg)
 

Deprecated:
Notice processor callback function. Use Noticer.

typedef long pqxx::Result_size_type
 

typedef int pqxx::Tuple_size_type
 


Function Documentation

template<typename T>
PGSTD::string Classname const T *   
 

Return user-readable name for a class. Specialize this whereever used.

template<>
PGSTD::string Classname const TableStream  
 

template<>
PGSTD::string Classname const TransactionItf  
 

Human-readable class names for use by Unique template.

template<>
const char* FmtString char   
 

template<>
const char* FmtString double   
 

template<>
const char* FmtString float   
 

template<>
const char * pqxx::FmtString unsigned    char
 

template<>
const char * pqxx::FmtString long    double
 

template<>
const char* FmtString int   
 

template<typename T>
const char* FmtString  
 

C-style format strings for various built-in types. Only allowed for certain types, for which this function is explicitly specialized below.

template<>
void FromString const char    Str[],
bool &    Obj
 

template<>
void FromString const char    Str[],
const char *&    Obj
 

template<>
void FromString const char    Str[],
PGSTD::string &    Obj
 

template<typename T>
void FromString const char    Str[],
T &    Obj
 

Result::const_iterator operator+ Result::const_iterator::difference_type    o,
Result::const_iterator    i
 

template<>
PGSTD::string Quote const char *const &    Obj,
bool    EmptyIsNull
 

In the special case of const char *, the null pointer is represented as the null value.

template<>
PGSTD::string Quote const PGSTD::string &    Obj,
bool    EmptyIsNull
 

std::string version, on which the other versions are built

template<typename T>
PGSTD::string pqxx::Quote const T &    Obj,
bool    EmptyIsNull = false
 

Generate SQL-quoted version of string. If EmptyIsNull is set, an empty string will generate the null value rather than an empty string.

template<>
PGSTD::string ToString const unsigned short &    Obj
 

template<>
PGSTD::string ToString const short &    Obj
 

template<>
PGSTD::string ToString const bool &    Obj
 

template<>
PGSTD::string ToString const char *const &    Obj
 

template<>
PGSTD::string ToString const PGSTD::string &    Obj
 

template<typename T>
PGSTD::string ToString const T &    Obj
 

Convert object of built-in type to string.


Generated on Fri Feb 28 19:23:33 2003 for libpqxx by doxygen1.3-rc3