On 15 Oct 2019, at 4:34pm, Philippe RIO <51...@protonmail.ch> wrote:

> how could I know if I am reading the last record with
> sqlite  (sqlite3_step)?

Sorry, there's no way to do that for some arbitrary SELECT.  Because SQLite 
itself may not know.

SQLite does not always process your query and store all the results in memory.  
If there's an ideal index for your query, each call to _step() just one more 
row.  SQLite itself doesn't know it has reached the end until it gets an error 
because it runs off the end of the index.
_______________________________________________
sqlite-users mailing list
sqlite-users@mailinglists.sqlite.org
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to