def _db_edition_table_format(editions):
    """
    Formats a database edition as summary results for display with "-o table".
    """
    from .custom import is_available
    from collections import OrderedDict
    for e in editions:
        for slo in e['supportedServiceLevelObjectives']:
            sku = slo['sku']
            yield OrderedDict([('serviceObjective', slo['name']), ('sku',
                sku['name']), ('edition', e['name']), ('family', sku[
                'family'] or ' '), ('capacity', sku['capacity']), ('unit',
                slo['performanceLevel']['unit']), ('available',
                is_available(slo['status']))])
