I am trying to use SQLite in C.
The interface I know exists for querying,
sqlite3_exec
Allows querying data only asynchronously (as far as I found in my searches).
Is there any way to get a result to a "Select count(*) ..." from an SQLite DB synchronously without having to implement something that waits for the data, and returns it to the same function?
I practically want to implement a "howManyItems" method that returns the actual result to its caller...
Thanks.
sqlite3_exectakes a callback that is called with each row. Yes, thesqlite3_preparefunctions are what you want.