您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 

40 行
967 B

  1. #pragma once
  2. namespace cpphibernate {
  3. namespace mariadb {
  4. /**
  5. * @brief Key type properties for the passed type.
  6. *
  7. * @tparam T_key Type to get key properties for.
  8. */
  9. template<typename T_key, typename = void>
  10. struct key_properties
  11. {
  12. using key_type = T_key;
  13. /**
  14. * @brief Check if the passed key value is the default value.
  15. */
  16. static bool is_default(const key_type& key) = delete;
  17. /**
  18. * @brief Returns true if the key type is auto generated, false otherwise.
  19. */
  20. static constexpr bool is_auto_generated() = delete;
  21. /**
  22. * @brief Returns extra arguments to use for creating the table.
  23. */
  24. static constexpr const char * create_table_argument() = delete;
  25. /**
  26. * @brief Return the query to create a new key value.
  27. */
  28. static constexpr const char * create_key_query() = delete;
  29. };
  30. } }