ghost.database
v0.0.6
Published
ghost db is A simple and flexible Node.js database module for managing user data with support for setting, adding, removing values, and array operations
Downloads
3
Maintainers
Readme
message By GhostDev
i have to update With new feature and after Stable will realase on Npmjs this db will have over 100 distinct features and functionalities be final update :) one file has 300 Line need to reduce
plan
soon will add type and reduce file line
How to use?
open setup
nitro.db feature
The provided code for the NitroDB
class includes several features and functionalities. Here's a breakdown:
- File System Operations: Utilizes the
fs
module for file read and write operations. - Path Handling: Utilizes the
path
module for handling file paths. - Logging: Utilizes the
winston
module for logging errors to the console and a file. - Event Handling: Extends the
EventEmitter
class for event handling. - Encryption: Utilizes the
crypto
module for encryption and decryption of data. - Custom Serialization/Deserialization: Implements custom logic for serializing and deserializing data.
- Schema Validation: Validates the schema of the database.
- Versioning: Supports versioning of the database.
- Data Manipulation Methods: Provides methods for setting, pushing, querying, and resetting values in the database.
- Transaction Support: Supports transactional operations.
- Backup and Restore: Provides methods for backing up and restoring the database.
- JSON Serialization: Implements
toJSON
method for converting the database to JSON format. - Custom Hooks: Supports custom hooks for executing code before and after setting values in the database.
- Query Optimization: Provides a method for optimizing queries.
- Batch Operations: Supports batch set and push operations for multiple key-value pairs.
- Cache Integration: Integrates a cache for frequently accessed data.
- Data Compression: Implements methods for compressing and decompressing data.
In total, there are 17 distinct features and functionalities implemented in the provided code.