public long GetEntriesCount(LightningDatabase db) { MDBStat stat; mdb_stat(_handle, db.Handle(), out stat); return stat.ms_entries.ToInt64(); }