def _add_index(index, autogen_context):
    from .compare import _get_index_column_names

    text = "%(prefix)screate_index('%(name)s', '%(table)s', %(columns)s, "\
                    "unique=%(unique)r%(schema)s%(kwargs)s)" % {
        'prefix': _alembic_autogenerate_prefix(autogen_context),
        'name': _render_gen_name(autogen_context, index.name),
        'table': index.table.name,
        'columns': _get_index_column_names(index),
        'unique': index.unique or False,
        'schema': (", schema='%s'" % index.table.schema) if index.table.schema else '',
        'kwargs': (', '+', '.join(
            ["%s=%s" % (key, _render_potential_expr(val, autogen_context))
                for key, val in index.kwargs.items()]))\
            if len(index.kwargs) else ''
    }
    return text
load_requests_by_time()
dataset/ETHPy150Open goFrendiAsgard/kokoropy/kokoropy/packages/alembic/autogenerate/render.py/_add_index--crossover with--dataset/ETHPy150Open roglew/pappy-proxy/pappyproxy/http.py/Request.load_requests_by_time