relx 0.1.0
A Modern C++23 Type-Safe SQL Query Builder
Loading...
Searching...
No Matches
relx::pgsql_async_wrapper::PreparedStatement Class Reference

#include <relx/connection/pgsql_async_wrapper.hpp>

Public Member Functions

 PreparedStatement (Connection &conn, std::string name, std::string query)
 
 ~PreparedStatement ()=default
 
 PreparedStatement (const PreparedStatement &)=delete
 
PreparedStatementoperator= (const PreparedStatement &)=delete
 
 PreparedStatement (PreparedStatement &&other) noexcept
 
PreparedStatementoperator= (PreparedStatement &&other) noexcept
 
const std::string & name () const
 
const std::string & query () const
 
bool is_prepared () const
 
boost::asio::awaitable< PgResult< void > > prepare ()
 
boost::asio::awaitable< PgResult< Result > > execute (const std::vector< std::string > &params)
 
boost::asio::awaitable< PgResult< void > > deallocate ()
 

Friends

class Connection
 

Detailed Description

Definition at line 140 of file pgsql_async_wrapper.hpp.

Constructor & Destructor Documentation

◆ PreparedStatement() [1/3]

relx::pgsql_async_wrapper::PreparedStatement::PreparedStatement ( Connection conn,
std::string  name,
std::string  query 
)
inline

Definition at line 148 of file pgsql_async_wrapper.hpp.

◆ ~PreparedStatement()

relx::pgsql_async_wrapper::PreparedStatement::~PreparedStatement ( )
default

◆ PreparedStatement() [2/3]

relx::pgsql_async_wrapper::PreparedStatement::PreparedStatement ( const PreparedStatement )
delete

◆ PreparedStatement() [3/3]

relx::pgsql_async_wrapper::PreparedStatement::PreparedStatement ( PreparedStatement &&  other)
inlinenoexcept

Definition at line 158 of file pgsql_async_wrapper.hpp.

Member Function Documentation

◆ deallocate()

boost::asio::awaitable< PgResult< void > > relx::pgsql_async_wrapper::PreparedStatement::deallocate ( )

◆ execute()

boost::asio::awaitable< PgResult< Result > > relx::pgsql_async_wrapper::PreparedStatement::execute ( const std::vector< std::string > &  params)

◆ is_prepared()

bool relx::pgsql_async_wrapper::PreparedStatement::is_prepared ( ) const
inline

Definition at line 176 of file pgsql_async_wrapper.hpp.

◆ name()

const std::string & relx::pgsql_async_wrapper::PreparedStatement::name ( ) const
inline

Definition at line 174 of file pgsql_async_wrapper.hpp.

◆ operator=() [1/2]

PreparedStatement & relx::pgsql_async_wrapper::PreparedStatement::operator= ( const PreparedStatement )
delete

◆ operator=() [2/2]

PreparedStatement & relx::pgsql_async_wrapper::PreparedStatement::operator= ( PreparedStatement &&  other)
inlinenoexcept

Definition at line 164 of file pgsql_async_wrapper.hpp.

◆ prepare()

boost::asio::awaitable< PgResult< void > > relx::pgsql_async_wrapper::PreparedStatement::prepare ( )

◆ query()

const std::string & relx::pgsql_async_wrapper::PreparedStatement::query ( ) const
inline

Definition at line 175 of file pgsql_async_wrapper.hpp.

Friends And Related Symbol Documentation

◆ Connection

friend class Connection
friend

Definition at line 183 of file pgsql_async_wrapper.hpp.


The documentation for this class was generated from the following file: