Переименовываем файлы в нижний регистр
This commit is contained in:
29
src/repositories/author_repository.h
Normal file
29
src/repositories/author_repository.h
Normal file
@@ -0,0 +1,29 @@
|
||||
#pragma once
|
||||
|
||||
#include <model/author.h>
|
||||
|
||||
#include <database/databasemanager.h>
|
||||
|
||||
#include <QSqlDatabase>
|
||||
#include <QSqlError>
|
||||
#include <QSqlQuery>
|
||||
#include <QString>
|
||||
#include <QVariant>
|
||||
#include <QVector>
|
||||
#include <optional>
|
||||
|
||||
#ifdef BUILD_REPOSITORIES
|
||||
#define REPOSITORIES_EXPORT Q_DECL_EXPORT
|
||||
#else
|
||||
#define REPOSITORIES_EXPORT Q_DECL_IMPORT
|
||||
#endif
|
||||
|
||||
class REPOSITORIES_EXPORT AuthorRepository
|
||||
{
|
||||
public:
|
||||
static QVector<model::Author> getAll();
|
||||
static std::optional<model::Author> getByName(const QString& name);
|
||||
static bool insert(const model::Author& author);
|
||||
|
||||
// TODO Возвращать не bool - а номер id записи
|
||||
};
|
||||
Reference in New Issue
Block a user