www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - How to Generate Entities from an Existing Database in D language ORM?

reply Eliatto <arietto86 gmail.com> writes:
Hello! I've found the following C++/Qt project: 
http://www.treefrogframework.org/
It contains ORM. Treefrog can generate model stubs from the 
existing database.
Is it possible to do the same in any D language ORM library?
BTW, similar situation was discussed here: 
http://programmers.stackexchange.com/questions/299715/using-orms-in-two-separate-programs-which-share-a-db
Feb 15 2016
parent ZardoZ <luis.panadero gmail.com> writes:
On Monday, 15 February 2016 at 14:33:24 UTC, Eliatto wrote:
 Hello! I've found the following C++/Qt project: 
 http://www.treefrogframework.org/
 It contains ORM. Treefrog can generate model stubs from the 
 existing database.
 Is it possible to do the same in any D language ORM library?
 BTW, similar situation was discussed here: 
 http://programmers.stackexchange.com/questions/299715/using-orms-in-two-separate-programs-which-share-a-db
Perhaps you can use liquidbase to generate an XML or json representation and use it to generate hibernated entities. I don't know yet enough about ddbc&hibernated to say anything Bout his capacity to read the database structure. jDBC can do this, so I expect that DDBC have the same capacity.
Feb 15 2016