HomePhabricator

walletdb: Handle cursor internally

Description

walletdb: Handle cursor internally

Summary:
Instead of returning a Dbc (BDB cursor object) and having the caller
deal with the cursor, make BerkeleyBatch handle the cursor internally.

This prepares BerkeleyBatch to work with other database systems as Dbc
objects are BDB specific.

This is a backport of core#19308

Test Plan: ninja all check-all

Reviewers: #bitcoin_abc, majcosta

Reviewed By: #bitcoin_abc, majcosta

Subscribers: majcosta

Differential Revision: https://reviews.bitcoinabc.org/D9969

Details

Provenance
Andrew Chow <achow101-github@achow101.com>Authored on May 15 2020, 01:17
PiRKCommitted on Aug 30 2021, 06:31
PiRKPushed on Aug 30 2021, 06:31
Reviewer
Restricted Project
Differential Revision
D9969: walletdb: Handle cursor internally
Parents
rABC13597e2d22aa: doc: Span pitfalls
Branches
Unknown
Tags
Unknown

Event Timeline