introduced execute_result

This commit is contained in:
Sascha Kühl
2026-02-10 11:57:09 +01:00
parent d9f9712487
commit 99677b0e21
28 changed files with 158 additions and 170 deletions
@@ -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