te::da::BasicQueries Class Reference

#include <BasicQueries.h>

Static Public Member Functions

static TEDATAACCESSEXPORT std::unique_ptr< te::da::SelectGetQuery (bool distinct, const std::vector< std::string > &vecColumns, const std::string &tableName, const std::vector< std::string > &vecWhereColumns, const std::vector< std::unique_ptr< te::dt::AbstractData >> &vecWhereValues)
 Helper function to create a query from the given parameters. More...
 
static TEDATAACCESSEXPORT std::unique_ptr< te::da::SelectGetQuery (bool distinct, const std::vector< std::string > &vecColumns, const std::string &tableName)
 Helper function to create a query from the given parameters. More...
 

Private Member Functions

 BasicQueries ()=delete
 
 ~BasicQueries ()=delete
 

Detailed Description

Definition at line 46 of file BasicQueries.h.

Constructor & Destructor Documentation

◆ BasicQueries()

te::da::BasicQueries::BasicQueries ( )
privatedelete

◆ ~BasicQueries()

te::da::BasicQueries::~BasicQueries ( )
privatedelete

Member Function Documentation

◆ GetQuery() [1/2]

static TEDATAACCESSEXPORT std::unique_ptr<te::da::Select> te::da::BasicQueries::GetQuery ( bool  distinct,
const std::vector< std::string > &  vecColumns,
const std::string &  tableName,
const std::vector< std::string > &  vecWhereColumns,
const std::vector< std::unique_ptr< te::dt::AbstractData >> &  vecWhereValues 
)
static

Helper function to create a query from the given parameters.

Parameters
distinctTRUE if distinct clause must be added. FALSE otherwise
vecColumnsA vector containing the columns to be added to the query
tableNameThe name of the table to be queried
vecWhereColumnsA vector containing all the columns in the where clause
vecWhereValuesA vector containing all the values in the where clause
Returns
An query resulting from the given parameters

◆ GetQuery() [2/2]

static TEDATAACCESSEXPORT std::unique_ptr<te::da::Select> te::da::BasicQueries::GetQuery ( bool  distinct,
const std::vector< std::string > &  vecColumns,
const std::string &  tableName 
)
static

Helper function to create a query from the given parameters.

Parameters
distinctTRUE if distinct clause must be added. FALSE otherwise
vecColumnsA vector containing the columns to be added to the query
tableNameThe name of the table to be queried
Returns
An query resulting from the given parameters

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