Project

General

Profile

« Previous | Next » 

Revision 5987

sql.py: Added add_pkey_index()

View differences:

lib/sql.py
1355 1355
        ', '.join((v.to_str(db) for v in exprs)))+')'
1356 1356
    run_query(db, str_, recover=True, cacheable=True, log_level=3)
1357 1357

  
1358
def add_pkey_index(db, table): add_index(db, pkey_col(db, table), table)
1359

  
1358 1360
def add_pkey_or_index(db, table, cols=None, recover=None, warn=False):
1359 1361
    try: add_pkey(db, table, cols, recover)
1360 1362
    except DuplicateKeyException, e:

Also available in: Unified diff