Re: [GENERAL] Asynchronous queries with callbacks.

2011-01-05 Thread Peter Geoghegan
2011/1/5 Вячеслав Блинников : > I intended to put queries into queue (along with callback and param data) > and after fetching each result via "PQgetResult()" obtain callback and param > from the queue, but documentation says that "PQexec can return only one > PGresult structure. If the submitted q

[GENERAL] Asynchronous queries with callbacks.

2011-01-05 Thread Вячеслав Блинников
Hello! I connect to PostgreSQL database in my C++ program via libpq and I need to implement the function like "void SendQuery(char* queryString, void (*callback)(void*))" which will . But how to bind the callback function data (and some parameters) to database request? I intended to put queries int