> A thought: perhaps this could be in the Example/Tour with some comments
> as "...allow easy conversion of sqlite3 library to apsw".
The query patterns tip covers the best ways of structuring queries.
The sqlite3 pattern best matches how other databases work where they do track origin tables and columns names more robustly, which is why sqlite3 copies that pattern. But it doesn't match how SQLite works and isn't a good approach for SQLite.
That said, you are the first to ask this, and I generally wait till at least a few more do, especially to get an understanding of what the underlying issue being addressed is.
If I had a magic wand, what I really want is a way of expressing the query that automatically made corresponding variables spring to light, didn't require duplication inside the SQL and in the Python, and could be checked by automatic tools.
Another approach is the aiosql package which encourages queries to be in a separate version controlled file:
https://nackjicholson.github.io/aiosql/defining-sql-queries.html
Hopefully the Python community will figure out something straightforward in the future.
Roger