mirror of
https://github.com/sandronator/finetuning_aufgabe4.git
synced 2026-09-08 07:56:19 +02:00
first commit
This commit is contained in:
+20
@@ -0,0 +1,20 @@
|
||||
from baseStrategy import BaseStrategy
|
||||
import setup
|
||||
|
||||
class Manager:
|
||||
def __init__(self, strategy: BaseStrategy, ):
|
||||
self.strategy = strategy
|
||||
|
||||
def setStrategy(self, strategy: BaseStrategy):
|
||||
self.strategy = strategy
|
||||
|
||||
def setQueries(self, queries: dict[str, str]):
|
||||
self.strategy.set_queries(queries)
|
||||
|
||||
# Only Postgresql and MariaDb available at the moment
|
||||
def setup_db(self, index_config):
|
||||
setup.setupBoth(index_config)
|
||||
|
||||
def execute(self):
|
||||
self.strategy.run()
|
||||
|
||||
Reference in New Issue
Block a user