mozilla/mentat

Make query builder generalize past `&mut Store`

Open

#652 创建于 2018年4月23日

在 GitHub 查看
 (3 评论) (0 反应) (0 负责人)Rust (116 fork)github user discovery
A-queryenhancementhelp wanted

仓库指标

Star
 (1,661 star)
PR 合并指标
 (PR 指标待抓取)

描述

Right now, the query builder exposes a simple interface that accepts &mut Store. It's pretty restrictive, since Store is a simple type and since taking a mutable reference enforces linear ordering.

This ticket tracks allowing callers to provide something that can yield the pair of Conn and SQLite connection, so that callers that care about their own connection management can take care of things on their own.

As an aside, I'm surprised that this is as restrictive as I am finding it while writing tests!

贡献者指南