mud_server.db.admin_repo
Admin inspector repository operations for SQLite backend.
This module groups schema/table inspection and admin dashboard aggregate queries
that were previously implemented directly in mud_server.db.database.
Functions
Return sorted user-defined table names (excluding |
|
Return table metadata for admin database browsing UIs. |
|
Return table schemas and foreign key relationships for admin tooling. |
|
|
Return column names and row values for a table. |
Return detailed, non-tombstoned account rows for the Active Users card. |
|
Return basic account rows for admin summaries. |
|
|
Return character location rows with names for admin displays. |
|
Return all active (non-expired) sessions for optional world scope. |
|
Return active session rows including derived activity age seconds. |
|
Return recent chat messages across all rooms for optional world scope. |
Module Contents
- mud_server.db.admin_repo.get_table_names()[source]
Return sorted user-defined table names (excluding
sqlite_*internals).
- mud_server.db.admin_repo.list_tables()[source]
Return table metadata for admin database browsing UIs.
- mud_server.db.admin_repo.get_schema_map()[source]
Return table schemas and foreign key relationships for admin tooling.
- mud_server.db.admin_repo.get_table_rows(table_name, limit=100, offset=0)[source]
Return column names and row values for a table.
- Raises:
ValueError – If
table_namedoes not exist in the user-visible schema.
- mud_server.db.admin_repo.get_all_users_detailed()[source]
Return detailed, non-tombstoned account rows for the Active Users card.
- mud_server.db.admin_repo.get_character_locations(*, world_id=None)[source]
Return character location rows with names for admin displays.
- mud_server.db.admin_repo.get_all_sessions(*, world_id=None)[source]
Return all active (non-expired) sessions for optional world scope.