diff --git a/README.md b/README.md index cf987b9..42210a5 100644 --- a/README.md +++ b/README.md @@ -98,10 +98,28 @@ Does the database implement `db.snapshot()` and do read methods accept a `snapsh | `classic-level` | Not yet | | `memory-level` | Not yet | | `browser-level` | ❌ | +| `many-level` | TBD | | `rave-level` | TBD | +### `has` (boolean) + +Does the database implement `has()` and `hasMany()`? Tracked in [Level/community#142](https://github.com/Level/community/issues/142). + +
+Support matrix + +| Module | Has | +| :-------------- | :------ | +| `classic-level` | Not yet | +| `memory-level` | Not yet | +| `browser-level` | Not yet | +| `many-level` | Not yet | +| `rave-level` | Not yet | + +
+ ### `permanence` (boolean) Does data survive after process (or environment) exit? Typically true. False for [`memory-level`](https://github.com/Level/memory-level). diff --git a/index.d.ts b/index.d.ts index 23a978d..7ac0391 100644 --- a/index.d.ts +++ b/index.d.ts @@ -31,6 +31,11 @@ export interface IManifest { */ snapshots: boolean + /** + * Does the database implement `has()` and `hasMany()`? + */ + has: boolean + /** * Does data survive after process (or environment) exit? */ diff --git a/index.js b/index.js index 618aa6c..1d06413 100644 --- a/index.js +++ b/index.js @@ -11,6 +11,7 @@ exports.supports = function supports (...manifests) { implicitSnapshots, explicitSnapshots, snapshots: implicitSnapshots, + has: manifest.has || false, permanence: manifest.permanence || false, seek: manifest.seek || false, createIfMissing: manifest.createIfMissing || false,