DBDirectoryIndexer

class of dascore.io.index.indexer source

DBDirectoryIndexer(
    path ,
    index_path = None,
    snap = None,
)

Index a directory of fiber files with a database backend.

Parameters

Parameter Description
path The directory to index.
index_path Where to keep the index; defaults to a hidden entry at the top of
the data directory, or the dascore cache when the directory is
read-only or is itself one store (e.g. zarr).
snap The dimensions each file’s patches are read on a grid, as in
read. The index records it beside
dascore.config.max_shift, and an index scanned under others is
rescanned.

Methods

Name Description
close Close the backend.
ensure_updated Run the initial update if the index was never populated.
update Update the index: scan new/changed sources, drop removed ones.