src/dirbs/partition_utils.py
def _add_indices_to_single_shard(conn, *, part_name, idx_metadata, if_not_exists=False):
    """
    Method to DRY out to addition of indexes to a single shard partition in a table.

    Arguments:
        conn: dirbs db connection instance
        part_name: name of partition to add index to
        idx_metadata: index metadata object, contains metadata about index
        if_not_exists: bool to activate 'IF NOT EXISTS', default False
    """
    for idx_metadatum in idx_metadata:
        _add_index_to_single_shard(conn, part_name=part_name, idx_metadatum=idx_metadatum, if_not_exists=if_not_exists)

    Method to DRY out to addition of indexes to a single shard partition in a table.

    Arguments:
        conn: dirbs db connection instance
        part_name: name of partition to add index to
        idx_metadata: index metadata object, contains metadata about index
        if_not_exists: bool to activate 'IF NOT EXISTS', default False
    
Method to DRY out to addition of indexes to a single shard partition in a table.
Method to DRY out to addition of indexes to a single shard partition in a table .
def _add_indices_to_single_shard(conn, *, part_name, idx_metadata, if_not_exists=False):
    for idx_metadatum in idx_metadata:
        _add_index_to_single_shard(conn, part_name=part_name, idx_metadatum=idx_metadatum, if_not_exists=if_not_exists)
def _add_indices_to_single_shard ( conn , * , part_name , idx_metadata , if_not_exists = False ) : for idx_metadatum in idx_metadata : _add_index_to_single_shard ( conn , part_name = part_name , idx_metadatum = idx_metadatum , if_not_exists = if_not_exists )
Method to DRY out to addition of indexes to a single shard partition in a table.
Method to DRY out to addition of indexes to a single shard partition in a table .
"""
    Method to DRY out to addition of indexes to a single shard partition in a table.

    Arguments:
        conn: dirbs db connection instance
        part_name: name of partition to add index to
        idx_metadata: index metadata object, contains metadata about index
        if_not_exists: bool to activate 'IF NOT EXISTS', default False
    """
conn
dirbs db connection instance
dirbs db connection instance
part_name
name of partition to add index to
name of partition to add index to
idx_metadata
index metadata object, contains metadata about index
index metadata object contains metadata about index
if_not_exists
bool to activate 'IF NOT EXISTS', default False
bool to activate ' IF NOT EXISTS ' default False