This repository was archived by the owner on Dec 2, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 3
This repository was archived by the owner on Dec 2, 2024. It is now read-only.
implement manifest functionality #35
Copy link
Copy link
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
At the moment deferred-leveldown looks to see if the underlying store has .approximateSize() and if so, adds a function so it can be deferred. This is only a temporary solution and we would need something more generic that can defer any method.
see
deferred-leveldown/deferred-leveldown.js
Lines 51 to 55 in 5b53018
| if (self._db.approximateSize) { | |
| self.approximateSize = function () { | |
| return this._db.approximateSize.apply(this._db, arguments) | |
| } | |
| } |
and
deferred-leveldown/deferred-leveldown.js
Lines 64 to 71 in 5b53018
| if (typeof self._db.approximateSize === 'function') { | |
| self.approximateSize = function () { | |
| this._operations.push({ | |
| method: 'approximateSize', | |
| args: arguments | |
| }) | |
| } | |
| } |
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request