

def _index_command(self, type, columns, index):
    '\n        Add a new index command to the blueprint.\n\n        :param type: The index type\n        :type type: str\n\n        :param columns: The index columns\n        :type columns: list or str\n\n        :param index: The index name\n        :type index: str\n\n        :rtype: Fluent\n        '
    if (not isinstance(columns, list)):
        columns = [columns]
    if (not index):
        index = self._create_index_name(type, columns)
    return self._add_command(type, index=index, columns=columns)

dataset/ETHPy150Open sdispater/orator/orator/schema/blueprint.py Blueprint._index_command/original