def LoadDataBases(self): db_memory = self.get_all_db(None) db_disk = showDB() for dbd in db_disk: db_memory = list(filter(lambda sym: sym.type == SymbolType.DATABASE and str(sym.name).lower() == str(dbd).lower(), self.symbols)) if len(db_memory) == 0: self.add(DatabaseSymbol(dbd, None, 6)) # TODO change the mode for phase II
def execute(self, table: SymbolTable, tree): super().execute(table, tree) result_name = self.name.execute(table, tree) # SymbolTable.get_all_db() # if methods doesn't exist probably return showDB() # add filter using name_like_regex... this has to be stored on TS or comes from function?
def execute(self, table: SymbolTable, tree): super().execute(table, tree) #result_name = self.name.execute(table, tree) #To not execute because we show data bases without filters return showDB() # add filter using name_like_regex... this has to be stored on TS or comes from function?
def execute(self, table, tree): super().execute(table, tree) result_name = self.name.execute(table, tree) return showDB( ) # add filter using name_like_regex... this has to be stored on TS or comes from function?