|
VoltMod
C++23 framework for CS2 server plugins
|
#include <sqlpp23/sqlpp23.h>#include <type_traits>Go to the source code of this file.
Namespaces | |
| namespace | VoltMod |
Macros | |
| #define | VOLTMOD_COLUMN(Member, SqlName, DataType, HasDefault) |
| Declare one column of a sqlpp23 table spec. | |
Typedefs | |
| using | VoltMod::HasDefault = std::true_type |
| using | VoltMod::Required = std::false_type |
| #define VOLTMOD_COLUMN | ( | Member, | |
| SqlName, | |||
| DataType, | |||
| HasDefault | |||
| ) |
Declare one column of a sqlpp23 table spec.
Member is the C++ member name, SqlName the unquoted column name, DataType a sqlpp23 data type (wrap it in std::optional when the column is nullable), and HasDefault VoltMod::HasDefault or VoltMod::Required.
Most tables are generated from the schema by sqlpp23-ddl2cpp; reach for this only when hand-writing a spec.