mozilla/mentat

Make query builder generalize past `&mut Store`

Open

#652 geöffnet am 23. Apr. 2018

Auf GitHub ansehen
 (3 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Rust (116 Forks)github user discovery
A-queryenhancementhelp wanted

Repository-Metriken

Stars
 (1.661 Stars)
PR-Merge-Metriken
 (PR-Metriken ausstehend)

Beschreibung

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!

Contributor Guide