C++ classes as result of selection in postgresql database

Started by Yuriy Rusinovover 7 years ago3 messagesgeneral
Jump to latest
#1Yuriy Rusinov
yrusinov@gmail.com

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.

#2Dmitriy Igrishin
dmitigr@gmail.com
In reply to: Yuriy Rusinov (#1)
Re: C++ classes as result of selection in postgresql database

пт, 14 сент. 2018 г. в 17:23, Yuriy Rusinov <yrusinov@gmail.com>:

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.

#3Yuriy Rusinov
yrusinov@gmail.com
In reply to: Dmitriy Igrishin (#2)
Re: C++ classes as result of selection in postgresql database

Thanks a lot.

On Fri, Sep 14, 2018 at 6:41 PM Dmitry Igrishin <dmitigr@gmail.com> wrote:

пт, 14 сент. 2018 г. в 17:23, Yuriy Rusinov <yrusinov@gmail.com>:

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.