|
Database System 0.1.0
Advanced C++20 Database System with Multi-Backend Support
|
ORM framework demonstration with C++20 concepts-based entities. More...
#include <iostream>#include <string>#include <chrono>#include <memory>#include "database/database_manager.h"#include "database/orm/entity.h"#include "database/core/database_context.h"
Go to the source code of this file.
Classes | |
| class | User |
| class | Product |
Functions | |
| void | demonstrate_entity_definition () |
| void | demonstrate_schema_management (std::shared_ptr< entity_manager > entity_mgr) |
| void | demonstrate_type_safety () |
| void | demonstrate_entity_queries (std::shared_ptr< entity_manager > entity_mgr) |
| void | demonstrate_entity_lifecycle () |
| int | main () |
ORM framework demonstration with C++20 concepts-based entities.
Definition in file orm_framework_demo.cpp.
| void demonstrate_entity_definition | ( | ) |
Definition at line 121 of file orm_framework_demo.cpp.
References database::orm::entity_base::get_metadata(), User::is_valid(), User::print_info(), and database::orm::entity_metadata::table_name().
Referenced by main().


| void demonstrate_entity_lifecycle | ( | ) |
Definition at line 247 of file orm_framework_demo.cpp.
References Product::is_in_stock(), User::is_valid(), Product::print_info(), and User::print_info().
Referenced by main().


| void demonstrate_entity_queries | ( | std::shared_ptr< entity_manager > | entity_mgr | ) |
Definition at line 215 of file orm_framework_demo.cpp.
Referenced by main().

| void demonstrate_schema_management | ( | std::shared_ptr< entity_manager > | entity_mgr | ) |
Definition at line 150 of file orm_framework_demo.cpp.
References database::orm::entity_base::table_name().
Referenced by main().


| void demonstrate_type_safety | ( | ) |
Definition at line 185 of file orm_framework_demo.cpp.
Referenced by main().

| int main | ( | ) |
Definition at line 279 of file orm_framework_demo.cpp.
References demonstrate_entity_definition(), demonstrate_entity_lifecycle(), demonstrate_entity_queries(), demonstrate_schema_management(), and demonstrate_type_safety().
