I'm modelling this stack after @kamil's recent one (see D12080) that introduced functions to `SQLiteAPI`. First I'm introducing the shared SQLite C++ code, and then I will introduce the layers on `native` and `web` that will interact with it. This diff also contains some web-specific customizations necessary on the SQLite C++ code.
This query will be used for:
1. Querying for a sidebar source's latest edit at sidebar creation time ([ENG-8788](https://linear.app/comm/issue/ENG-8788/sqliteapi-interface-to-query-for-a-messages-latest-edit))
2. Querying for a messages edits and reactions for search results ([ENG-87890](https://linear.app/comm/issue/ENG-8789/sqliteapi-interface-to-query-for-a-messages-edits-and-reactions))
Depends on D12736