objects
objects
#
The objects table: every sealed tree, and the facts eviction ranks it by.
ObjectRow
dataclass
#
One sealed object and the facts eviction ranks it by.
Source code in capturegraph-lib/capturegraph/recipes/scratch/index/objects.py
all_rows(db)
#
delete(db, hash)
#
Forget hash entirely: its row, its names, and every pin on it.
Source code in capturegraph-lib/capturegraph/recipes/scratch/index/objects.py
get(db, hash)
#
The row for hash, if indexed.
Source code in capturegraph-lib/capturegraph/recipes/scratch/index/objects.py
raise_compute(db, hash, seconds)
#
Price hash at the costliest computation that ever produced it.
Source code in capturegraph-lib/capturegraph/recipes/scratch/index/objects.py
seed(db, hash, size_bytes)
#
Record hash as an object of size_bytes, unless already recorded.
Source code in capturegraph-lib/capturegraph/recipes/scratch/index/objects.py
total_size(db)
#
The bytes every indexed object adds up to.
touch(db, hash, score, now)
#
Record an access to hash with its updated use score.