DataStoreJson class

This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

A Veramo agent storage plugin that implements the IDataStore and IDataStoreORM methods using one big JSON object as a backend.

Each update operation triggers a callback that can be used to either save the latest state of the agent data or compute a diff and log only the changes.

This plugin must be initialized with a VeramoJsonStore, which serves as the JSON object storing data in memory as well as providing an update notification callback to persist this data. The JSON object can be pre-populated with data from previous sessions.

This API may change without a BREAKING CHANGE notice.

Signature:
export declare class DataStoreJson implements IAgentPlugin
Implements: [IAgentPlugin](/docs/api/core.iagentplugin)

Constructors

ConstructorModifiersDescription
(constructor)(jsonStore)(BETA) Constructs a new instance of the DataStoreJson class

Properties

PropertyModifiersTypeDescription
methodsIDataStore & IDataStoreORM(BETA)
schemaany(BETA)

Methods

MethodModifiersDescription
dataStoreDeleteVerifiableCredential(args)(BETA)
dataStoreGetMessage(args)(BETA)
dataStoreGetVerifiableCredential(args)(BETA)
dataStoreGetVerifiablePresentation(args)(BETA)
dataStoreORMGetIdentifiers(args, context)(BETA)
dataStoreORMGetIdentifiersCount(args, context)(BETA)
dataStoreORMGetMessages(args, context)(BETA)
dataStoreORMGetMessagesCount(args, context)(BETA)
dataStoreORMGetVerifiableCredentials(args, context)(BETA)
dataStoreORMGetVerifiableCredentialsByClaims(args, context)(BETA)
dataStoreORMGetVerifiableCredentialsByClaimsCount(args, context)(BETA)
dataStoreORMGetVerifiableCredentialsCount(args, context)(BETA)
dataStoreORMGetVerifiablePresentations(args, context)(BETA)
dataStoreORMGetVerifiablePresentationsCount(args, context)(BETA)
dataStoreSaveMessage(args)(BETA)
dataStoreSaveVerifiableCredential(args)(BETA)
dataStoreSaveVerifiablePresentation(args)(BETA)