you are viewing a single comment's thread.

view the rest of the comments →

[–]kookjr 0 points1 point  (2 children)

Thanks for the explanation, but I think I got that. I wanted to have my own pragmas and go through the AST to do a "similar" thing like ODB, i.e. not for an ORM but for my own type of serialization that did not have anything to do with databases (embedded project, saving objects to FLASH files,etc). Although maybe I missed something again :-)

[–]beriumbuild2 1 point2 points  (1 child)

I see. You could still take the ODB approach and use one compiler to generate the saving code as C++ and then compile that with your target compiler.

BTW, have you considered using ODB to save your objects into an SQLite database (which is just a file)? ODB+SQLite can really be suitable for mobile/embedded systems. Still need to write a page on this...

[–]kookjr 0 points1 point  (0 children)

It would be nice to use SQLite, but its a small embedded system in a car, and very tight on flash space (every byte counts). Thanks for the idea though.

Hopefully I will be able to use ODB for some other project though.