Example #1
0
 def getStats(self) -> dap_interface_pb2.DapStatistics:
     stats = dap_interface_pb2.DapStatistics()
     stats.prepare_constraint_count = self.stats["prepare_constraint_count"]
     stats.execute_count = self.stats["execute_count"]
     stats.empty_execute_response = self.stats["empty_execute_response"]
     stats.total_result_count = self.stats["total_result_count"]
     stats.filter_inputs = self.stats["filter_inputs"]
     return stats
 def getStats(self) -> dap_interface_pb2.DapStatistics:
     stats = dap_interface_pb2.DapStatistics()
     c = 0
     for tbname in self.store:
         for key, core in self.store[tbname].items():
             c += len(core)
     stats.row_count = c
     stats.rows_added = self.stats["rows_added"]
     stats.rows_removed = self.stats["rows_removed"]
     stats.row_add_fails = self.stats["row_add_fails"]
     stats.row_remove_fails = self.stats["row_remove_fails"]
     stats.row_remove_not_found = self.stats["row_remove_not_found"]
     stats.execute_count = self.stats["execute_count"]
     stats.empty_execute_response = self.stats["empty_execute_response"]
     stats.total_result_count = self.stats["total_result_count"]
     stats.filter_inputs = self.stats["filter_inputs"]
     stats.prepare_count = self.stats["prepare_count"]
     return stats
 def getStats(self) -> dap_interface_pb2.DapStatistics:
     stats = dap_interface_pb2.DapStatistics()
     stats.row_count = len(self.table)
     stats.rows_added = self.stats["rows_added"]
     stats.rows_removed = self.stats["rows_removed"]
     stats.row_remove_not_found = self.stats["row_remove_not_found"]
     stats.prepare_constraint_count = self.stats["prepare_constraint_count"]
     stats.execute_count = self.stats["execute_count"]
     stats.empty_execute_response = self.stats["empty_execute_response"]
     stats.total_result_count = self.stats["total_result_count"]
     stats.filter_inputs = self.stats["filter_inputs"]
     stats.originated_queries = self.stats["originated_queries"]
     stats.num_originated_rows = self.stats["num_originated_rows"]
     stats.row_add_duplicate = self.stats["row_add_duplicate"]
     for custom in self.custom_stats:
         new_custom = stats.custom_stats.add()
         new_custom.name = custom
         new_custom.count = self.stats[custom]
     return stats
Example #4
0
 def getStats(self) -> dap_interface_pb2.DapStatistics:
     stats = dap_interface_pb2.DapStatistics()
     c = 0
     for tbname in self.geos:
         c += len(self.geos[tbname].store)
     stats.row_count = c
     stats.rows_added = self.stats["rows_added"]
     stats.rows_removed = self.stats["rows_removed"]
     stats.row_add_fails = self.stats["row_add_fails"]
     stats.row_remove_fails = self.stats["row_remove_fails"]
     stats.row_remove_not_found = self.stats["row_remove_not_found"]
     stats.prepare_count = self.stats["prepare_count"]
     stats.execute_count = self.stats["execute_count"]
     stats.empty_execute_response = self.stats["empty_execute_response"]
     stats.total_result_count = self.stats["total_result_count"]
     stats.filter_inputs = self.stats["filter_inputs"]
     stats.originated_queries = self.stats["originated_queries"]
     stats.num_originated_rows = self.stats["num_originated_rows"]
     stats.row_add_duplicate = self.stats["row_add_duplicate"]
     return stats
 def getStats(self) -> dap_interface_pb2.DapStatistics:
     return dap_interface_pb2.DapStatistics()