#pragma once #include #include #include #include #include #include #include #include #include #ifdef BUILD_REPOSITORIES #define REPOSITORIES_EXPORT Q_DECL_EXPORT #else #define REPOSITORIES_EXPORT Q_DECL_IMPORT #endif class REPOSITORIES_EXPORT AuthorRepository { public: static QVector getAll(); static std::optional getByName(const QString& name); static bool insert(const model::Author& author); // TODO Возвращать не bool - а номер id записи };