You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Instance-based overloads for `mysql_connection::validate_table` and `validate_database` — e.g. `db->validate_table(trade{})` and `db->validate_database(trade_db{})` as alternatives to the template-only forms
Copy file name to clipboardExpand all lines: CLAUDE.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -67,7 +67,7 @@ Style: Google-based, 120-char line limit, 4-space indent (`.clang-format` at roo
67
67
68
68
### Schema Generation and Validation
69
69
70
-
Tables are described as C++ structs. `schema_generator.hpp` reflects struct fields via Boost.PFR at compile time. To override the SQL type for a specific field, specialize `field_schema<T, I>`. `mysql_connection::validate_table<T>()` checks a live database schema against the C++ definition and returns detailed error messages on mismatch.
70
+
Tables are described as C++ structs. `schema_generator.hpp` reflects struct fields via Boost.PFR at compile time. To override the SQL type for a specific field, specialize `field_schema<T, I>`. `mysql_connection::validate_table(T{})` / `validate_table<T>()` checks a live database schema against the C++ definition and returns detailed error messages on mismatch. `validate_database(DB{})` / `validate_database<DB>()` validates all tables in a database schema struct.
0 commit comments