mirror of
https://github.com/trailbaseio/trailbase.git
synced 2026-05-14 21:38:41 -05:00
e0ad4a898c
Note that this complicates the APIs, since it pushes the responsibility of declaring a query a read or write to the user to then be scheduled appropriately. Add `.(read_|)query_row_f` APIs similar to rusqlites `conn.query_row` accepting a `|row| -> Result<T>` to reduce the use of `Row` and `Rows`. Make benchmarks more isolated by not sharing a DB across runs accumulating writes.