Closed vweevers closed 6 years ago
In addition, if _db
is guaranteed to be there, we no longer need these "proxy" methods:
Should it be iterator.db
(public) or iterator._db
?
Should it be iterator.db (public) or iterator._db?
I have no strong opinion. If public it should be documented I guess.
Let's go with public + docs. No particular reason.
So that iterators and chained batches will always have a
db
property (or_db
, normalizing that is a second question). This prevents garbage collection ofdb
.https://github.com/Level/abstract-leveldown/blob/7b079c5510f0ae354ae9503849ac7d9a0aa01551/abstract-iterator.js#L1-L2
https://github.com/Level/abstract-leveldown/blob/7b079c5510f0ae354ae9503849ac7d9a0aa01551/abstract-chained-batch.js#L1-L2
.db
(already the case).db