danburkert / lmdb-rs

Safe Rust bindings for LMDB
Apache License 2.0
172 stars 87 forks source link

add stat() for sub-database to txn #50

Open williballenthin opened 5 years ago

williballenthin commented 5 years ago

This PR adds a .stat() routine to transaction objects so that a caller may inspect statistics for a specific database. This is useful when there are multiple databases open in a single environment.

Please don't hesitate to provide feedback or further requests, as I'm still coming to terms with Rust, esp. unsafe.