3 Commits

Author SHA1 Message Date
yoniebans
dbb47c5fe0 fix(persistence): forward only the storage interface's names from a handle
A Persistence handle forwarded every public attribute of the SQLite store it binds, so a caller could reach the SQLite-only holder (and through it a live sqlite3 connection), the store's file path and its executor, none of which a second backend would have. The handle now forwards the names PersistenceStore declares and ready; any other name raises AttributeError whether the handle is open or closed, so a getattr(handle, name, None) probe keeps answering None. A protocol name read after close still raises the closed-handle RuntimeError.

The test fixture's raw_holder and hosted_upload reach a handle's bound store directly, so the tests that read raw SQL through a handle keep working, and the two backend tests that called holder() on a handle use raw_holder.
2026-11-17 17:49:47 +01:00
yoniebans
5ad33d226e fix(persistence): refuse a closed handle while another holds the backend
A Persistence handle checked for close only before its first bind, so a handle closed while another handle on the same profile kept the shared backend open still answered every attribute and wrote through it. Every attribute read now raises "persistence handle used after close" once the handle is closed, whatever else holds the backend.
2026-11-17 17:49:47 +01:00
yoniebans
713dccf891 test(persistence/sqlite): holder, registry, schema and file cases
The SQLite backend's cases for the holder, the registry, the schema and the store files.
2026-11-17 17:49:47 +01:00