libpqxx
The C++ client library for PostgreSQL
String-escaping functions

Functions

PQXX_ZARGS std::string pqxx::transaction_base::esc (char const str[], sl loc=sl::current())
 

Detailed Description

Function Documentation

◆ esc()

PQXX_ZARGS std::string pqxx::transaction_base::esc ( char const  str[],
sl  loc = sl::current() 
)
inline

Use these when writing SQL queries that incorporate C++ values as SQL constants.

The functions you see here are just convenience shortcuts to the same functions on the connection object.