initial matador ng commit

This commit is contained in:
2025-02-02 20:37:12 +01:00
parent 19de5714f4
commit ded3daceb3
378 changed files with 14913 additions and 13431 deletions
+12 -12
View File
@@ -1,20 +1,19 @@
#ifndef QUERY_CONSTRAINTS_HPP
#define QUERY_CONSTRAINTS_HPP
#ifndef MATADOR_CONSTRAINTS_HPP
#define MATADOR_CONSTRAINTS_HPP
namespace matador::utils {
enum class constraints : unsigned char {
NONE = 0,
INDEX = 1 << 1,
UNIQUE = 1 << 2,
PRIMARY_KEY = 1 << 3,
FOREIGN_KEY = 1 << 4,
DEFAULT = 1 << 5,
AUTO_INCREMENT = 1 << 6
NONE = 0,
// NOT_NULL = 1 << 0,
INDEX = 1 << 1,
UNIQUE = 1 << 2,
PRIMARY_KEY = 1 << 3,
FOREIGN_KEY = 1 << 4,
DEFAULT = 1 << 5
// UNIQUE_NOT_NULL = UNIQUE | NOT_NULL
};
//static std::unordered_map<constraints, std::string> constraints_to_name_map();
inline constraints operator|(constraints a, constraints b)
{
return static_cast<constraints>(static_cast<unsigned int>(a) | static_cast<unsigned int>(b));
@@ -34,4 +33,5 @@ inline bool is_constraint_set(constraints source, constraints needle)
}
}
#endif //QUERY_CONSTRAINTS_HPP
#endif //MATADOR_CONSTRAINTS_HPP