On 31 Dec 2018, at 8:18pm, Jesse Rittner <rittneje+sql...@gmail.com> wrote:

> I'm trying to write a function to run a query with a timeout. If the timeout
> expires, the query must stop execution within a "reasonable" amount of time.

There is no rule that you must continue to call sqlite3_step() until it runs 
out of rows.  You can calculate an "end time" yourself, check it each time 
you're ready to call sqlite3_step(), and jump straight to sqlite3_finalize() if 
your time is up.

No threads, no interrupts, no clearup of hooks.

Simon.
_______________________________________________
sqlite-users mailing list
sqlite-users@mailinglists.sqlite.org
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to