import FSStorage from 'node-collections-boilerplate/node-collections-boilerplate-nahid/storage/FSStorage.js'
FSStorage
Extends:
Collection served from file system storage.
Very useful for rapid prototyping.
Constructor Summary
Public Constructor | ||
public |
constructor(options: StorageOptions) |
Member Summary
Public Members | ||
public |
dirname: * folder path where data is kept |
|
public |
list: * Mapping between id and last modified data. |
Method Summary
Public Methods | ||
public |
createRecord(record: *): * |
|
public |
deleteRecord(record: *): * |
|
public |
listItems(): * Return a mapping between record id and last modified data at directory. |
|
public |
readAllRecords(): * |
|
public |
readRecord(record: *): * |
|
public |
async updateCheckImpl(): * |
|
public |
updateRecord(record: *): * |
Public Constructors
public constructor(options: StorageOptions) source
Params:
Name | Type | Attribute | Description |
options | StorageOptions | see fields |
Public Members
Public Methods
public listItems(): * source
Return a mapping between record id and last modified data at directory. Used for update checking.
Return:
* |