silverqx / TinyORM

Modern C++ ORM library
https://www.tinyorm.org
MIT License
242 stars 25 forks source link

Include exception headers #17

Closed SchaichAlonso closed 1 year ago

SchaichAlonso commented 1 year ago

The querybuilders' unit tests fail to compile due to some Exception classes being undefined if ORM compilation is disabled via cmake.

The undefined exceptions are actually being built as part of the querybuilder. However, the unit tests deep-end on models/user.hpp to include the header files for the exception classes they are using, but the corresponding include directive is skipped for builds that disable ORM.