comparison query_db.py @ 9:69b08fc9557c 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:21:45 +0000
parents fe7be5634ab3
children 37cde8134c6a
comparison
equal deleted inserted replaced
8:59278960a2e7 9:69b08fc9557c
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()