schema progress (does not compile)
This commit is contained in:
@@ -9,16 +9,17 @@
|
||||
#include <string>
|
||||
#include <ostream>
|
||||
|
||||
#define FIELD(x) const matador::query::column x{*this, #x, ""};
|
||||
#define FIELD(x) const matador::query::column& x = create_column(*this, #x);
|
||||
|
||||
#define QUERY_HELPER(C, V, ...) \
|
||||
namespace matador::query::meta { \
|
||||
namespace internal { \
|
||||
struct C##_query : table { \
|
||||
C##_query() : table(#C) {} \
|
||||
class C##_table : public table { \
|
||||
public: \
|
||||
C##_table() : table(#C) {} \
|
||||
MAP(FIELD, __VA_ARGS__) \
|
||||
}; } \
|
||||
static const internal:: C##_query V; \
|
||||
static const internal:: C##_table V; \
|
||||
}
|
||||
|
||||
#endif //QUERY_QUERY_HELPER_HPP
|
||||
|
||||
Reference in New Issue
Block a user