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

pqxx Namespace Reference


Compounds

class  basic_ilostream
 Input stream that gets its data from a large object. More...

class  basic_lostream
 Stream that reads and writes a large object. More...

class  basic_olostream
 Output stream that writes data back to a large object. More...

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

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

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

class  ConnectionItf
 ConnectionItf abstract base 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  LargeObject
 Identity of a large object.
Warning:
Experimental--can and will change soon.
More...


class  largeobject_streambuf
 Streambuf to use large objects in standard I/O streams
Warning:
Experimental.
More...


class  LargeObjectAccess
 Accessor for large object's contents.
Warning:
Still experimental!
More...


class  LazyConnection
 Lazy connection class; represents a deferred connection to a database. 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 basic_ilostream< char > ilostream
typedef basic_olostream< char > olostream
typedef basic_lostream< char > lostream
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 (short)
template<> const char * FmtString (unsigned short)
template<> const char * FmtString (int)
template<> const char * FmtString (long)
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 (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<int LEN> PGSTD::string Quote (const char(&Obj)[LEN], bool EmptyIsNull=false)
 Specialization for string constants.

template<typename T> PGSTD::string Classname (const T *)
 Return user-readable name for a class. Specialize this whereever used.


Typedef Documentation

typedef basic_ilostream<char> pqxx::ilostream
 

typedef basic_lostream<char> pqxx::lostream
 

typedef basic_olostream<char> pqxx::olostream
 

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 long    double
 

template<>
const char* FmtString int   
 

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

template<>
const char* FmtString short   
 

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<int LEN>
PGSTD::string Quote const char &    Obj[LEN],
bool    EmptyIsNull = false
 

Specialization for string constants.

This specialization is a little complicated, because string constants are of the type char[], not of type const char * as one might expect. Note that the size of the array is part of the type, for which reason we need it in our template here.

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 char *const &    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 Thu Mar 27 19:34:40 2003 for libpqxx by doxygen1.3-rc3