src/dirbs/partition_utils.py
def _add_indices_parallel_single_job(db_config, *, tbl_name, idx_metadatum, if_not_exists=False):
    """
    Job function called by add_indices_parallel.

    Arguments:
        db_config: dirbs db configuration object
        tbl_name: name of the table to add indices parallel
        idx_metadatum: index metadata object
        if_not_exists: bool to activate 'IF NOT EXISTS', default False
    """
    with utils.create_db_connection(db_config) as conn:
        _add_index_to_single_shard(conn, part_name=tbl_name, idx_metadatum=idx_metadatum, if_not_exists=if_not_exists)

    Job function called by add_indices_parallel.

    Arguments:
        db_config: dirbs db configuration object
        tbl_name: name of the table to add indices parallel
        idx_metadatum: index metadata object
        if_not_exists: bool to activate 'IF NOT EXISTS', default False
    
Job function called by add_indices_parallel.
Job function called by add_indices_parallel .
def _add_indices_parallel_single_job(db_config, *, tbl_name, idx_metadatum, if_not_exists=False):
    with utils.create_db_connection(db_config) as conn:
        _add_index_to_single_shard(conn, part_name=tbl_name, idx_metadatum=idx_metadatum, if_not_exists=if_not_exists)
def _add_indices_parallel_single_job ( db_config , * , tbl_name , idx_metadatum , if_not_exists = False ) : with utils . create_db_connection ( db_config ) as conn : _add_index_to_single_shard ( conn , part_name = tbl_name , idx_metadatum = idx_metadatum , if_not_exists = if_not_exists )
Job function called by add_indices_parallel.
Job function called by add_indices_parallel .
"""
    Job function called by add_indices_parallel.

    Arguments:
        db_config: dirbs db configuration object
        tbl_name: name of the table to add indices parallel
        idx_metadatum: index metadata object
        if_not_exists: bool to activate 'IF NOT EXISTS', default False
    """
db_config
dirbs db configuration object
dirbs db configuration object
tbl_name
name of the table to add indices parallel
name of the table to add indices parallel
idx_metadatum
index metadata object
index metadata object
if_not_exists
bool to activate 'IF NOT EXISTS', default False
bool to activate ' IF NOT EXISTS ' default False