builder progress (attribute, object and constraint class in todo.md)

This commit is contained in:
Sascha Kühl
2025-11-21 15:58:33 +01:00
parent 34eaeca0bb
commit 78abf16f28
10 changed files with 392 additions and 85 deletions
+11 -5
View File
@@ -2,11 +2,17 @@
namespace matador::query {
column_builder::column_builder(std::string column_name)
: column_name( std::move(column_name) ) {}
column_builder::column_builder(std::string column_name, const utils::basic_type type, const size_t size)
: column_name_(std::move(column_name))
, type_(type){}
column_builder::operator class query::column() const {
return {column_name};
return {column_name_};
}
column_builder& column_builder::not_null() {
return *this;
}
table_builder::table_builder(std::string name)
@@ -55,8 +61,8 @@ table_builder table( std::string name ) {
return table_builder(std::move(name));
}
column_builder column( std::string name ) {
return column_builder(std::move(name));
column_builder column(std::string name, const utils::basic_type type, size_t size) {
return column_builder(std::move(name), type, size);
}
}