I may be missing something, but I'm not sure you need to detect COUNT(*) specifically.
For a query that's just SELECT COUNT(*) FROM… SQLite will just iteratively call xNext/xEof to count rows. As long as you don't actually load data until some is requested by xColumn, what's the point?
And the above (lazily loading only the requested columns) is exactly what I'd expect this extension to be doing already.
For a query that's just SELECT COUNT(*) FROM… SQLite will just iteratively call xNext/xEof to count rows. As long as you don't actually load data until some is requested by xColumn, what's the point?
And the above (lazily loading only the requested columns) is exactly what I'd expect this extension to be doing already.