added meta table macro and removed unused query_macro

This commit is contained in:
2025-12-31 13:54:32 +01:00
parent e768497cfd
commit 7cb64515bd
8 changed files with 40 additions and 73 deletions
+10 -10
View File
@@ -1,9 +1,9 @@
#include "matador/sql/connection.hpp"
#include "matador/sql/query_macro.hpp"
#include "matador/query/criteria.hpp"
#include "matador/query/query.hpp"
#include "matador/query/table_column.hpp"
#include "matador/query/meta_table_macro.hpp"
#include "matador/object/object_ptr.hpp"
#include "matador/object/repository.hpp"
@@ -140,20 +140,20 @@ struct matador::utils::data_type_traits<job::job_mode, void> {
}
};
QUERY_HELPER(authors, AUTHOR, id, first_name, last_name, date_of_birth, year_of_birth, distinguished)
META_TABLE(authors, AUTHOR, id, first_name, last_name, date_of_birth, year_of_birth, distinguished)
QUERY_HELPER(books, BOOK, id, author_id, title, published_in)
META_TABLE(books, BOOK, id, author_id, title, published_in)
QUERY_HELPER(job, JOB, id, payload, type, description, state, mode)
META_TABLE(job, JOB, id, payload, type, description, state, mode)
QUERY_HELPER(payload, PAYLOAD, id )
META_TABLE(payload, PAYLOAD, id )
QUERY_HELPER(temporary_table, TEMPORARY_TABLE, id );
META_TABLE(temporary_table, TEMPORARY_TABLE, id );
QUERY_HELPER(customer, CUSTOMER, id, name, email, address)
QUERY_HELPER(product, PRODUCT, id, title, description, price, category)
QUERY_HELPER(category, CATEGORY, id, title, description)
QUERY_HELPER(cart, CART, id, items, owner)
META_TABLE(customer, CUSTOMER, id, name, email, address)
META_TABLE(product, PRODUCT, id, title, description, price, category)
META_TABLE(category, CATEGORY, id, title, description)
META_TABLE(cart, CART, id, items, owner)
int main() {
using namespace matador::sql;