mirror of
https://github.com/sandronator/finetuning_aufgabe4.git
synced 2026-09-04 00:26:06 +02:00
first commit
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
from repositories.nested_loop_resolver import resolve
|
||||
from baseStrategy import BaseStrategy
|
||||
|
||||
class NestedInnerLoopStrategy(BaseStrategy):
|
||||
def __init__(self, conn, db_name, all_queries):
|
||||
super().__init__(conn, db_name, all_queries)
|
||||
|
||||
def run(self):
|
||||
if self.db_name not in resolve:
|
||||
raise Exception("No Inner Loop Resolver Found")
|
||||
|
||||
for disable in resolve[self.db_name]["disable"]:
|
||||
self.cursor.execute(disable)
|
||||
|
||||
super().run()
|
||||
|
||||
for reset in resolve[self.db_name]["reset"]:
|
||||
self.cursor.execute(reset)
|
||||
Reference in New Issue
Block a user