Class MongoStore<V>

Store based on MongoDB

MongoStore

Implements

Type Parameters

  • V

Implements

Constructors

Properties

db: Connection
eltTyp: Provable<V>
nodesModel: Model<IKV, {}, {}, {}, any>

Type declaration

    Type declaration

      Type declaration

        nodesOperationCache: any[]
        valuesModel: Model<IKV, {}, {}, {}, any>

        Type declaration

          Type declaration

            Type declaration

              valuesOperationCache: any[]

              Methods

              • Get nodes for a key. Error is thrown when a key that does not exist is being accessed.

                Parameters

                • key: Field

                Returns Promise<Field[]>

                {Promise<Field[]>}

                Memberof

                MongoStore

              • Get the value for a key. Error is thrown when a key that does not exist is being accessed.

                Parameters

                • path: Field

                Returns Promise<V>

                {Promise}

                Memberof

                MongoStore

              • Prepare put nodes for a key. Use the commit() method to actually submit changes.

                Parameters

                • key: Field
                • value: Field[]

                Returns void

                Memberof

                MongoStore

              • Protected

                Convert value string to a value of FieldElements type.

                Parameters

                • valueStr: string
                • eltTyp: Provable<V>

                Returns V

                {V}

                Memberof

                MongoStore

              • Protected

                Serialize the value of the FieldElements type into a string

                Parameters

                • value: V

                Returns string

                {string}

                Memberof

                RocksStore