Project

General

Profile

« Previous | Next » 

Revision 460

bin/map: Print # input rows processed

View differences:

map
96 96
                    if value != None:
97 97
                        xpath.put_obj(root, out, row_id, has_types, value)
98 98
                process_row(row)
99
            sys.stderr.write('Processed '+str(i+1)+' input rows\n')
99 100
        
100 101
        if map_path == None:
101 102
            iter_ = xml_dom.NodeElemIter(doc0.documentElement)
......
181 182
                root.clear()
182 183
            
183 184
            process_input(root, process_row)
184
            print 'Inserted '+str(row_ct_ref[0])+' rows'
185
            sys.stderr.write('Inserted '+str(row_ct_ref[0])+
186
                ' new rows into database\n')
185 187
        finally:
186 188
            out_db.rollback()
187 189
            out_db.close()

Also available in: Unified diff