Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
databank-disk
Advanced tools
The disk driver provides on-disk storage of data -- one file per object.
Each databank is mapped to a directory; each type is a sub-directory of the main databank directory.
To create a disk databank, use the Databank.get()
method:
var Databank = require('databank').Databank;
var db = Databank.get('disk', {dir: '/var/lib/mydatabank'});
The driver takes the following parameters:
schema
: the database schema, as described in the Databank README.dir
: main directory for the databank. Default is /var/lib/diskdatabank
.mktmp
: if truthy, dir
will be ignored, and a new temporary directory
under os.tmpDir()
will be made. The temporary dir will be deleted when
the databank is disconnected.mode
: creation mode for the main databank dir and its subdirs; default is 0660
.hashDepth
: files under the type subdirs are stored according to a hash
of the id; for more efficient retrieval, there are hashed subdirs under each dir.
So the state
object stored under BRh1Az3
will be found at <maindir>/state/B/BR/BRh/BRh1Az3.json
.
This value sets the number of subdirs to use.FAQs
Databank driver for simple disk storage
The npm package databank-disk receives a total of 0 weekly downloads. As such, databank-disk popularity was classified as not popular.
We found that databank-disk demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.