qswiki/database/sqlitequeryoption.h

28 lines
510 B
C
Raw Normal View History

2018-11-03 17:12:20 +01:00
#ifndef SQLITEQUERYOPTION_H
#define SQLITEQUERYOPTION_H
#include <string>
#include "queryoption.h"
class SqliteQueryOption
{
private:
QueryOption o;
2024-03-16 22:03:22 +01:00
std::string listedColumnName;
2018-11-03 17:12:20 +01:00
std::string orderByColumnName;
bool prependWhere;
public:
SqliteQueryOption(const QueryOption &o);
SqliteQueryOption &setOrderByColumn(std::string name);
2024-03-16 22:03:22 +01:00
SqliteQueryOption &setListedColumnName(std::string name);
2018-11-03 17:12:20 +01:00
SqliteQueryOption &setPrependWhere(bool b);
std::string build();
};
#endif // SQLITEQUERYOPTION_H