relx 0.1.0
A Modern C++23 Type-Safe SQL Query Builder
Loading...
Searching...
No Matches
postgresql_errors.hpp File Reference
#include <string>
#include <unordered_map>

Go to the source code of this file.

Classes

struct  relx::connection::PostgreSQLError
 Specialized ConnectionError for PostgreSQL with detailed error information. More...
 

Namespaces

namespace  relx
 relx database connection
 
namespace  relx::connection
 

Enumerations

enum class  relx::connection::PostgreSQLErrorCode {
  relx::connection::ConnectionFailed = 1000 , relx::connection::ConnectionClosed = 1001 , relx::connection::ConnectionTimeout = 1002 , relx::connection::TransactionError = 2000 ,
  relx::connection::NoActiveTransaction = 2001 , relx::connection::TransactionAlreadyActive = 2002 , relx::connection::QueryFailed = 3000 , relx::connection::InvalidParameters = 3001 ,
  relx::connection::EmptyResult = 3002 , relx::connection::DuplicateKey = 23505 , relx::connection::ForeignKeyViolation = 23503 , relx::connection::CheckConstraintViolation = 23514 ,
  relx::connection::NotNullViolation = 23502 , relx::connection::Unknown = 9999
}
 PostgreSQL specific error codes. More...
 

Variables

const std::unordered_map< std::string, PostgreSQLErrorCoderelx::connection::sql_state_map
 Map of SQL STATE codes to PostgreSQLErrorCode values.