C++ classes as result of selection in postgresql database

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

C++ classes as result of selection in postgresql database

Yuriy Rusinov
Dear colleagues !

I have to calculate road graph from coordinates and save it to postgresql database. Is it possible to construct my classes using libpqxx API and return it to client or I need to develop these API on another layer after data selection ?

--
Best regards,
Sincerely yours,
Yuriy Rusinov.
Reply | Threaded
Open this post in threaded view
|

Re: C++ classes as result of selection in postgresql database

Dmitry Igrishin
пт, 14 сент. 2018 г. в 17:23, Yuriy Rusinov <[hidden email]>:
>
> Dear colleagues !
>
> I have to calculate road graph from coordinates and save it to postgresql database. Is it possible to construct my classes using libpqxx API and return it to client or I need to develop these API on another layer after data selection ?
With the Pgfe C++ API (https://github.com/dmitigr/pgfe) it's possible
to define any class and specialize the structure template Conversions
to convert the data nicely from the database to this class and back.

Reply | Threaded
Open this post in threaded view
|

Re: C++ classes as result of selection in postgresql database

Yuriy Rusinov
Thanks a lot. 

On Fri, Sep 14, 2018 at 6:41 PM Dmitry Igrishin <[hidden email]> wrote:
пт, 14 сент. 2018 г. в 17:23, Yuriy Rusinov <[hidden email]>:
>
> Dear colleagues !
>
> I have to calculate road graph from coordinates and save it to postgresql database. Is it possible to construct my classes using libpqxx API and return it to client or I need to develop these API on another layer after data selection ?
With the Pgfe C++ API (https://github.com/dmitigr/pgfe) it's possible
to define any class and specialize the structure template Conversions
to convert the data nicely from the database to this class and back.


--
Best regards,
Sincerely yours,
Yuriy Rusinov.