[odb-users] Create odb class from sql schema / use an existent database

Dean Throop DThroop at PacificCabinets.com
Wed May 29 09:33:47 EDT 2013


Hi rkadeFR,

It is straightforward to work with an existing database. You basically follow the same strategies and instructions.

There is not a way to generate the ODB classes from the existing schema. You will need to extend your classes with the necessary ODB items (pragmas, queries, etc.).

Some things that helped me when I started...start small to figure out some of the details and validate it is working properly, and even though you already have an existing database have the compiler generate the schema so you can compare what ODB thinks you need vs. what you already have.

Dean

rkadeFR <contact at rkade.fr> wrote:

I did some research and didn't find any answer.
If I'm wrong, please just indicate the thread/email/url.


I have an existent DB, and would like to map it to
some C++/ODB classes in order to use my DB.


Is there a possibility to generate the C++/ODB classes?
Or is there an efficient way for me using an existing DB
with my C++ program?

thank you




More information about the odb-users mailing list