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:
parent
8f736f58f3
commit
ec1381561a
22
models.py
Normal file
22
models.py
Normal 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
|
||||||
Loading…
x
Reference in New Issue
Block a user