clan::DBCommand Class Reference

Database command. More...

#include <db_command.h>

Public Member Functions

Attributes
int get_input_parameter_column (const std::string &name) const
 Returns the index for a given input parameter name. More...
 
int get_output_last_insert_rowid () const
 Returns the output parameter containing the row id of the last inserted row. More...
 
DBCommandProviderget_provider ()
 Returns the provider interface for this command. More...
 
Operations
void set_input_parameter_string (int index, const std::string &value)
 Sets the specified input parameter index from a string value. More...
 
void set_input_parameter_bool (int index, bool value)
 Sets the specified input parameter index from a boolean value. More...
 
void set_input_parameter_int (int index, int value)
 Sets the specified input parameter index from an integer value. More...
 
void set_input_parameter_double (int index, double value)
 Sets the specified input parameter index from a double value. More...
 
void set_input_parameter_datetime (int index, const DateTime &value)
 Sets the specified input parameter index from a DateTime value. More...
 
void set_input_parameter_binary (int index, const DataBuffer &value)
 Sets the specified input parameter index from a DataBuffer value. More...
 
template<class ValueType >
void set_input_parameter (int index, ValueType value)
 Sets the specified input parameter index from a value. More...
 
template<class ValueType >
void set_input_parameter (const std::string &name, ValueType value)
 Sets the specified input parameter name from a value. More...
 

Construction

enum  Type { stored_procedure, sql_statement }
 
 DBCommand ()
 Constructs a database command. More...
 
 DBCommand (const std::shared_ptr< DBCommand_Impl > &impl)
 Constructs a DBCommand. More...
 
 ~DBCommand ()
 

Detailed Description

Database command.


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