GitWatcherBot  1.0.0
A Telegram Bot that notifies you when a new change is made in your repositories (issues, pull requests, stars, forks, and watches)
All Classes Namespaces Files Functions Variables Typedefs Macros
Repository.hpp File Reference
#include <cstdint>
#include <string>
#include <cstring>
#include "sqlite_orm/sqlite_orm.h"
#include "User.hpp"

Go to the source code of this file.

Classes

struct  models::Repository
 

Namespaces

 models
 

Macros

#define DESERIALIZE(field)
 

Typedefs

using models::RepositoryId = std::int64_t
 

Macro Definition Documentation

◆ DESERIALIZE

#define DESERIALIZE (   field)
Value:
try {\
field = json[#field]; \
}\
catch(const std::exception& e)\
{\
throw std::runtime_error("Failed to deserialize json field '" + std::string(#field) + "': " + e.what());\
}

Definition at line 51 of file Repository.hpp.