Wt  4.11.0
Loading...
Searching...
No Matches
Public Member Functions | List of all members
Wt::Dbo::Call Class Reference

A database call. More...

#include <Wt/Dbo/Call.h>

Public Member Functions

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

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 ( )

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.