local#

Use local file system as the storage backend.

sqlalchemy_mate.patterns.large_binary_column.local.get_path(pk: str, column: str, binary: bytes, dir_root: Path) Path[source]#

todo

class sqlalchemy_mate.patterns.large_binary_column.local.WriteFileBackedColumnResult(column: str, old_path: pathlib.Path, new_path: pathlib.Path, executed: bool, cleanup_function: Callable, cleanup_old_kwargs: Optional[Dict[str, Any]] = None, cleanup_new_kwargs: Optional[Dict[str, Any]] = None)[source]#
sqlalchemy_mate.patterns.large_binary_column.local.clean_up_new_file_when_create_or_update_row_failed(new_path: Path, executed: bool)[source]#

todo

sqlalchemy_mate.patterns.large_binary_column.local.clean_up_old_file_when_update_row_succeeded(old_path: Optional[Path], executed: bool)[source]#

todo

class sqlalchemy_mate.patterns.large_binary_column.local.WriteFileApiCall(column: str, binary: bytes, old_path: Optional[pathlib.Path], extra_write_kwargs: Optional[Dict[str, Any]] = <factory>)[source]#
class sqlalchemy_mate.patterns.large_binary_column.local.WriteFileResult(write_file_backed_column_results: List[sqlalchemy_mate.patterns.large_binary_column.local.WriteFileBackedColumnResult])[source]#