Instead of using sqlite3_exec() and a callback, use sqlite3_prepare_v2() on
your statement and then run it with sqlite3_step() in a loop (there will be
one iteration be row of the result set).  sqlite3_step() will return
something other than SQLITE_ROW when it's done.   When it returns
SQLITE_ROW, you can then use the sqlite3_column_*() apis to look at the
result row.

HTH.
-Shane

On Fri, Jan 22, 2010 at 10:57 AM, gary clark <burslem2...@yahoo.com> wrote:

>
> Hiya,
>
> Got a quick question. I perform the following on a table:
>
> select * from table
>
> How do I know when the select has completed all its transactions?
>
> sqlite3_exec(db,query.c_str(),callback, this, &db_err);
>
> I'm using the above statement,the callback is getting called as expected.
>
> Thanks,
> garyc
>
> _______________________________________________
> sqlite-users mailing list
> sqlite-users@sqlite.org
> http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users
>
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to