Binding maps a value or multiple values (see Binding specializations for STL containers as well as type handlers) to database column(s). Values to be bound can be either mapped directly (by reference) or a copy can be created, depending on the value of the copy argument. To pass a reference to a variable, it is recommended to pass it to the intermediate utility function use(), which will create the proper binding. In cases when a reference is passed to binding, the storage it refers to must be valid at the statement execution time. To pass a copy of a variable, constant or string literal, use utility function bind(). Variables can be passed as either copies or references (i.e. using either use() or bind()).
Direct Base Classes: AbstractBinding
All Base Classes: AbstractBinding
typedef T ValType;
T & val,
const std::string & name = "",
Direction direction = PD_IN
Creates the Binding using the passed reference as bound value. If copy is true, a copy of the value referred to is created.
Destroys the CopyBinding.
See also: Poco::Data::AbstractBinding::bind()
bool canBind() const;
See also: Poco::Data::AbstractBinding::canBind()
std::size_t numOfColumnsHandled() const;
std::size_t numOfRowsHandled() const;
See also: Poco::Data::AbstractBinding::reset()