nontransaction.hxx
/*-------------------------------------------------------------------------
*
* FILE
* pqxx/nontransaction.hxx
*
* DESCRIPTION
* definition of the pqxx::nontransaction class.
* pqxx::nontransaction provides nontransactional database access
* DO NOT INCLUDE THIS FILE DIRECTLY; include pqxx/nontransaction instead.
*
* Copyright (c) 2002-2008, Jeroen T. Vermeulen <jtv@xs4all.nl>
*
* See COPYING for copyright license. If you did not receive a file called
* COPYING with this source code, please notify the distributor of this mistake,
* or contact the author.
*
*-------------------------------------------------------------------------
*/
#ifndef PQXX_H_NONTRANSACTION
#define PQXX_H_NONTRANSACTION
#include "pqxx/compiler-public.hxx"
#include "pqxx/compiler-internal-pre.hxx"
#include "pqxx/connection_base"
#include "pqxx/result"
#include "pqxx/transaction_base"
/* Methods tested in eg. self-test program test001 are marked with "//[t1]"
*/
namespace pqxx
{
class PQXX_LIBEXPORT nontransaction : public transaction_base
{
public:
explicit nontransaction(connection_base &C,
const PGSTD::string &Name=PGSTD::string()) : //[t14]
namedclass("nontransaction", Name), transaction_base(C) { Begin(); }
virtual ~nontransaction(); //[t14]
private:
virtual void do_begin() {} //[t14]
virtual result do_exec(const char C[]); //[t14]
virtual void do_commit() {} //[t14]
virtual void do_abort() {} //[t14]
};
} // namespace pqxx
#include "pqxx/compiler-internal-post.hxx"
#endif
pqxx::result
Result set containing data returned by a query or command.
Definition: result.hxx:81
pqxx::connection_base
connection_base abstract base class; represents a connection to a database.
Definition: connection_base.hxx:151
pqxx::nontransaction
Definition: nontransaction.hxx:62
pqxx::nontransaction::nontransaction
nontransaction(connection_base &C, const std::string &Name=std::string())
Constructor.
Definition: nontransaction.hxx:71
pqxx
The home of all libpqxx classes, functions, templates, etc.
Definition: basic_connection.hxx:35
pqxx::transaction_base
Definition: transaction_base.hxx:133