src/dirbs/cli/db.py
def _store_job_metadata(config, subcommand):
    """
    Utility method to store metadata about a dirbs-db invocation in the database.

    :param config: dirbs config obj
    :param subcommand: sub-command name
    """
    logger = logging.getLogger('dirbs.db')
    with utils.create_db_connection(config.db_config, autocommit=True) as conn:
        # We can only really store successful database installs/upgrades as we can't store
        # anything in an unknown schema version. Therefore, we can store at the end of the job
        # and mark it as successfully complete immediately
        run_id = metadata.store_job_metadata(conn, 'dirbs-db', logger, job_subcommand=subcommand)
        metadata.log_job_success(conn, 'dirbs-db', run_id)

    Utility method to store metadata about a dirbs-db invocation in the database.

    :param config: dirbs config obj
    :param subcommand: sub-command name
    
Utility method to store metadata about a dirbs-db invocation in the database.
Utility method to store metadata about a dirbs - db invocation in the database .
def _store_job_metadata(config, subcommand):
    logger = logging.getLogger('dirbs.db')
    with utils.create_db_connection(config.db_config, autocommit=True) as conn:
        run_id = metadata.store_job_metadata(conn, 'dirbs-db', logger, job_subcommand=subcommand)
        metadata.log_job_success(conn, 'dirbs-db', run_id)
def _store_job_metadata ( config , subcommand ) : logger = logging . getLogger ( 'dirbs.db' ) with utils . create_db_connection ( config . db_config , autocommit = True ) as conn : run_id = metadata . store_job_metadata ( conn , 'dirbs-db' , logger , job_subcommand = subcommand ) metadata . log_job_success ( conn , 'dirbs-db' , run_id )
Utility method to store metadata about a dirbs-db invocation in the database.
Utility method to store metadata about a dirbs - db invocation in the database .
"""
    Utility method to store metadata about a dirbs-db invocation in the database.

    :param config: dirbs config obj
    :param subcommand: sub-command name
    """ # We can only really store successful database installs/upgrades as we can't store # anything in an unknown schema version. Therefore, we can store at the end of the job # and mark it as successfully complete immediately
config
dirbs config obj
dirbs config obj
subcommand
None