def printTable(self, table_name):
prev_row_factory = self.setRowConn()<EOL>print("<STR_LIT>")<EOL>print("<STR_LIT>" + table_name)<EOL>print("<STR_LIT>")<EOL>cur = self.conn.execute("<STR_LIT>" % table_name)<EOL>names = [d[<NUM_LIT:0>] for d in cur.description]<EOL>for name in names:<EOL><INDENT>print(name + '<STR_LIT:U+002CU+0020>', end="<STR_LIT>")<EOL><DEDENT>print("<STR_LIT>")<EOL>for row in cur:<EOL><INDENT>print(row)<EOL><DEDENT>self.conn.row_factory = prev_row_factory<EOL>
Pretty prints a table with name table_name.

Parameters
----------
table_name : str
    name of the table