comparison query_db.py @ 9:a3aab6045663 draft

"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/query_tabular commit daa9af57fe07ee83a45ddc9f855716f9d14a8e12"
author iuc
date Sat, 12 Sep 2020 01:22:05 +0000
parents 973f03d82c86
children 623f3eb7aa48
comparison
equal deleted inserted replaced
8:0c95a3f1654f 9:a3aab6045663
50 cols = [col[0] for col in cur.description] 50 cols = [col[0] for col in cur.description]
51 print(" Columns: %s" % cols, file=outputFile) 51 print(" Columns: %s" % cols, file=outputFile)
52 except Exception as exc: 52 except Exception as exc:
53 print("Warning: %s" % exc, file=sys.stderr) 53 print("Warning: %s" % exc, file=sys.stderr)
54 except Exception as e: 54 except Exception as e:
55 exit('Error: %s' % (e)) 55 exit('describe_tables Error: %s' % (e))
56 exit(0) 56 exit(0)
57 57
58 58
59 def run_query(conn, query, outputFile, no_header=False, comment_char='#'): 59 def run_query(conn, query, outputFile, no_header=False, comment_char='#'):
60 cur = conn.cursor() 60 cur = conn.cursor()