Normalize identifiers so empty strings do not poison UNIQUE columns.
(value: Optional[str])
| 27 | # defensively so this module still works standalone (tests and scripts load |
| 28 | # it directly by file path, without paperflow on sys.path). |
| 29 | from paperflow.runtime import db_path as _resolve_db_path |
| 30 | |
| 31 | _DEFAULT_DB_PATH = _resolve_db_path() |
| 32 | except Exception: |
| 33 | pass |
| 34 | |
| 35 | # PAPERFLOW_DB_PATH lets deployments relocate runtime state (containers, shared |
| 36 | # volumes, multi-profile setups) without editing this module. Tests reassign the |
| 37 | # module-level DB_PATH directly, so get_connection() resolves it per call. |
no outgoing calls
no test coverage detected