@zanix/datamaster@0.4.0Built and signed on GitHub ActionsBuilt and signed on GitHub Actions
Zanix Datamaster provides unified database and cache connectors for the Zanix ecosystem. Includes MongoDB support, schema tools, and data access policies — built for Deno and micro-applications.
Creates a decryptable object for data protection.
Creates an unmaskable object for data protection.
Creates a verifiable object for hashed data.
Set the access policy for a given data field (string or string array), applying the specified base getter function.
Decrypts a message using either AES-GCM (symmetric) or RSA-OAEP (asymmetric) encryption.
Encrypts a message using either AES-GCM (symmetric) or RSA-OAEP (asymmetric) encryption.
Hash a message using unidirectional encryption (Base64 SHA).
Masks the provided message(s) using a secret key for obfuscation or reversible masking.
Unmasks (reverses) the provided masked message(s) using the same secret key and configuration that were used during masking.
Defines the data protection and access control behavior for a specific data field (either a single string field or an array of strings).
Creates a schema accessor that transparently applies data protection operations
(such as decrypt or unmask) when reading a protected field.
Represents a string that may have been protected through encryption.
A higher-order component (HOC) that adds a model to the ProgramModule's model registry.
This function enhances the given model by adding it to a collection or registry of models,
optionally specifying the database type (defaulting to 'mongo').
Recursively finds all paths in a schema that have getters or setters defined.
Recursively collects all nested (sub)schemas from a given Mongoose schema.
Base class for interacting with a local SQLite database.
Manages keyed locks using semaphores to ensure controlled, concurrent access to resources identified by a specific key.
Configuration for connecting to MongoDB.
Type representing a single seeder handler function for Mongo.
A frozen singleton instance of the Program.
Returns all keys currently stored in the redis cache. Uses SCAN for efficiency instead of KEYS, so it works well with large datasets.
Seeder handler that ensures a single document exists in the collection, identified by its id.
If the document does not exist, it will be inserted; if it exists, it remains unchanged.
Seeder handler that ensures multiple documents exist in the collection, each identified by its id.
If a document does not exist, it will be inserted; if it exists, it remains unchanged.
Rotates data protection keys across the database by re-encrypting or re-masking all protected fields using the new set of secrets or keys.
Enables and applies the data access policy during Mongoose document transformation
(toJSON or toObject).
Reverses the data protection policy during Mongoose document transformations
(toJSON or toObject).
Transforms a data structure by applying the provided transformation functions to specific paths.
Recursively transforms a data structure (object, array, Map, etc.) by applying the provided transformation functions.
Applies a transformation function to specific paths in a data structure at a shallow (superficial) level.
Represents a string that may have been protected through masking.
Represents a string that may have been protected through hashing.
Core cache provider with multi-level caching (local + external).
A lightweight and fast key-value local store backed by SQLite, with optional TTL (Time-To-Live) support.
Manages the connection lifecycle with a MongoDB database using Mongoose, providing utilities for model retrieval, schema processing, and connector customization.
A Redis-backed cache implementation with automatic retry and command queuing.
Core cache provider loader for Zanix.
Core database connector loader for Zanix.
Core Zanix KV connector loader for the Zanix framework.