|
relx 0.1.0
A Modern C++23 Type-Safe SQL Query Builder
|
Functions | |
| std::string | convert_placeholders_to_postgresql (const std::string &sql) |
| Convert ? placeholders to PostgreSQL $1, $2, etc. | |
| std::string | isolation_level_to_postgresql_string (int isolation_level) |
| Convert IsolationLevel enum to PostgreSQL isolation level string. | |
| result::ResultSet | process_postgresql_result (PGresult *pg_result, bool convert_bytea=false) |
| Process PostgreSQL result into relx ResultSet format. | |
| std::string relx::connection::sql_utils::convert_placeholders_to_postgresql | ( | const std::string & | sql | ) |
Convert ? placeholders to PostgreSQL $1, $2, etc.
format
This function properly handles SQL syntax by respecting:
| sql | The SQL string with ? placeholders |
| std::string relx::connection::sql_utils::isolation_level_to_postgresql_string | ( | int | isolation_level | ) |
Convert IsolationLevel enum to PostgreSQL isolation level string.
| isolation_level | The isolation level enum value (cast from IsolationLevel) |
| result::ResultSet relx::connection::sql_utils::process_postgresql_result | ( | PGresult * | pg_result, |
| bool | convert_bytea = false |
||
| ) |
Process PostgreSQL result into relx ResultSet format.
| pg_result | Pointer to PGresult from libpq |
| convert_bytea | Whether to convert BYTEA columns from hex to binary |