module documentation
(source)

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 ​Filesystem​Metadata​Store Undocumented
Class ​Metadata​Store Generic interface for metadata storage.
Class ​Sqlite​Metadata​Store Undocumented
Function connect​_db Undocumented
Function random​_string Undocumented
Constant MIGRATIONS Undocumented
Constant SCHEMA Undocumented
def connect_db(db_file): (source)

Undocumented

Parameters
db​_file:strUndocumented
Returns
sqlite3.ConnectionUndocumented
def random_string(): (source)

Undocumented

Returns
strUndocumented
MIGRATIONS: List[str] = (source)

Undocumented

Value
[]
SCHEMA: str = (source)

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);
...