mirror of
https://github.com/silverqx/TinyORM.git
synced 2026-02-08 11:29:19 -06:00
- removed expression.cpp, Query::Expression is header only now - fixed macro guard names - inline from defn. to decl.
41 lines
962 B
C++
41 lines
962 B
C++
#pragma once
|
|
#ifndef ORM_QUERY_PROCESSORS_PROCESSOR_HPP
|
|
#define ORM_QUERY_PROCESSORS_PROCESSOR_HPP
|
|
|
|
#include "orm/macros/systemheader.hpp"
|
|
TINY_SYSTEM_HEADER
|
|
|
|
#include <QStringList>
|
|
#include <QtGlobal>
|
|
|
|
#include "orm/macros/commonnamespace.hpp"
|
|
#include "orm/macros/export.hpp"
|
|
|
|
class QSqlQuery;
|
|
|
|
TINYORM_BEGIN_COMMON_NAMESPACE
|
|
|
|
namespace Orm::Query::Processors
|
|
{
|
|
|
|
/*! Base processor class, process sql result. */
|
|
class SHAREDLIB_EXPORT Processor
|
|
{
|
|
Q_DISABLE_COPY(Processor)
|
|
|
|
public:
|
|
/*! Default constructor. */
|
|
inline Processor() = default;
|
|
/*! Virtual destructor, this class is used so can not be pure. */
|
|
inline virtual ~Processor() = default;
|
|
|
|
/*! Process the results of a column listing query. */
|
|
virtual QStringList processColumnListing(QSqlQuery &query) const;
|
|
};
|
|
|
|
} // namespace Orm::Query::Processors
|
|
|
|
TINYORM_END_COMMON_NAMESPACE
|
|
|
|
#endif // ORM_QUERY_PROCESSORS_PROCESSOR_HPP
|