Revision 2042
Added by Aaron Marcuse-Kubitza almost 13 years ago
bin/map | ||
---|---|---|
304 | 304 |
col_names = list(sql.col_names(cur)) |
305 | 305 |
|
306 | 306 |
if by_col: |
307 |
row_ready = lambda row_num, input_row: None# disable row_ready() |
|
308 |
row = ['$'+v for v in col_names] # values are the column names |
|
309 |
map_table(col_names, [row]) # map just the sample row |
|
307 |
map_table(col_names, []) # just create the template |
|
310 | 308 |
xml_func.strip(root) |
311 | 309 |
db_xml.put_table(in_db, root.firstChild, table, commit, |
312 | 310 |
row_ins_ct_ref, table_is_esc) |
Also available in: Unified diff
bin/map: by_col: Use the created template, which already has the column names in it, instead of mapping a sample row