started query builder
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
#ifndef QUERY_FIELD_ATTRIBUTES_HPP
|
||||
#define QUERY_FIELD_ATTRIBUTES_HPP
|
||||
|
||||
#include "constraints.hpp"
|
||||
|
||||
#include <cstdlib>
|
||||
|
||||
namespace matador::utils {
|
||||
|
||||
class field_attributes
|
||||
{
|
||||
public:
|
||||
field_attributes() = default;
|
||||
field_attributes(size_t size); // NOLINT(*-explicit-constructor)
|
||||
field_attributes(constraints options); // NOLINT(*-explicit-constructor)
|
||||
field_attributes(size_t size, constraints options);
|
||||
field_attributes(const field_attributes &x) = default;
|
||||
field_attributes& operator=(const field_attributes &x) = default;
|
||||
field_attributes(field_attributes &&x) = default;
|
||||
field_attributes& operator=(field_attributes &&x) = default;
|
||||
~field_attributes() = default;
|
||||
|
||||
[[nodiscard]] size_t size() const;
|
||||
[[nodiscard]] constraints options() const;
|
||||
|
||||
private:
|
||||
size_t size_ = 0;
|
||||
constraints options_ = constraints::NONE;
|
||||
};
|
||||
|
||||
const field_attributes null_attributes {};
|
||||
|
||||
}
|
||||
#endif //QUERY_FIELD_ATTRIBUTES_HPP
|
||||
Reference in New Issue
Block a user