Revision 5390
Added by Aaron Marcuse-Kubitza about 12 years ago
lib/sql.py | ||
---|---|---|
1075 | 1075 |
try: return table_pkey_col(db, table, recover).name |
1076 | 1076 |
except StopIteration: return table_col_names(db, table, recover)[0] |
1077 | 1077 |
|
1078 |
def pkey_col(db, table, *args, **kw_args):
|
|
1079 |
return sql_gen.Col(pkey_name(db, table, *args, **kw_args), table)
|
|
1078 |
def pkey_col(db, table, recover=None):
|
|
1079 |
return sql_gen.Col(pkey_name(db, table, recover), table)
|
|
1080 | 1080 |
|
1081 | 1081 |
not_null_col = 'not_null_col' |
1082 | 1082 |
|
Also available in: Unified diff
sql.py: pkey_col(): Specify recover directly as a kw_arg because it's the only kw_arg passed to pkey_name()