February 15, 2016 How to Generate Entities from an Existing Database in D language ORM? | ||||
---|---|---|---|---|
| ||||
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 |
February 16, 2016 Re: How to Generate Entities from an Existing Database in D language ORM? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Eliatto | 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.
|
Copyright © 1999-2021 by the D Language Foundation