info() should always be read-only
This commit is contained in:
parent
e186e13cd2
commit
388e94ae80
2 changed files with 12 additions and 2 deletions
|
|
@ -1,6 +1,10 @@
|
||||||
# Changelog
|
# Changelog
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- **`info` command**: Open database in read-only mode to prevent write failures on read-only filesystems
|
||||||
|
|
||||||
## [0.31.0] - 2026-02-20
|
## [0.31.0] - 2026-02-20
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|
|
||||||
|
|
@ -80,10 +80,16 @@ class HaikuRAGApp: # pragma: no cover
|
||||||
|
|
||||||
versions = get_package_versions()
|
versions = get_package_versions()
|
||||||
|
|
||||||
# Get comprehensive table statistics (this also runs migrations)
|
|
||||||
from haiku.rag.store.engine import Store
|
from haiku.rag.store.engine import Store
|
||||||
|
|
||||||
store = Store(self.db_path, config=self.config, skip_validation=True)
|
store = Store(
|
||||||
|
self.db_path,
|
||||||
|
config=self.config,
|
||||||
|
skip_validation=True,
|
||||||
|
read_only=True,
|
||||||
|
skip_migration_check=True,
|
||||||
|
before=self.before,
|
||||||
|
)
|
||||||
table_stats = store.get_stats()
|
table_stats = store.get_stats()
|
||||||
|
|
||||||
# Read settings after Store init (migrations have run)
|
# Read settings after Store init (migrations have run)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue