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

Go to the source code of this file.

Namespaces

namespace  relx
 relx database connection
 
namespace  relx::result
 
namespace  relx::connection
 
namespace  relx::connection::sql_utils
 

Typedefs

using PGresult = pg_result
 

Functions

std::string relx::connection::sql_utils::convert_placeholders_to_postgresql (const std::string &sql)
 Convert ? placeholders to PostgreSQL $1, $2, etc.
 
std::string relx::connection::sql_utils::isolation_level_to_postgresql_string (int isolation_level)
 Convert IsolationLevel enum to PostgreSQL isolation level string.
 
result::ResultSet relx::connection::sql_utils::process_postgresql_result (PGresult *pg_result, bool convert_bytea=false)
 Process PostgreSQL result into relx ResultSet format.
 

Typedef Documentation

◆ PGresult

using PGresult = pg_result

Definition at line 12 of file sql_utils.hpp.