Project

General

Profile

« Previous | Next » 

Revision 5383

sql.py: Added table_cols()

View differences:

lib/sql.py
1048 1048
    return list(col_names(select(db, table, limit=0, order_by=None,
1049 1049
        recover=recover, log_level=4)))
1050 1050

  
1051
def table_cols(db, table, *args, **kw_args):
1052
    return [sql_gen.as_Col(strings.ustr(c), table)
1053
        for c in table_col_names(db, table, *args, **kw_args)]
1054

  
1051 1055
pkey_col = 'row_num'
1052 1056

  
1053 1057
def pkey(db, table, recover=None):

Also available in: Unified diff