diff options
Diffstat (limited to 'odb/pgsql/error.hxx')
-rw-r--r-- | odb/pgsql/error.hxx | 33 |
1 files changed, 33 insertions, 0 deletions
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 <constantin@codesynthesis.com> +// 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 <odb/pre.hxx> + +#include <libpq-fe.h> + +#include <odb/pgsql/version.hxx> + +#include <odb/pgsql/details/export.hxx> + +namespace odb +{ + namespace pgsql + { + class connection; + + LIBODB_PGSQL_EXPORT void + translate_error (connection&); + + LIBODB_PGSQL_EXPORT void + translate_error (connection& c, PGresult* r); + } +} + +#include <odb/post.hxx> + +#endif // ODB_PGSQL_ERRORS_HXX |