Classes | |
struct | pqxx::noticer |
Base class for user-definable error/warning message processor. More... | |
struct | pqxx::nonnoticer |
No-op message noticer; produces no output. More... | |
Functions | |
PGSTD::auto_ptr< noticer > | pqxx::connection_base::set_noticer (PGSTD::auto_ptr< noticer > N) throw () |
Set handler for postgresql errors or warning messages. | |
noticer * | pqxx::connection_base::get_noticer () const throw () |
void | pqxx::connection_base::process_notice (const char[]) throw () |
Invoke notice processor function. The message should end in newline. | |
void | pqxx::connection_base::process_notice (const PGSTD::string &) throw () |
Invoke notice processor function. Newline at end is recommended. |
|
|
|
Invoke notice processor function. Newline at end is recommended.
|
|
Invoke notice processor function. The message should end in newline.
|
|
Set handler for postgresql errors or warning messages. The use of auto_ptr implies ownership, so unless the returned value is copied to another auto_ptr, it will be deleted directly after the call. This may be important when running under Windows, where a DLL cannot free memory allocated by the main program. The auto_ptr will delete the object from your code context, rather than from inside the library. If a noticer exists when the connection_base is destructed, it will also be deleted.
|