Wt  3.7.1
Public Member Functions | List of all members
Wt::Dbo::Call Class Reference

A database call. More...

#include <Wt/Dbo/Call>

Public Member Functions

 ~Call () WT_CXX11ONLY(noexcept(false))
 Destructor. More...
 
 Call (const Call &other)
 Copy constructor. More...
 
template<typename T >
Callbind (const T &value)
 Binds a value to the next positional marker. More...
 
void run ()
 Runs the database call. More...
 

Detailed Description

A database call.

A call can be used to execute a database command (e.g. an update, or a stored procedure call).

See also
Query

Constructor & Destructor Documentation

◆ ~Call()

Wt::Dbo::Call::~Call ( )
noexcept

Destructor.

This executes the call if it wasn't run() yet, and the call has not been copied.

◆ Call()

Wt::Dbo::Call::Call ( const Call other)

Copy constructor.

This transfer the call "token" to the copy.

Member Function Documentation

◆ bind()

template<typename T >
Call & Wt::Dbo::Call::bind ( const T &  value)

Binds a value to the next positional marker.

This binds the value to the next positional marker.

◆ run()

void Wt::Dbo::Call::run ( )

Runs the database call.

This may throw an exception if there was a problem with the SQL command.


Generated on Tue Dec 15 2020 for the C++ Web Toolkit (Wt) by doxygen 1.8.13