You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+18-1Lines changed: 18 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -161,7 +161,24 @@ _TBD: what this means for `*asBuffer` options._
161
161
162
162
### `additionalMethods` (object)
163
163
164
-
Format TBD.
164
+
In the form of:
165
+
166
+
```js
167
+
{
168
+
foo:true,
169
+
bar:true
170
+
}
171
+
```
172
+
173
+
Which says the db has two methods, `foo` and `bar`, that are not part of the `abstract-leveldown` interface. It might be used like so:
174
+
175
+
```js
176
+
if (db.supports.additionalMethods.foo) {
177
+
db.foo()
178
+
}
179
+
```
180
+
181
+
For future extensibility, the properties of `additionalMethods` should be taken as truthy rather than strictly typed booleans. We may add additional metadata (see [#1](https://github.com/Level/supports/issues/1)).
0 commit comments