Project

General

Profile

« Previous | Next » 

Revision 647

bin/map: Print a message when a database is successfully connected to

View differences:

bin/map
49 49
        else: map_paths = [None]
50 50
    
51 51
    def connect_db(db_config):
52
        sys.stderr.write('Connecting to '+sql.db_config_str(db_config)+'...')
52 53
        db = sql.connect(db_config)
53
        sys.stderr.write('Connected to '+sql.db_config_str(db_config)+'\n')
54
        sys.stderr.write('Done\n')
54 55
        return db
55 56
    
56 57
    def process_input(root, process_row, map_path):
......
165 166
    doc = xml_dom.create_doc()
166 167
    root = doc.documentElement
167 168
    if out_is_db:
168
        from psycopg2.extensions import ISOLATION_LEVEL_SERIALIZABLE
169 169
        import db_xml
170 170
        
171 171
        out_db = connect_db(out_db_config)

Also available in: Unified diff