1.1.0 • Published 3 years ago

@memsdb/storage-fs v1.1.0

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

A storage engine for MemsDB. This engine will store the data for a document the filesystem. As each document is an individual file, it's recommended you only use this on filesystems that allow for many files in a single directory. As this is synchronous, it's also recommended you don't store large documents.

The data can be retrieved via doc.data

import { DB } from '@memsdb/core'
import { FSStorage } from '@memsdb/storage-fs'

const db = new DB('test', {
  backupProvider: new FSStorage({
    saveDirectory: './data',    // default value. Where to store the objects.
    prefix: `${this.db.name}_`  // default value. Any prefix will get prepended to the document ID for the filename
  }),
})
1.1.0

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago

0.4.0

3 years ago

0.3.1

3 years ago

0.3.0

3 years ago

0.1.0

3 years ago

0.0.1

3 years ago