<p>No, there's a (very) small chance that it picks up entries that have been deleted. It's like the .recover command of the sqlite cli:</p>
<p>Like the ".dump" command, ".recover" attempts to convert the entire contents of a database file to text. The difference is that instead of reading data using the normal SQL database interface, ".recover" attempts to reassemble the database based on data extracted directly from as many database pages as possible. If the database is corrupt, ".recover" is usually able to recover data from all uncorrupted parts of the database, whereas ".dump" stops when the first sign of corruption is encountered.</p>
<p>BerkeleyDB has a db_recover utility for this. My initial plan was to also create a ndb_recover tool, but then I realized it was way easier to integrate it into the rpmdb command.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/rpm-software-management/rpm/pull/1042?email_source=notifications&email_token=ADLPZU3ZZZ6M2AF6DSXVX7LRCO4VTA5CNFSM4KPFGYY2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOELQAKFI#issuecomment-585106709">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ADLPZU7DGUUIPOKQQUP2DRDRCO4VTANCNFSM4KPFGYYQ">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ADLPZU773UGAYDB4QDCY3PLRCO4VTA5CNFSM4KPFGYY2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOELQAKFI.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/rpm-software-management/rpm/pull/1042?email_source=notifications\u0026email_token=ADLPZU3ZZZ6M2AF6DSXVX7LRCO4VTA5CNFSM4KPFGYY2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOELQAKFI#issuecomment-585106709",
"url": "https://github.com/rpm-software-management/rpm/pull/1042?email_source=notifications\u0026email_token=ADLPZU3ZZZ6M2AF6DSXVX7LRCO4VTA5CNFSM4KPFGYY2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOELQAKFI#issuecomment-585106709",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>