
6 Sep
2025
6 Sep
'25
3:57 p.m.
On Fri, Sep 5, 2025 at 11:55 PM Andrzej Krzemienski via Boost <boost@lists.boost.org> wrote:
Unless it is possible in those cases to pass a pointer to `connection` object from sqlite to user code, the next best option, as I see it, would be to have a connection_view` class, much like we have `string` and `string_view`.
Klemens, since this has been brought up regularly, what do you think about introducing a connection_ref type that is explicitly non-owning? The use cases for a non-owning connection seem limited to modules and sqlite::context<...>::get_connection(). Passing an instance of a connection_ref seems reasonable.