qdb_getresult()

Return the result of a SELECT statement

Synopsis:

#include <qdb/qdb.h>

qdb_result_t *qdb_getresult( qdb_hdt_t *db );

Arguments:

db
A pointer to the database handle.

Library:

qdb

Description:

After running a SELECT statement on a database, you can retrieve the result by calling qdb_getresult(). All rows that match the query contained in the statement are returned in one result set, represented as a qdb_result_t structure. This structure is an opaque data type, but you can get further information about the result by using these functions:

When you're finished using the result, you must free it by calling qdb_freeresult().

Returns:

A pointer to the query result
Success.
NULL
An error occurred (errno is set).

Classification:

QNX Neutrino

Safety:  
Interrupt handler No
Signal handler No
Thread Yes