Notes from porting a paginated-query pattern from a Postgres project to SQLite
(sqlx 0.8.x). The query assembled its response shape — an items array plus a
meta object — inside SQL, then tried to map it with query_as!. It worked on
pg. On SQLite it failed in ways that took three iterations to fully understand.
query_as!never deserializes. It expands to a struct literal whose