Skip to content

Commit

Permalink
feat(MongoInstance): remove storage engine "devnull"
Browse files Browse the repository at this point in the history
  • Loading branch information
hasezoey committed Jun 9, 2023
1 parent 439d00b commit 6e38f99
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions docs/api/interfaces/mongo-memory-instance-opts.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,13 +85,12 @@ Only has a effect when started with [`MongoMemoryReplSet`](../classes/mongo-memo

## Helper Type `StorageEngine`

Typings: `StorageEngine = 'devnull' | 'ephemeralForTest' | 'mmapv1' | 'wiredTiger'`
Typings: `StorageEngine = 'ephemeralForTest' | 'mmapv1' | 'wiredTiger'`

Storage Engines supported by mongodb, see [MongoDB Storage Engines](https://www.mongodb.com/docs/manual/core/storage-engines/).

Custom Explanation:

- `devnull` is a storage engine which discards everything and cannot be read from.
- `ephemeralForTest` is a in-memory storage engine, which stores everything in RAM, which is great to use when wanting a simple database testing backend, is not the same as the Enterprise In-Memory Engine
- `mmapv1` is storage engine which stores data on disk, was removed in mongodb 4.2
- `wiredTiger` is a storage engine which stores data on disk.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ if (lt(process.version, '14.0.0')) {

const log = debug('MongoMS:MongoInstance');

export type StorageEngine = 'devnull' | 'ephemeralForTest' | 'mmapv1' | 'wiredTiger';
export type StorageEngine = 'ephemeralForTest' | 'mmapv1' | 'wiredTiger';

/**
* Overwrite replica member-specific configuration
Expand Down

0 comments on commit 6e38f99

Please sign in to comment.