|
Orbit Framework
An ultra-modern, asynchronous, cross-platform C++ Web Framework.
|

Go to the source code of this file.
Macros | |
| #define | ORBIT_REGISTER_MODEL(Type, TableName) |
| Registers a standard C++ struct as an ORM Model mapping to a database table. | |
| #define | ORBIT_REGISTER_MONGO_MODEL(Type) |
| Registers a standard C++ struct as an ORM Model mapping to a MongoDB Collection. | |
| #define ORBIT_REGISTER_MODEL | ( | Type, | |
| TableName | |||
| ) |
Registers a standard C++ struct as an ORM Model mapping to a database table.
Must be used in the global namespace after defining the struct and its NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE macro.
| Type | The C++ struct/class name. |
| TableName | The database table name as a string. |
| #define ORBIT_REGISTER_MONGO_MODEL | ( | Type | ) |
Registers a standard C++ struct as an ORM Model mapping to a MongoDB Collection.
| Type | The C++ struct/class name. |