libpqxx
The C++ client library for PostgreSQL
prepared_statement.hxx
Go to the documentation of this file.
1 /* Definition of the pqxx::prepped.
2  *
3  * DO NOT INCLUDE THIS FILE DIRECTLY; include pqxx/prepared_statement instead.
4  *
5  * Copyright (c) 2000-2026, Jeroen T. Vermeulen.
6  *
7  * See COPYING for copyright license. If you did not receive a file called
8  * COPYING with this source code, please notify the distributor of this
9  * mistake, or contact the author.
10  */
11 #ifndef PQXX_PREPARED_STATEMENT_HXX
12 #define PQXX_PREPARED_STATEMENT_HXX
13 
14 namespace pqxx
15 {
58 
60 
69 class PQXX_LIBEXPORT prepped final : public std::string_view
70 {
71 public:
72  explicit constexpr prepped(std::string_view name) noexcept :
73  std::string_view{name}
74  {}
75 };
76 } // namespace pqxx
77 
78 #endif
A string that is the name of a prepared statement.
Definition: prepared_statement.hxx:70
constexpr prepped(std::string_view name) noexcept
Definition: prepared_statement.hxx:72
#define PQXX_LIBEXPORT
Definition: header-pre.hxx:206
The home of all libpqxx classes, functions, templates, etc.
Definition: array.cxx:26