#NEWLINE# def _tablify( self ) : #NEWLINE# #INDENT# tbl = PrettyTable ( [ 'Column' , 'Type' , 'Foreign Keys' , 'Reference Keys' ] ) #NEWLINE# tbl . align [ 'Column' ] = 'l' #NEWLINE# tbl . align [ 'Type' ] = 'l' #NEWLINE# tbl . align [ 'Foreign Keys' ] = 'l' #NEWLINE# tbl . align [ 'Reference Keys' ] = 'l' #NEWLINE# for col in self . _columns : #NEWLINE# #INDENT# tbl . add_row ( [ col . name , col . type , col . _str_foreign_keys ( ) , col . _str_ref_keys ( ) ] ) #NEWLINE# #UNINDENT# return tbl