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.
This commit is contained in:
Frederik Jacobsen 2024-12-12 21:50:45 +01:00
parent 8f736f58f3
commit ec1381561a

22
models.py Normal file
View File

@ -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