diff --git a/libraries/entropy/db.py b/libraries/entropy/db.py index 74e9c9208..cd055997a 100644 --- a/libraries/entropy/db.py +++ b/libraries/entropy/db.py @@ -3768,6 +3768,11 @@ class LocalRepository: ) # remember to close the file + def listAllTables(self): + self.cursor.execute(""" + SELECT name FROM SQLITE_MASTER WHERE type = "table" + """) + return self.fetchall2list(self.cursor.fetchall()) def doesTableExist(self, table): self.cursor.execute('select name from SQLITE_MASTER where type = (?) and name = (?)', ("table",table))