diff --git a/trapp/command_line.py b/trapp/command_line.py index 1495fb4..360535e 100644 --- a/trapp/command_line.py +++ b/trapp/command_line.py @@ -35,6 +35,16 @@ def checkDB(args): if (args.verbose): print(str(db.cursor)) print('Warnings: ' + str(db.warnings())) + print('') + + # list database tables + if (args.verbose): + print('Tables:') + sql = 'SHOW TABLES' + params = () + records = db.query(sql, params).fetchall() + for table in records: + print(table) def compileGames():