Initial commit
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
#ifndef BASE_REPOSITORY_H
|
||||
#define BASE_REPOSITORY_H
|
||||
|
||||
#include "data_repository_signals.h"
|
||||
#include <QSqlDatabase>
|
||||
|
||||
class BaseSqlTableRepository : public DataRepositorySignals {
|
||||
protected:
|
||||
QSqlDatabase database_;
|
||||
|
||||
public:
|
||||
BaseSqlTableRepository(QSqlDatabase &database, QObject *parent);
|
||||
|
||||
virtual ~BaseSqlTableRepository() = default;
|
||||
|
||||
protected:
|
||||
QSqlQuery foreignKeysOnQuery() const;
|
||||
};
|
||||
|
||||
#endif // BASE_REPOSITORY_H
|
||||
Reference in New Issue
Block a user