introduced execute_result
This commit is contained in:
@@ -14,8 +14,8 @@ public:
|
||||
*/
|
||||
primary_key_attribute() = default;
|
||||
/**
|
||||
* Creates primary_key_attribute instance
|
||||
* with given size.
|
||||
* Creates a primary_key_attribute instance with a
|
||||
* given size.
|
||||
*
|
||||
* @param size Size of the attribute
|
||||
*/
|
||||
@@ -44,7 +44,7 @@ public:
|
||||
[[nodiscard]] generator_type generator() const;
|
||||
private:
|
||||
size_t size_ = 0;
|
||||
generator_type generator_ = generator_type::MANUALLY;
|
||||
generator_type generator_ = generator_type::Manually;
|
||||
};
|
||||
|
||||
const primary_key_attribute default_pk_attributes {};
|
||||
|
||||
@@ -3,11 +3,11 @@
|
||||
|
||||
namespace matador::utils {
|
||||
enum class generator_type {
|
||||
MANUALLY,
|
||||
AUTO,
|
||||
IDENTITY,
|
||||
SEQUENCE,
|
||||
TABLE
|
||||
Manually, /**< User sets the primary key value manually. */
|
||||
Auto, /**< Matador chooses the best generator type depending on the underlying dbms. */
|
||||
Identity, /**< DBMS automatically generates the primary key value. */
|
||||
Sequence, /**< DBMS automatically generates the primary key value by using a sequence table. */
|
||||
Table /**< DBMS automatically generates the primary key value by using a table. */
|
||||
};
|
||||
}
|
||||
#endif //PRIMARY_KEY_GENERATOR_TYPE_HPP
|
||||
|
||||
Reference in New Issue
Block a user