From 74d9ab3518d50ebafb12e8252c01fa904b089481 Mon Sep 17 00:00:00 2001 From: Constantin Michael Date: Fri, 6 May 2011 11:44:02 +0200 Subject: Add error support --- odb/pgsql/error.hxx | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 odb/pgsql/error.hxx (limited to 'odb/pgsql/error.hxx') diff --git a/odb/pgsql/error.hxx b/odb/pgsql/error.hxx new file mode 100644 index 0000000..3de9e78 --- /dev/null +++ b/odb/pgsql/error.hxx @@ -0,0 +1,33 @@ +// file : odb/pgsql/errors.hxx +// author : Constantin Michael +// copyright : Copyright (c) 2005-2011 Code Synthesis Tools CC +// license : GNU GPL v2; see accompanying LICENSE file + +#ifndef ODB_PGSQL_ERRORS_HXX +#define ODB_PGSQL_ERRORS_HXX + +#include + +#include + +#include + +#include + +namespace odb +{ + namespace pgsql + { + class connection; + + LIBODB_PGSQL_EXPORT void + translate_error (connection&); + + LIBODB_PGSQL_EXPORT void + translate_error (connection& c, PGresult* r); + } +} + +#include + +#endif // ODB_PGSQL_ERRORS_HXX -- cgit v1.1