Project

General

Profile

« Previous | Next » 

Revision 2537

sql.py: Renamed index_col() to add_index() so its name isn't similar to index_cols()

View differences:

lib/sql.py
793 793

  
794 794
row_num_col = '_row_num'
795 795

  
796
def index_col(db, col):
796
def add_index(db, col):
797 797
    '''Adds an index on a column if it doesn't already exist.'''
798 798
    assert sql_gen.is_table_col(col)
799 799
    
......
961 961
    def ignore(in_col, value):
962 962
        in_col_str = repr(in_col)
963 963
        log_debug('Adding index on '+in_col_str+' to enable fast filtering')
964
        index_col(db, in_col)
964
        add_index(db, in_col)
965 965
        log_debug('Ignoring rows with '+in_col_str+' = '+repr(value))
966 966
    def remove_rows(in_col, value):
967 967
        ignore(in_col, value)

Also available in: Unified diff