diff options
author | Constantin Michael <constantin@codesynthesis.com> | 2011-05-06 11:44:02 +0200 |
---|---|---|
committer | Constantin Michael <constantin@codesynthesis.com> | 2011-05-09 16:52:07 +0200 |
commit | 74d9ab3518d50ebafb12e8252c01fa904b089481 (patch) | |
tree | 456be9c02055d01f27614bf6cb204f0c78c2a848 /odb/pgsql/error.hxx | |
parent | 77bbae6038d20576a4807ed8ca834685a1e85afa (diff) |
Add error support
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 |