module documentation

Interfaces for accessing metadata. We provide two implementations. * The "classic" file system implementation, which uses a directory structure of files. * A hokey sqlite backed implementation, which basically simulates the file system in an effort to work around poor file system performance on OS X.

Class FilesystemMetadataStore Undocumented
Class MetadataStore Generic interface for metadata storage.
Class SqliteMetadataStore Undocumented
Function connect_db Undocumented
Function random_string Undocumented
Constant MIGRATIONS Undocumented
Constant SCHEMA Undocumented
def connect_db(db_file: str) -> sqlite3.Connection: (source)

Undocumented

def random_string() -> str: (source)

Undocumented

MIGRATIONS: list[str] = (source)

Undocumented

Value
[]

Undocumented

Value
'''
CREATE TABLE IF NOT EXISTS files (
    path TEXT UNIQUE NOT NULL,
    mtime REAL,
    data TEXT
);
CREATE INDEX IF NOT EXISTS path_idx on files(path);
...