| Did you know ... | Search Documentation: |
| Pack asadb -- flaskserver/docs/SERVER_ADMIN_GUIDE.md |
For an installed AsaDB pack on SWI-Prolog 9.1.18 or newer, run:
swipl asadb
The one command creates the per-user offline Python gateway when needed,
prompts for the first administrator, registers data.asa, and opens the login
page. It does not install a second SQL engine: Flask supervises the bundled
SWI-Prolog web backend and owns only authentication, web delivery, and server
control-plane state.
The launcher stores mutable configuration, secrets, users, and registered database metadata below the platform user-data directory, outside the pack. Pack upgrades and removal therefore do not delete `.asa` files.
The admin page changes only safe mutable settings. Host binding, filesystem paths, and secrets remain launcher/environment configuration so the browser cannot expose them accidentally.
reader: panel, read queries, sessions, and FTS search.writer: reader plus writes and job submission.operator: operational database, backup, job, replication, and FTS work.replicator: snapshot replication service role.admin: all server permissions.
Prefer database-scoped bindings for non-admin users.swipl asadb doctor --json
Check the Admin worker view, JSONL audit records under server state, backend stderr tails in database status, and the database Reservoir directory. A backend starts lazily on first use; a stopped worker is not automatically an error.