qdb_getresult()

Return the result of an SQL statement

Synopsis:

#include <qdb/qdb.h>

qdb_result_t* qdb_getresult(qdb_hdt_t *hdl);

Arguments:

hdl
A pointer to the database handle

Library:

qdb

Description:

After running a SELECT statement on the database, you can retrieve its result using this function. All rows that matched the query are returned into one result, which is returned as a qdb_result_t structure. You can get further information about the result using these functions:

The result needs to be freed by calling qdb_freeresult() once you've finished using it.

Returns:

A pointer to the query result, or NULL if an error occurred (errno is set).

Classification:

QNX Neutrino

Safety:
Interrupt handler No
Signal handler No
Thread Yes

See also:

qdb_cell(), qdb_cell_length(), qdb_column_index(), qdb_column_name(), qdb_columns(), qdb_printmsg(), qdb_rows()