How to Generate Entities from an Existing Database in D language ORM?

ZardoZ via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Feb 15 22:46:47 PST 2016


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.



More information about the Digitalmars-d-learn mailing list