示例#1
0
 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
示例#2
0
 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?
示例#3
0
 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?
示例#4
0
 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?