Library: Data/ODBC
Package: ODBC
Header: Poco/Data/ODBC/Binder.h
Binds placeholders in the sql query to the provided values. Performs data types mapping.
Direct Base Classes: Poco::Data::AbstractBinder
All Base Classes: Poco::Data::AbstractBinder
Member Functions: bind, dataSize, getDataBinding, setDataBinding
Inherited Functions: bind
Binder(
    const StatementHandle & rStmt,
    ParameterBinding dataBinding = PB_IMMEDIATE
);
Creates the Binder.
 
 ~Binder();
Destroys the Binder.
 
   
 void bind(
    std::size_t pos,
    const Poco::Int8 & val
);
Binds an Int8.
See also: Poco::Data::AbstractBinder::bind()
 
 void bind(
    std::size_t pos,
    const Poco::UInt8 & val
);
Binds an UInt8.
See also: Poco::Data::AbstractBinder::bind()
 
 void bind(
    std::size_t pos,
    const Poco::Int16 & val
);
Binds an Int16.
See also: Poco::Data::AbstractBinder::bind()
 
 void bind(
    std::size_t pos,
    const Poco::UInt16 & val
);
Binds an UInt16.
See also: Poco::Data::AbstractBinder::bind()
 
 void bind(
    std::size_t pos,
    const Poco::Int32 & val
);
Binds an Int32.
See also: Poco::Data::AbstractBinder::bind()
 
 void bind(
    std::size_t pos,
    const Poco::UInt32 & val
);
Binds an UInt32.
See also: Poco::Data::AbstractBinder::bind()
 
 void bind(
    std::size_t pos,
    const Poco::Int64 & val
);
Binds an Int64.
See also: Poco::Data::AbstractBinder::bind()
 
 void bind(
    std::size_t pos,
    const Poco::UInt64 & val
);
Binds an UInt64.
See also: Poco::Data::AbstractBinder::bind()
 
 void bind(
    std::size_t pos,
    const bool & val
);
Binds a boolean.
See also: Poco::Data::AbstractBinder::bind()
 
 void bind(
    std::size_t pos,
    const float & val
);
Binds a float.
See also: Poco::Data::AbstractBinder::bind()
 
 void bind(
    std::size_t pos,
    const double & val
);
Binds a double.
See also: Poco::Data::AbstractBinder::bind()
 
 void bind(
    std::size_t pos,
    const char & val
);
Binds a single character.
See also: Poco::Data::AbstractBinder::bind()
 
 void bind(
    std::size_t pos,
    const std::string & val
);
Binds a string.
See also: Poco::Data::AbstractBinder::bind()
void bind(
    std::size_t pos,
    const Poco::Data::BLOB & val
);
Binds a BLOB.
std::size_t dataSize(
    SQLPOINTER pAddr
) const;
Returns bound data size for parameter at specified position.
 
 ParameterBinding getDataBinding() const;
Return data binding type.
 
 void setDataBinding(
    ParameterBinding binding
);
Set data binding type.