summaryrefslogtreecommitdiffhomepage
path: root/src/sisudoc/spine_search.d
Commit message (Collapse)AuthorAgeFilesLines
* search: allow a db path from the environmentRalph Amissah2026-09-141-2/+85
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Allow a db path from the environment, and refuse what it cannot read Three changes related to opening the database: - provide an environment override for the db path: SPINE_SEARCH_DB_PATH overrides the compiled-in db_sqlite_path, beside the other environment.get calls. Path was the one setting without an override, (SERVER_NAME, REQUEST_SCHEME, SCRIPT_NAME, QUERY_STRING could come from the environment). This adds consistency and makes testing the search form database builds easier (as it no longer requires rebuilding the binary with a patched configuration for readily accessible db path) - selected_db is required to be a plain filename within the configured directory, the database is opened read only, and a database that is not there is named rather than created. - The form now reads PRAGMA user_version, as stamped by spine, and refuses a database built to another schema version, naming both versions and the two commands that rebuild it. A database carrying neither of the tables it joins is refused the same way. sqlite_db_schema_version_- is expected and has to be in sync/step with the sqlite_db_schema_version in sisudoc-spine src/sisudoc/outputs/io_out/sqlite.d; the two tests added there under test/ check that they agree. (assisted by Claude-Code)
* change search result symbols for show index & textRalph Amissah2026-06-251-4/+9
|
* 2026 (+ org-mode header minor)Ralph Amissah2026-01-101-2/+2
|
* 2025Ralph Amissah2025-01-011-2/+2
|
* arsd.core.d importRalph Amissah2024-05-071-0/+1
|
* 0.16.0 sync ver. & src dir name with sisudoc spineRalph Amissah2024-04-111-0/+1931