30#include <sptk5/Strings.h>
48 const std::vector<Join>& joins = {});
50 virtual ~QueryBuilder() =
default;
52 virtual String selectSQL(
const Strings& filter,
const Strings& columns,
bool pretty)
const;
54 virtual String insertSQL(
const Strings& columns,
bool pretty)
const;
56 virtual String updateSQL(
const Strings& filter,
const Strings& columns,
bool pretty)
const;
58 virtual String deleteSQL(
const Strings& filter,
bool pretty)
const;
60 String tableName()
const;
62 String pkColumnName()
const;
68 std::vector<Join> m_joins;
70 Strings makeSelectColumns(
const Strings& columns)
const;
72 void removeUnNeededColumns(
const Join& join,
const String& tableAlias);
Definition: QueryBuilder.h:38
Definition: QueryBuilder.h:35