Definition at line 43 of file gnc-dbisqlconnection.cpp.
◆ GncDbiSqlStatement()
| GncDbiSqlStatement::GncDbiSqlStatement |
( |
const std::string & |
sql | ) |
|
|
inline |
◆ ~GncDbiSqlStatement()
| GncDbiSqlStatement::~GncDbiSqlStatement |
( |
| ) |
|
|
inline |
◆ add_where_cond()
| void GncDbiSqlStatement::add_where_cond |
( |
QofIdTypeConst |
type_name, |
|
|
const PairVec & |
col_values |
|
) |
| |
|
overridevirtual |
Implements GncSqlStatement.
Definition at line 64 of file gnc-dbisqlconnection.cpp.
66{
67 m_sql += " WHERE ";
68 for (auto colpair : col_values)
69 {
70 if (colpair != *col_values.begin())
71 m_sql += " AND ";
72 if (colpair.second == "NULL")
73 m_sql += colpair.first + " IS " + colpair.second;
74 else
75 m_sql += colpair.first + " = " + colpair.second;
76 }
77}
◆ to_sql()
| const char * GncDbiSqlStatement::to_sql |
( |
| ) |
const |
|
overridevirtual |
The documentation for this class was generated from the following file: