SQLiteCpp icon indicating copy to clipboard operation
SQLiteCpp copied to clipboard

Add support for C++ modules

Open mikomikotaishi opened this issue 7 months ago • 1 comments

This pull request adds support for C++20 modules to SQLiteCpp, by creating modules sqlite.*. It is built using the macro SQLITECPP_BUILD_MODULES. The README.md file has also been updated to contain information.

I also added a namespace sqlite = SQLite; alias so that the namespace and module names align.

mikomikotaishi avatar May 29 '25 05:05 mikomikotaishi

I am wondering, could we also add a preprocessor macro to export the symbol Exception as SQLException (similar to its name in Java), so that it is not confused with the usual std::exception from the standard library?

mikomikotaishi avatar Jun 04 '25 21:06 mikomikotaishi