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

2016-02-15 Thread Eliatto via Digitalmars-d-learn
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


Using libraries for (Postgre)SQL for bilingual (C++ and D) project

2016-01-10 Thread Eliatto via Digitalmars-d-learn
Hello! I have a project, which consists of 2 parts: web part 
(based on vibe.d) and core part (C++/Qt 5.5.x). Core will be used 
in a shared object (c-style exported functions). Both parts must 
interact with PostgreSQL. Core dynamic library will be 
contributor to my database (INSERTS/UPDATES), while vibe.d part 
will use SELECTs for views.
Which C++ and D libraries for SQL queries should be used in order 
to minimize boilerplate code? I don't mind against ORM, using 
plain old objects (PODs) with special attributes.

BTW, I've read about https://github.com/chrishalebarnes/quill.d.