mozilla/mentat

Make query builder generalize past `&mut Store`

開放

#652 建立於 2018年4月23日

 (3 則留言) (0 個反應) (0 位負責人)Rust (116 個分叉)github user discovery
A-queryenhancementhelp wanted

倉庫指標

星標
 (1,661 顆星)
PR 合併指標
 (30 天內沒有已合併 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!

貢獻者指南