Skip to content
Snippets Groups Projects
Commit 458bad90 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen
Browse files

sqlite: Query: Add a markPublic accessor

Which can be used to ensure an additional boolean flag representing the
publicness of the query will be added to the rows
parent b139fc7a
No related branches found
No related tags found
No related merge requests found
......@@ -92,6 +92,12 @@ public:
{
}
void markPublic( bool isPublic )
{
if ( isPublic == true )
m_field += ", TRUE";
}
virtual size_t count() override
{
std::string req = "SELECT COUNT(DISTINCT " + Impl::Table::PrimaryKeyColumn +
......@@ -116,7 +122,7 @@ public:
}
private:
const std::string m_field;
std::string m_field;
const std::string m_base;
const std::string m_groupAndOrderBy;
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment