FastATP

SqliteStorage

A class in fastatp.repo.storage (source).

SqliteStorage(directory: str | Path)

The built-in durable storage: a directory holding blocks.sqlite (blocks and heads, one file, so a consistent copy of it is the whole repo) and blobs.sqlite (created when first used). Several processes may open the same directory; sqlite serializes the writers and the head swap decides who wins.

Attributes

Methods

close

close() -> None