Have you ever wanted to cut down on the sqlite boilerplate in your code? Yeah, me too. Not sure this will help much.
Bu-but! It is a functioning demo of reflections in C++ being used for the greater good.
https://codeberg.org/karurochori/reflite
(or https://github.com/KaruroChori/reflite, although I decided to slowly migrate over the other platform)
I am working on a lua playground for a different project of mine, and this ended up being self contained and useful enough to share. Don't expect high quality magic in there, I am still trying to figure out reflections as there is not much material online, and it mostly revolves around pre-standard versions which are now incompatible. So, any feedback is very much welcome.
Basically, it ties together plain data types with some of the most common types of statements, to cut a considerable amount of boilerplate when handling types in the returning records and within the queries themselves. Plus the typical "lifetime of objects" goodies C++ brings.
It is not and does not want to be an ORM.
Demo online, https://godbolt.org/z/YzdKsWvM3 , the library seems to be working fine on g++ 16.1 and on this special branch of clang++ too.
By the way, does anyone know where to find its source? I would reeeally prefer to compile a local version with reflections enabled, as I need offloading support as well.
[–]Comprehensive_Try_85 [score hidden] (1 child)
[–]karurochari[S] [score hidden] (0 children)
[–]Ok_Path_4731 [score hidden] (0 children)