server.cli.db ============= .. py:module:: server.cli.db .. autoapi-nested-parse:: Database management commands for Jobmon Server. Functions --------- .. autoapisummary:: server.cli.db.db server.cli.db.init server.cli.db.upgrade server.cli.db.terminate Module Contents --------------- .. py:function:: db() -> None Database management commands. \b Commands for initializing, upgrading, and terminating the Jobmon database. \b .. rubric:: Examples jobmon-server db init jobmon-server db upgrade --revision head jobmon-server db terminate --yes .. py:function:: init(db_uri: str) -> None Initialize a new Jobmon database. Creates the database schema and applies all migrations. \b .. rubric:: Examples # Use config file settings jobmon-server db init # Override with specific URI jobmon-server db init --db-uri "mysql://user:pass@host/jobmon" .. py:function:: upgrade(db_uri: str, revision: str) -> None Apply database migrations. Upgrades the database schema to the specified revision. \b .. rubric:: Examples # Upgrade to latest jobmon-server db upgrade # Upgrade to specific revision jobmon-server db upgrade --revision abc123 .. py:function:: terminate(db_uri: str, yes: bool) -> None Terminate/drop a Jobmon database. WARNING: This is a destructive operation that will delete all data! \b .. rubric:: Examples # With confirmation prompt jobmon-server db terminate # Skip confirmation (for scripts) jobmon-server db terminate --yes