You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Question: delQnf is used to delete a single escrow value at a given key. I am attempting to replace this with functionality from subing.Suber in eventing.py. the Suber class does not have built in functionality for this, as its rem method removes the everything stored at the key, rather than a single value. Which, if any, of the following approaches should I take?
use a different class, perhaps IoSetSuber, as the rem function from that class seems suited to the task
use get and pin methods from the Suber class to overwrite the set of values at key with the the values minus the deleted value
You have to look at the existing definition of theqnf database. If is an "insertion order set", (usually indicated by dupsort=True in the table creation), you HAVE to use IoSetSuber. That is the only way this will be a proper replacement.
Currently the
.qnfs
sub db uses the "legacy" 😬 approach of creating aBaser
property and adding methods toBaser
The sub db created here:
keripy/src/keri/db/basing.py
Line 997 in ce3c235
The additional functionality added to
Baser
here:keripy/src/keri/db/basing.py
Line 3031 in ce3c235
Newer sub dbs that have been added using the
subing.Suber
and associated classes:keripy/src/keri/db/subing.py
Line 197 in ce3c235
The chore is to update usages of the
.qnfs
associated functionality fromBaser
and implement it as asubing.Suber
:self.qnfs = subing.Suber(db=self, subkey="qnfs.")
**.db.addQnf
becomes**db.qnfs.add
The text was updated successfully, but these errors were encountered: