Mercurial > repos > iuc > sqlite_to_tabular
comparison query_db.py @ 9:4678715f7147 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:24 +0000 |
parents | 6e72fd26a9d3 |
children | 575cd6cd537c |
comparison
equal
deleted
inserted
replaced
8:5a4ae7678bc5 | 9:4678715f7147 |
---|---|
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() |