Revision 3048
Added by Aaron Marcuse-Kubitza over 12 years ago
sql_gen.py | ||
---|---|---|
616 | 616 |
|
617 | 617 |
def NamedValues(name, cols, values): |
618 | 618 |
''' |
619 |
@param cols None|[...] |
|
619 | 620 |
@post `cols` will be changed to Col objects with the table set to `name`. |
620 | 621 |
''' |
621 | 622 |
table = NamedTable(name, Values(values), cols) |
622 |
set_cols_table(table, cols) |
|
623 |
if cols != None: set_cols_table(table, cols)
|
|
623 | 624 |
return table |
624 | 625 |
|
625 | 626 |
##### Database structure |
Also available in: Unified diff
sql_gen.py: NamedValues: Support None cols param for no named columns