libpqxx
The C++ client library for PostgreSQL
connection-sql_cursor.hxx
Go to the documentation of this file.
1 #ifndef PQXX_INTERNAL_GATES_CONNECTION_SQL_CURSOR_HXX
2 #define PQXX_INTERNAL_GATES_CONNECTION_SQL_CURSOR_HXX
3 
5 
6 namespace pqxx::internal
7 {
8 class sql_cursor;
9 } // namespace pqxx::internal
10 
11 
12 namespace pqxx::internal::gate
13 {
14 class PQXX_PRIVATE connection_sql_cursor final : callgate<connection>
15 {
17 
18  explicit constexpr connection_sql_cursor(reference x) noexcept : super(x) {}
19 
20  PQXX_ZARGS result exec(char const query[], sl loc)
21  {
22  return home().exec(query, loc);
23  }
24 };
25 } // namespace pqxx::internal::gate
26 #endif
Connection to a database.
Definition: connection.hxx:273
Base class for call gates.
Definition: callgate.hxx:55
Definition: connection-sql_cursor.hxx:15
Cursor with SQL positioning semantics.
Definition: sql_cursor.hxx:32
Result set containing data returned by a query or command.
Definition: result.hxx:101
#define PQXX_ZARGS
Definition: header-pre.hxx:136
#define PQXX_PRIVATE
Definition: header-pre.hxx:207
Definition: connection.hxx:94
Private namespace for libpqxx's internal use; do not access.
Definition: connection.cxx:333
std::source_location sl
Convenience alias for std::source_location. It's just too long.
Definition: types.hxx:38