anymodel.storages.filesystem

Filesystem-based storage implementation.

This module provides a storage backend that persists entities as files on the filesystem, with hierarchical directory structure for efficient access.

Classes

class anymodel.storages.filesystem.FileSystemStorage(path)[source]

Bases: Storage

Storage backend that persists entities to the filesystem.

Stores entities as pickled files in a hierarchical directory structure based on entity IDs for efficient access to large numbers of entities.

__init__(path)[source]
find_one(tablename, criteria)[source]
Return type:

Optional[Mapping[str, Any]]

find_all()[source]
find_many(tablename, criteria, *, limit=None, offset=None)[source]
Return type:

Iterable[Mapping[str, Any]]

insert(tablename, values)[source]
Return type:

Mapping[str, Any]

update(tablename, criteria, values)[source]
Return type:

None

delete(tablename, identity)[source]
Return type:

None