From ec1381561a8b7dad7666c9c309bc4f41293f07f2 Mon Sep 17 00:00:00 2001 From: Frederik Jacobsen Date: Thu, 12 Dec 2024 21:50:45 +0100 Subject: [PATCH] Added a way to run the same query on multiple schemas and logging. Need to work on running update queries, that combine plsql and normal sql statements and potentially multiple extracts for one sql file, to make multiple files, and probably to also export to xlsx file format. --- models.py | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 models.py diff --git a/models.py b/models.py new file mode 100644 index 0000000..1d6d373 --- /dev/null +++ b/models.py @@ -0,0 +1,22 @@ +from dataclasses import dataclass + +@dataclass +class Municipality: + + def __init__(self, name: str, cvr: str, schema: str, kommunekode: str): + self._name = name + self._cvr = cvr + self._schema = schema + self._kommunekode = kommunekode + + @property + def name(self): + return self._name + + @property + def cvr(self): + return self._cvr + + @property + def schema(self): + return self._schema \ No newline at end of file