usergraphtheory's picture
Sync from erdostack/bench at a7805c45d77258d316383c92bdc9f472498d255f (part 48)
187416f verified
|
Raw History Blame Contribute Delete
528 Bytes

mirror-status-sql

Queries for the package mirror network's status page. The network's registry is a SQLite file, data/mirrors.db, kept on the status server; it is not committed. tests/fixtures/sample.db is a small database with exactly the same schema and a handful of made-up mirrors, regenerated whenever the schema changes: use it to try queries when you don't have the real file.

sqlite3 -header data/mirrors.db < sql/origin.sql

The status page build runs every file in sql/ against the status server's copy.