SQL_Result Struct Reference

Data structure that holds the result of SQL functions and command. More...

#include <sqlite_functions.h>


Data Fields

StringListfieldList
 StringList that holds returned fields.
StringListresultList
 StringList that holds returned results.
int colCount
 Column count. Value 0 usually implied that no matched results.
int execResult
 sqlite3_exec result code. Initial value is -1, which means the result is not ready.
char * errMsg
 Eroor messages from sqlite3_exec().


Detailed Description

Note that returned results are represented in one-dimension. For example, if the returned results are:

NameWeight
Mary50
John70
Sumo120
result[0] stores "Mary", result[1] stores "50", result[2] stores "John", result[3] stores "70", result[4] stores "Sumo", result[5] stores "120".

Where result[X] is a short expression of stringList_index(resultList,x).

See also:
sqlite_result_new()

sqlite_result_free().


The documentation for this struct was generated from the following file:

Generated on Tue Jan 13 10:49:25 2009 for libUnihan by  doxygen 1.5.7.1