Skip to main content

v1

file_metadata_misses record, v1 — canonical aliases.

Consumers and the record registry import from here and never touch the inner module names, mirroring types/root_link_targets/v1/__init__.py.

Module​

Submodules​

Classes​

ORM​

class ORM(**kwargs):

SQLAlchemy model for the file_metadata_misses cache table.

One row per file_metadata row whose file a full walk did not find and a stat confirmed gone. The inventory row is pruned only when a later walk misses the file again, a grace period after the first miss, so a share that answers "not found" for a while does not empty the inventory. A row is removed when its file is found again, or when its inventory row is pruned.

A simple constructor that allows initialization from kwargs.

Sets attributes on the constructed instance using the names and values in kwargs.

Only keys that are present as attributes of the instance's class are allowed. These could be, for example, any mapped columns or relationships.

Variables​

  • file_path : sqlalchemy.orm.base.Mapped[str]
  • first_missed_at : sqlalchemy.orm.base.Mapped[str]
  • last_missed_at : sqlalchemy.orm.base.Mapped[str]
  • run_id : sqlalchemy.orm.base.Mapped[str | None]
  • tags : sqlalchemy.orm.base.Mapped[dict[str, typing.Any] | None]

Record​

class Record(**data: Any):

An inventory file that a full walk did not find and a stat called gone.

first_missed_at starts the grace period after which a later miss prunes the inventory row.

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

Variables​

  • static file_path : str
  • static first_missed_at : str
  • static last_missed_at : str
  • static model_config
  • static run_id : str | None