#NEWLINE# def get_table_list( self , cursor ) : #NEWLINE# #INDENT# '\n        Returns a list of table and view names in the current database.\n        ' #NEWLINE# cursor . execute ( 'SHOW FULL TABLES' ) #NEWLINE# return [ TableInfo ( row [ 0 ] , { #NEWLINE# #INDENT# 'BASE TABLE' : 't' , #NEWLINE# 'VIEW' : 'v' , #NEWLINE# #UNINDENT# } . get ( row [ 1 ] ) ) for row in cursor . fetchall ( ) ]