Storage operators¶
commons.storage_operators
¶
Storage backend factory.
Functions:
| Name | Description |
|---|---|
create_files |
Construct a :class: |
create_files
¶
create_files(engine: Engine | None = None) -> Files
Construct a :class:Files instance from configured :class:StorageSettings.
Dispatches on :attr:StorageSettings.mode:
local: returns :class:LocalFiles. Root isStorageSettings.local.rootif set, otherwiseAppSettings.data_dir / "files".sql: returns :class:SQLFiles(which pulls its engine from :class:DatabaseSettingsvia :func:database_operators.create_engine).azure: returns :class:AzureFilesconstructed fromStorageSettings.azure.