Is it possible to map column names to indices for sqlite3_get_table?

I could use sqlite3_prepare with my statement string and then calls to 
sqlite3_column_name() to build a mapping. I could then dispose of the prepared 
statement and make my call to sqlite3_get_table, relying on the column mapping 
being the same since it would be the same statement to map column names to row 
values in the result returned.

However, this means preparing the statement just to build the mapping. Is there 
a better way?

I would like to do this so I can use the random access to results that 
sqlite3_get_table affords with the convenience of referencing columns by name,

Thanks,
Dave


-----------------------------------------------------------------------------
To unsubscribe, send email to [EMAIL PROTECTED]
-----------------------------------------------------------------------------

Reply via email to