diff --git a/.gitignore b/.gitignore
index 0c288c3..2e64543 100644
--- a/.gitignore
+++ b/.gitignore
@@ -9,4 +9,7 @@ wheels/
# Virtual environments
.venv
*.csv
-local.db
\ No newline at end of file
+*.xslx
+output/*
+local.db
+243_22562_220-pycharm-support-libs
\ No newline at end of file
diff --git a/.idea/dataSources.xml b/.idea/dataSources.xml
index c88b885..907d402 100644
--- a/.idea/dataSources.xml
+++ b/.idea/dataSources.xml
@@ -15,5 +15,12 @@
jdbc:sqlite:local.db$ProjectFileDir$
+
+ sqlite.xerial
+ true
+ org.sqlite.JDBC
+ jdbc:sqlite:C:\work\repos\db_interactor\local.db
+ $ProjectFileDir$
+
\ No newline at end of file
diff --git a/.idea/database_interacter.iml b/.idea/database_interacter.iml
index 38c47ce..387eec3 100644
--- a/.idea/database_interacter.iml
+++ b/.idea/database_interacter.iml
@@ -2,7 +2,7 @@
-
+
\ No newline at end of file
diff --git a/.idea/jupyter-settings.xml b/.idea/jupyter-settings.xml
new file mode 100644
index 0000000..38686d8
--- /dev/null
+++ b/.idea/jupyter-settings.xml
@@ -0,0 +1,31 @@
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/misc.xml b/.idea/misc.xml
index f93c42e..06e2318 100644
--- a/.idea/misc.xml
+++ b/.idea/misc.xml
@@ -3,5 +3,5 @@
-
+
\ No newline at end of file
diff --git a/.idea/sqldialects.xml b/.idea/sqldialects.xml
index 708bfaa..6787940 100644
--- a/.idea/sqldialects.xml
+++ b/.idea/sqldialects.xml
@@ -1,6 +1,6 @@
-
+
\ No newline at end of file
diff --git a/db_adapter.py b/db_adapter.py
index 33dc11d..83bf793 100644
--- a/db_adapter.py
+++ b/db_adapter.py
@@ -1,11 +1,12 @@
import logging
+import os
import sqlalchemy as sq
import sqlparse
import pandas as pd
from config import DatabaseConfig, DatabaseType
from keepass import KeePass
-from models import Municipality
+from models import Municipality, ExportType
import time
@@ -14,6 +15,7 @@ class DBAdapter:
_database_config: DatabaseConfig
_has_tables_been_initialized: bool = False
_logger: logging.Logger
+ _output_folder: str = 'output/'
def __init__(self, keepass: KeePass, database_config: DatabaseConfig, logger: logging.Logger):
self._database_config = database_config
connection_string: str
@@ -24,7 +26,7 @@ class DBAdapter:
case DatabaseType.PSQL:
connection_string = f'postgresql+pg8000://{keepass_entry.name}:{keepass_entry.password}@{self._database_config.host}/{self._database_config.name}'
case DatabaseType.ORCL:
- connection_string = f'oracle:{keepass_entry.name}:{keepass_entry.password}@{self._database_config.host}:{self._database_config.port}:{self._database_config.ssid}'
+ connection_string = f'oracle+cx_oracle://{keepass_entry.name}:{keepass_entry.password}@{self._database_config.host}:{self._database_config.port}/{self._database_config.ssid}'
case DatabaseType.SQLITE:
connection_string = f'sqlite:///{self._database_config.host}'
case _:
@@ -64,18 +66,35 @@ class DBAdapter:
match self._database_config.type:
case DatabaseType.ORCL:
- conn.execute(sq.text(f"alter session set current_schema = '{schema}'"))
+ conn.execute(sq.text(f"alter session set current_schema = {schema}"))
case DatabaseType.PSQL:
conn.execute(sq.text(f"set schema '{schema}'"))
case _:
raise Exception(f'Database type {self.database_config.type} is not supported for readonly transactions')
def _verify_singular_query(self, query: str):
- self._logger.info(f'Verifying query: {query}')
+ self._logger.info(f'Verifying query')
if len(self._split_query_to_singular_queries(query)) > 1:
self._logger.critical(f'Multiple queries found for query: {query}')
raise Exception(f'Multiple queries found in {query}')
+ def _generate_filename(self, filename: str) -> str:
+ try:
+ os.mkdir(self._output_folder)
+ except FileExistsError:
+ pass
+ return f'{self._output_folder}{filename}'
+
+ def _export_to_file(self, export_type, output_file_name, result):
+ match export_type:
+ case ExportType.CSV:
+ output_file_name += '.csv'
+ result.to_csv(output_file_name, index=False, sep=';', encoding='utf-8')
+ case ExportType.EXCEL:
+ output_file_name += '.xlsx'
+ result.to_excel(output_file_name, index=False)
+ self._logger.info(f'Created file {output_file_name}')
+
def run_query(self, query: str, read_only = True) -> sq.CursorResult:
"""
Runs a single SQL query and returns the result as a CursorResult.
@@ -110,7 +129,7 @@ class DBAdapter:
query = self._read_and_sql_file_and_strip_for_comments(filename)
return self.run_query(query, read_only)
- def run_sql_file_export_to_csv(self, schema: str | None = None, input_name: str = "query.sql", output_name: str = "export.csv", read_only = True):
+ def run_sql_file_export_to_file(self, schema: str | None = None, input_name: str = "query.sql", output_name: str = "export", read_only = True, export_type = ExportType.CSV):
"""
Runs a single SQL query and creates a csv file with the given output name and resulting contents.
If more than one query, throws an error
@@ -130,7 +149,7 @@ class DBAdapter:
if schema is not None:
self._set_schema(conn, schema)
result = self._extract_dataframe(conn, query, read_only)
- result.to_csv(output_name, index=False, sep=';')
+ self._export_to_file(export_type, self._generate_filename(output_name), result)
def _extract_dataframe(self, conn: sq.Connection, query: str, read_only: bool, schema: str | None = None) -> pd.DataFrame:
result: pd.DataFrame
@@ -153,17 +172,16 @@ class DBAdapter:
raise e
return result
- def run_sql_file_export_to_csv_multiple_schemas(self, municipalities: list[Municipality], base_output_name: str = "", input_name: str = "query.sql", read_only = True):
+ def run_sql_file_export_to_file_multiple_schemas(self, municipalities: list[Municipality], base_output_name: str = "", input_name: str = "query.sql", read_only = True, export_type = ExportType.CSV):
query = self._read_and_sql_file_and_strip_for_comments(input_name)
- self._logger.info(f'Running on {len(municipalities)}')
+ self._logger.info(f'Running on {len(municipalities)} schemas')
self._logger.info(f'Running query: "{query}"')
with self._engine.connect() as conn:
for index, municipality in enumerate(municipalities):
self._logger.info(f'({index + 1}/{len(municipalities)}) running for municipality {municipality.name}')
result = self._extract_dataframe(conn, query, read_only, schema = municipality.schema)
- output_file_name = f'{base_output_name}{municipality.name}.csv'
- result.to_csv(output_file_name, index=False, sep=';')
- self._logger.info(f'Created file {output_file_name}')
+ output_file_name = self._generate_filename(f'{base_output_name}{municipality.name}')
+ self._export_to_file(export_type, output_file_name, result)
def run_sql_file_multiple_statements(self, filename: str = "query.sql", read_only = False):
"""
diff --git a/jupyter.ipynb b/jupyter.ipynb
new file mode 100644
index 0000000..3eae696
--- /dev/null
+++ b/jupyter.ipynb
@@ -0,0 +1,2007 @@
+{
+ "cells": [
+ {
+ "metadata": {
+ "ExecuteTime": {
+ "end_time": "2024-12-30T20:24:38.468208Z",
+ "start_time": "2024-12-30T20:24:38.460750Z"
+ }
+ },
+ "cell_type": "code",
+ "source": [
+ "from config import Config\n",
+ "from db_adapter import DBAdapter\n",
+ "from keepass import KeePass\n",
+ "from logger import init_logger\n",
+ "from models import Municipality, ExportType\n",
+ "\n",
+ "logger = init_logger()"
+ ],
+ "id": "ce6e9d363184c46b",
+ "outputs": [],
+ "execution_count": 2
+ },
+ {
+ "metadata": {
+ "ExecuteTime": {
+ "end_time": "2024-12-30T20:24:44.920967Z",
+ "start_time": "2024-12-30T20:24:38.497564Z"
+ }
+ },
+ "cell_type": "code",
+ "source": [
+ "config = Config()\n",
+ "\n",
+ "keepass = KeePass(config.kee_pass, logger)\n",
+ "\n",
+ "db_adapter = DBAdapter(keepass, config.database, logger)"
+ ],
+ "id": "3eec86ed2e7c0658",
+ "outputs": [
+ {
+ "name": "stderr",
+ "output_type": "stream",
+ "text": [
+ "2024-12-30 21:24:43,973|INFO|Initializing connection to keepass file C:\\Users\\frj\\OneDrive - Netcompany\\Documents\\nc_password.kdbx\n",
+ "2024-12-30 21:24:43,973|INFO|Initializing connection to keepass file C:\\Users\\frj\\OneDrive - Netcompany\\Documents\\nc_password.kdbx\n",
+ "2024-12-30 21:24:44,748|INFO|Successfully connected to keepass\n",
+ "2024-12-30 21:24:44,748|INFO|Successfully connected to keepass\n",
+ "2024-12-30 21:24:44,798|INFO|Searching for database credentials on credential: komb-kyv-db04.prep.ky.komb.nchosting.dk\n",
+ "2024-12-30 21:24:44,798|INFO|Searching for database credentials on credential: komb-kyv-db04.prep.ky.komb.nchosting.dk\n",
+ "2024-12-30 21:24:44,811|INFO|Searching in group KY\n",
+ "2024-12-30 21:24:44,811|INFO|Searching in group KY\n",
+ "2024-12-30 21:24:44,827|INFO|Found credentials for database for username NC_FRJ\n",
+ "2024-12-30 21:24:44,827|INFO|Found credentials for database for username NC_FRJ\n",
+ "2024-12-30 21:24:44,843|INFO|Initializing database 127.0.241.146:KY_CENTRAL\n",
+ "2024-12-30 21:24:44,843|INFO|Initializing database 127.0.241.146:KY_CENTRAL\n",
+ "2024-12-30 21:24:44,903|INFO|Database initialized\n",
+ "2024-12-30 21:24:44,903|INFO|Database initialized\n"
+ ]
+ }
+ ],
+ "execution_count": 3
+ },
+ {
+ "metadata": {
+ "ExecuteTime": {
+ "end_time": "2024-12-30T20:24:44.945982Z",
+ "start_time": "2024-12-30T20:24:44.924118Z"
+ }
+ },
+ "cell_type": "code",
+ "source": [
+ "municipalities = [\n",
+ " #Municipality('Central common schema', '00000000', 'KY_CENTRAL', 'KY_CENTRAL'),\n",
+ " Municipality('Odense Kommune', '35209115', 'KY_0461', '461'),\n",
+ " Municipality('Svendborg Kommune', '29189730', 'KY_0479', '479'),\n",
+ " Municipality('Nordfyns Kommune', '29188947', 'KY_0480', '480'),\n",
+ " Municipality('Langeland Kommune', '29188955', 'KY_0482', '482'),\n",
+ " Municipality('Ærø Kommune', '28856075', 'KY_0492', '492'),\n",
+ " Municipality('Haderslev Kommune', '29189757', 'KY_0510', '510'),\n",
+ " Municipality('Billund Kommune', '29189765', 'KY_0530', '530'),\n",
+ " Municipality('Sønderborg Kommune', '29189773', 'KY_0540', '540'),\n",
+ " Municipality('Tønder Kommune', '29189781', 'KY_0550', '550'),\n",
+ " Municipality('Esbjerg Kommune', '29189803', 'KY_0561', '561'),\n",
+ " Municipality('Fanø Kommune', '31210917', 'KY_0563', '563'),\n",
+ " Municipality('Varde Kommune', '29189811', 'KY_0573', '573'),\n",
+ " Municipality('Vejen Kommune', '29189838', 'KY_0575', '575'),\n",
+ " Municipality('Aabenraa Kommune', '29189854', 'KY_0580', '580'),\n",
+ " Municipality('Fredericia Kommune', '69116418', 'KY_0607', '607'),\n",
+ " Municipality('Horsens Kommune', '29189889', 'KY_0615', '615'),\n",
+ " Municipality('Kolding Kommune', '29189897', 'KY_0621', '621'),\n",
+ " Municipality('Vejle Kommune', '29189900', 'KY_0630', '630'),\n",
+ " Municipality('Herning Kommune', '29189919', 'KY_0657', '657'),\n",
+ " Municipality('Holstebro Kommune', '29189927', 'KY_0661', '661'),\n",
+ " Municipality('Lemvig Kommune', '29189935', 'KY_0665', '665'),\n",
+ " Municipality('Struer Kommune', '29189951', 'KY_0671', '671'),\n",
+ " Municipality('Syddjurs Kommune', '29189978', 'KY_0706', '706'),\n",
+ " Municipality('Norddjurs Kommune', '29189986', 'KY_0707', '707'),\n",
+ " Municipality('Favrskov Kommune', '29189714', 'KY_0710', '710'),\n",
+ " Municipality('Odder Kommune', '32264328', 'KY_0727', '727'),\n",
+ " Municipality('Randers Kommune', '29189668', 'KY_0730', '730'),\n",
+ " Municipality('Silkeborg Kommune', '29189641', 'KY_0740', '740'),\n",
+ " Municipality('Samsø Kommune', '23795515', 'KY_0741', '741'),\n",
+ " Municipality('Skanderborg Kommune', '29189633', 'KY_0746', '746'),\n",
+ " Municipality('Aarhus Kommune', '55133018', 'KY_0751', '751'),\n",
+ " Municipality('Ikast-Brande Kommune', '29189617', 'KY_0756', '756'),\n",
+ " Municipality('Ringkøbing-Skjern Kommune', '29189609', 'KY_0760', '760'),\n",
+ " Municipality('Hedensted Kommune', '29189587', 'KY_0766', '766'),\n",
+ " Municipality('Morsø Kommune', '41333014', 'KY_0773', '773'),\n",
+ " Municipality('Skive Kommune', '29189579', 'KY_0779', '779'),\n",
+ " Municipality('Thisted Kommune', '29189560', 'KY_0787', '787'),\n",
+ " Municipality('Viborg Kommune', '29189846', 'KY_0791', '791'),\n",
+ " Municipality('Brønderslev Kommune', '29189501', 'KY_0810', '810'),\n",
+ " Municipality('Frederikshavn Kommune', '29189498', 'KY_0813', '813'),\n",
+ " Municipality('Vesthimmerlands Kommune', '29189471', 'KY_0820', '820'),\n",
+ " Municipality('Læsø Kommune', '45973328', 'KY_0825', '825'),\n",
+ " Municipality('Rebild Kommune', '29189463', 'KY_0840', '840'),\n",
+ " Municipality('Mariagerfjord Kommune', '29189455', 'KY_0846', '846'),\n",
+ " Municipality('Jammerbugt Kommune', '29189439', 'KY_0849', '849'),\n",
+ " Municipality('Aalborg Kommune', '29189420', 'KY_0851', '851'),\n",
+ " Municipality('Hjørring Kommune', '29189382', 'KY_0860', '860'),\n",
+ " Municipality('Københavns Kommune', '64942212', 'KY_0101', '101'),\n",
+ " Municipality('Frederiksberg Kommune', '11259979', 'KY_0147', '147'),\n",
+ " Municipality('Ballerup Kommune', '58271713', 'KY_0151', '151'),\n",
+ " Municipality('Brøndby Kommune', '65113015', 'KY_0153', '153'),\n",
+ " Municipality('Dragør Kommune', '12881517', 'KY_0155', '155'),\n",
+ " Municipality('Gentofte Kommune', '19438414', 'KY_0157', '157'),\n",
+ " Municipality('Gladsaxe Kommune', '62761113', 'KY_0159', '159'),\n",
+ " Municipality('Glostrup Kommune', '65120119', 'KY_0161', '161'),\n",
+ " Municipality('Herlev Kommune', '63640719', 'KY_0163', '163'),\n",
+ " Municipality('Albertslund Kommune', '66137112', 'KY_0165', '165'),\n",
+ " Municipality('Hvidovre Kommune', '55606617', 'KY_0167', '167'),\n",
+ " Municipality('Høje Taastrup Kommune', '19501817', 'KY_0169', '169'),\n",
+ " Municipality('Lyngby-Taarbæk Kommune', '11715311', 'KY_0173', '173'),\n",
+ " Municipality('Rødovre Kommune', '65307316', 'KY_0175', '175'),\n",
+ " Municipality('Ishøj Kommune', '11931316', 'KY_0183', '183'),\n",
+ " Municipality('Tårnby Kommune', '20310413', 'KY_0185', '185'),\n",
+ " Municipality('Vallensbæk Kommune', '19583910', 'KY_0187', '187'),\n",
+ " Municipality('Furesø Kommune', '29188327', 'KY_0190', '190'),\n",
+ " Municipality('Allerød Kommune', '60183112', 'KY_0201', '201'),\n",
+ " Municipality('Fredensborg Kommune', '29188335', 'KY_0210', '210'),\n",
+ " Municipality('Helsingør Kommune', '64502018', 'KY_0217', '217'),\n",
+ " Municipality('Hillerød Kommune', '29189366', 'KY_0219', '219'),\n",
+ " Municipality('Hørsholm Kommune', '70960516', 'KY_0223', '223'),\n",
+ " Municipality('Rudersdal Kommune', '29188378', 'KY_0230', '230'),\n",
+ " Municipality('Egedal Kommune', '29188386', 'KY_0240', '240'),\n",
+ " Municipality('Frederikssund Kommune', '29189129', 'KY_0250', '250'),\n",
+ " Municipality('Greve Kommune', '44023911', 'KY_0253', '253'),\n",
+ " Municipality('Køge Kommune', '29189374', 'KY_0259', '259'),\n",
+ " Municipality('Halsnæs Kommune', '29188416', 'KY_0260', '260'),\n",
+ " Municipality('Roskilde Kommune', '29189404', 'KY_0265', '265'),\n",
+ " Municipality('Solrød Kommune', '68534917', 'KY_0269', '269'),\n",
+ " Municipality('Gribskov Kommune', '29188440', 'KY_0270', '270'),\n",
+ " Municipality('Odsherred Kommune', '29188459', 'KY_0306', '306'),\n",
+ " Municipality('Holbæk Kommune', '29189447', 'KY_0316', '316'),\n",
+ " Municipality('Faxe Kommune', '29188475', 'KY_0320', '320'),\n",
+ " Municipality('Kalundborg Kommune', '29189595', 'KY_0326', '326'),\n",
+ " Municipality('Ringsted Kommune', '18957981', 'KY_0329', '329'),\n",
+ " Municipality('Slagelse Kommune', '29188505', 'KY_0330', '330'),\n",
+ " Municipality('Stevns Kommune', '29208654', 'KY_0336', '336'),\n",
+ " Municipality('Sorø Kommune', '29189994', 'KY_0340', '340'),\n",
+ " Municipality('Lejre Kommune', '29188548', 'KY_0350', '350'),\n",
+ " Municipality('Lolland Kommune', '29188572', 'KY_0360', '360'),\n",
+ " Municipality('Næstved Kommune', '29189625', 'KY_0370', '370'),\n",
+ " Municipality('Guldborgsund Kommune', '29188599', 'KY_0376', '376'),\n",
+ " Municipality('Vordingborg Kommune', '29189676', 'KY_0390', '390'),\n",
+ " Municipality('Bornholms Regionskommune', '26696348', 'KY_0400', '400'),\n",
+ " Municipality('Middelfart Kommune', '29189684', 'KY_0410', '410'),\n",
+ " Municipality('Assens Kommune', '29189692', 'KY_0420', '420'),\n",
+ " Municipality('Faaborg-Midtfyn Kommune', '29188645', 'KY_0430', '430'),\n",
+ " Municipality('Kerteminde Kommune', '29189706', 'KY_0440', '440'),\n",
+ " Municipality('Nyborg Kommune', '29189722', 'KY_0450', '450'),\n",
+ "]"
+ ],
+ "id": "6b6e8799942abcc1",
+ "outputs": [],
+ "execution_count": 4
+ },
+ {
+ "metadata": {
+ "ExecuteTime": {
+ "end_time": "2024-12-30T20:25:26.226843Z",
+ "start_time": "2024-12-30T20:24:44.950651Z"
+ }
+ },
+ "cell_type": "code",
+ "source": "db_adapter.run_sql_file_export_to_file_multiple_schemas(municipalities, export_type=ExportType.EXCEL)",
+ "id": "7b3292ddcb9edd91",
+ "outputs": [
+ {
+ "name": "stderr",
+ "output_type": "stream",
+ "text": [
+ "2024-12-30 21:24:44,955|INFO|Reading file query.sql\n",
+ "2024-12-30 21:24:44,955|INFO|Reading file query.sql\n",
+ "2024-12-30 21:24:44,974|INFO|Stripping comments from file query.sql\n",
+ "2024-12-30 21:24:44,974|INFO|Stripping comments from file query.sql\n",
+ "2024-12-30 21:24:45,204|INFO|Running on 98 schemas\n",
+ "2024-12-30 21:24:45,204|INFO|Running on 98 schemas\n",
+ "2024-12-30 21:24:45,258|INFO|Running query: \"WITH samliv_samberegn AS (SELECT SAG_ID, SAMLIVSSTATUS\n",
+ " FROM (SELECT sp_distinct.SAG_ID,\n",
+ " decode(SAGSPART.RELATIONSROLLE, 'SAMBEREGNET_GIFT',\n",
+ " 'Samberegnet gift', 'SAMBEREGNET_SAMLEVER',\n",
+ " 'Samberegnet samlever', 'Enlig (Ikke samberegnet)')\n",
+ " AS SAMLIVSSTATUS\n",
+ " FROM (SELECT DISTINCT SAG_ID FROM SAGSPART) sp_distinct\n",
+ " LEFT JOIN SAGSPART on sp_distinct.SAG_ID = SAGSPART.SAG_ID and\n",
+ " SAGSPART.RELATIONSROLLE IN\n",
+ " ('SAMBEREGNET_GIFT', 'SAMBEREGNET_SAMLEVER'))),\n",
+ "\n",
+ " sub_udrejse_filtered AS (\n",
+ " SELECT PERSON_ID, MAX(INDREJSEDATO) as INDREJSEDATO\n",
+ " FROM SUB_UDREJSE\n",
+ " WHERE (MONTHS_BETWEEN(INDREJSEDATO, UDREJSEDATO) >= 12\n",
+ " OR UDREJSEDATO IS NULL)\n",
+ " GROUP BY PERSON_ID),\n",
+ " indrejse_filtered AS (\n",
+ " SELECT BG_PERSON_ID, MAX(GYLDIG_TIL) as GYLDIG_TIL\n",
+ " FROM INDREJSE\n",
+ " WHERE (MONTHS_BETWEEN(GYLDIG_TIL, GYLDIG_FRA) >= 12\n",
+ " OR GYLDIG_FRA IS NULL)\n",
+ " GROUP BY BG_PERSON_ID),\n",
+ " indrejsedato AS (\n",
+ " SELECT *\n",
+ " FROM (SELECT p.ID,\n",
+ " p.PERSONNUMMER,\n",
+ " indrejse.GYLDIG_TIL,\n",
+ " sub_udrejse.INDREJSEDATO,\n",
+ " p.OVERSTYRET_INDREJSEDATO as OVERSTYRET,\n",
+ " GREATEST(nvl(indrejse.GYLDIG_TIL, DATE '1000-01-01'),\n",
+ " nvl(sub_udrejse.INDREJSEDATO, DATE '1000-01-01'),\n",
+ " nvl(p.OVERSTYRET_INDREJSEDATO, DATE '1000-01-01')) as SIDSTE_INDREJSEDATO\n",
+ " FROM PERSON p\n",
+ " JOIN BG_PERSON bgp ON bgp.PERSON_ID = p.ID\n",
+ " LEFT JOIN indrejse_filtered indrejse ON indrejse.BG_PERSON_ID = bgp.ID\n",
+ " LEFT JOIN sub_udrejse_filtered sub_udrejse ON sub_udrejse.PERSON_ID = p.ID)\n",
+ " WHERE SIDSTE_INDREJSEDATO >= DATE '1968-04-02')\n",
+ " ,\n",
+ "\n",
+ " land AS (SELECT titel, landekode\n",
+ " FROM (SELECT pt.NAVN PARAMETERTYPE,\n",
+ " pi.ID PARAMETERINSTANS_ID,\n",
+ " pi.NOEGLE NOEGLE,\n",
+ " pi.GYLDIG_FRA,\n",
+ " pi.GYLDIG_TIL,\n",
+ " pa.NAVN ATTRIBUT,\n",
+ " pv.VAERDI VAERDI\n",
+ " FROM KY_CENTRAL.PARAMETERTYPE pt\n",
+ " LEFT JOIN KY_CENTRAL.PARAMETERINSTANS pi ON pi.PARAMETERTYPE_ID = pt.ID\n",
+ " LEFT JOIN KY_CENTRAL.PARAMETERVAERDI pv ON pv.PARAMETERINSTANS_ID = pi.ID\n",
+ " LEFT JOIN KY_CENTRAL.PARAMETERATTRIBUT pa ON pv.PARAMETERATTRIBUT_ID = pa.ID\n",
+ " WHERE pt.NAVN = 'land'\n",
+ " AND pi.GYLDIG_FRA < SYSTIMESTAMP\n",
+ " AND (pi.GYLDIG_TIL IS NULL OR pi.GYLDIG_TIL > SYSTIMESTAMP)) t\n",
+ " PIVOT (\n",
+ " MIN(CAST(VAERDI AS VARCHAR2(255))) FOR ATTRIBUT IN ('titel' AS titel,'landekode' AS landekode )\n",
+ " )),\n",
+ "\n",
+ " BESKAEFTIGELSESKRAV AS (SELECT brg.SAG_ID AS SAG_ID,\n",
+ " brg_besk.opfyldt AS OPFYLDER_BESKAEFTIGELSESKRAV,\n",
+ " oprettet,\n",
+ " brg.PERSON_ID,\n",
+ " brg.id,\n",
+ " rank() over (partition by SAG_ID order by oprettet desc) as rank\n",
+ " FROM BEREGNINGSGRUNDLAG brg\n",
+ " left JOIN BRG_BESKAEFTIGELSESKRAV brg_besk\n",
+ " ON brg.ID = brg_besk.BEREGNINGSGRUNDLAG_ID\n",
+ " WHERE (brg_besk.GYLDIG_FRA <= DATE '2024-11-30' OR brg_besk.GYLDIG_FRA IS NULL)\n",
+ " AND (brg_besk.GYLDIG_TIL >= DATE '2024-11-01' OR brg_besk.GYLDIG_TIL IS NULL)),\n",
+ " person_with_active_htf_sho AS\n",
+ " (SELECT bgperson.PERSON_ID,\n",
+ " bgperson.PERSONNUMMER,\n",
+ " byd.YDELSESTYPE,\n",
+ " s.BRUGERVENDT_NOEGLE AS SAG_BRUGERVENDT_NOEGLE,\n",
+ " land.titel AS STATSBORGERSKAB,\n",
+ " indrejse.SIDSTE_INDREJSEDATO As SIDSTE_INDREJSEDATO,\n",
+ " decode(civilstand.TYPE_KODE, 'G', 'Gift', 'F', 'Fraskilt', 'Ugift') AS CIVILSTAND,\n",
+ " samberegn.SAMLIVSSTATUS AS SAMLIVSSTAND,\n",
+ " ophg.OPHOLDSGRUNDLAG AS OPHOLDSGRUNDLAG,\n",
+ " DECODE(socp.IKKE_RET, 'Y', 'Ja', 'Nej') AS REGISTRERET_IKKE_RET_TIL_SOC_PENSION,\n",
+ " COALESCE(BK.OPFYLDER_BESKAEFTIGELSESKRAV, 'N') AS OPFYLDER_BESKAEFTIGELSESKRAV,\n",
+ " case\n",
+ " when ophg.LOVLIGT_OPHOLDSGRUNDLAG = 'Y'\n",
+ " or SB.YDELSEPATH like '%borger_har_opfyldt_opholdskravet%'\n",
+ " or SB.YDELSEPATH like '%borger_har_opfyldt_gammelt_opholdskrav%'\n",
+ " then 'Ja'\n",
+ " else 'Nej'\n",
+ " end as opholdstilladse\n",
+ " FROM SAG s\n",
+ " JOIN AFGOERELSE afg ON s.ID = afg.SAG_ID\n",
+ " JOIN BEVILGET_YDELSE byd ON afg.ID = byd.AFGOERELSE_ID\n",
+ " JOIN SAGSPART sp ON s.ID = sp.SAG_ID AND\n",
+ " sp.RELATIONSROLLE = 'BEVILLINGSMODTAGER'\n",
+ " JOIN BG_PERSON bgperson ON sp.PERSON_ID = bgperson.PERSON_ID\n",
+ " LEFT JOIN BESKAEFTIGELSESKRAV BK ON BK.SAG_ID = s.ID AND\n",
+ " BK.RANK = 1\n",
+ " left JOIN STATSBORGERSKAB statsb ON bgperson.ID = statsb.BG_PERSON_ID AND\n",
+ " (statsb.Gyldig_til >= DATE '2024-11-30' OR\n",
+ " statsb.GYLDIG_TIL IS NULL) AND\n",
+ " statsb.GYLDIG_FRA <= DATE '2024-11-30'\n",
+ " JOIN land ON statsb.STATSBORGERSKAB = land.LANDEKODE\n",
+ " left JOIN CIVILSTAND civilstand ON bgperson.ID = civilstand.BG_PERSON_ID AND\n",
+ " (civilstand.Gyldig_til >= DATE '2024-11-30' OR civilstand.GYLDIG_TIL IS NULL) AND\n",
+ " (civilstand.GYLDIG_FRA <= DATE '2024-11-30' OR civilstand.GYLDIG_FRA IS NULL)\n",
+ " JOIN samliv_samberegn samberegn ON s.ID = samberegn.SAG_ID\n",
+ " JOIN indrejsedato indrejse ON indrejse.ID = sp.PERSON_ID\n",
+ " LEFT JOIN sub_SOCIAL_PENSION socp on socp.PERSON_ID = sp.PERSON_ID AND\n",
+ " socp.GYLDIG_FRA <= DATE '2024-11-30' AND\n",
+ " (socp.GYLDIG_TIL >= DATE '2024-11-30' OR\n",
+ " socp.GYLDIG_TIL IS NULL)\n",
+ " LEFT JOIN SUB_OPHOLDSGRUNDLAG ophg on ophg.PERSON_ID = sp.PERSON_ID AND\n",
+ " ophg.GYLDIG_FRA <= DATE '2024-11-30' AND\n",
+ " (ophg.GYLDIG_TIL >= DATE '2024-11-30' OR\n",
+ " ophg.GYLDIG_TIL IS NULL)\n",
+ " left join simulated_benefit SB on SB.BEREGNINGSGRUNDLAG_ID = BK.id and\n",
+ " (SB.GYLDIG_FRA <= DATE '2024-11-30' or SB.GYLDIG_FRA is null) and\n",
+ " (SB.GYLDIG_TIl >= DATE '2024-11-01' or SB.GYLDIG_TIL is null)\n",
+ "\n",
+ " WHERE 1 = 1\n",
+ "\n",
+ " AND (s.GYLDIG_TIL is null or s.GYLDIG_TIL >= DATE '2024-12-02')\n",
+ " AND S.GYLDIG_FRA <= DATE '2024-11-30'\n",
+ "\n",
+ " And (afg.GYLDIG_TIL >= DATE '2024-12-02' OR afg.GYLDIG_TIL IS NULL)\n",
+ " AND afg.GYLDIG_FRA <= DATE '2024-11-30'\n",
+ "\n",
+ " AND (sp.Gyldig_til >= DATE '2024-12-02' OR sp.GYLDIG_TIL IS NULL)\n",
+ " AND sp.GYLDIG_FRA <= DATE '2024-11-30'\n",
+ "\n",
+ " AND (byd.SLUTDATO >= DATE '2024-11-01' OR byd.SLUTDATO IS NULL)\n",
+ " AND byd.STARTDATO <= DATE '2024-11-30'\n",
+ "\n",
+ " AND byd.INVALIDERET = 'N'\n",
+ " AND afg.INVALIDERET_AF_NY_AFGOERELSE = 'N'\n",
+ " AND afg.TYPE IN ('BEVILLING', 'AFLEDT_BEVILLING')\n",
+ " AND s.YDELSESART = 'HTF'\n",
+ " AND byd.YDELSESTYPE IN\n",
+ " (\n",
+ "\n",
+ " 'HTF_UDDANNELSE',\n",
+ " 'HTF_UDDANNELSE_ULEDB_OG_HAND_FLYGT',\n",
+ " 'HTF_UDDANNELSE_FLYGT_NEDSAT_FUNKTION',\n",
+ " 'FORREVA_UDDANNELSE',\n",
+ " 'FORREVA_UDDANNELSE_FLYGT_NEDSAT_FUNKTION',\n",
+ " 'FORREVA_UDDANNELSE_ULEDB_OG_HAND_FLYGT',\n",
+ "\n",
+ " 'HTF_KONTANT',\n",
+ " 'HTF_KONTANT_ULEDB_OG_HAND_FLYGT',\n",
+ " 'HTF_KONTANT_FLYGT_NEDSAT_FUNKTION',\n",
+ " 'HTF_KONTANT_FOERTID_U_SP',\n",
+ " 'HTF_KONTANT_FOERTID_U_SP_FLYGT_NEDSAT_FUNKTION',\n",
+ " 'HTF_KONTANT_EFTERLOEN_U_SP',\n",
+ " 'HTF_KONTANT_EFTERLOEN_U_SP_FLYGT_NEDSAT_FUNKTION',\n",
+ " 'FORREVA_KONTANT',\n",
+ " 'FORREVA_KONTANT_ULEDB_OG_HAND_FLYGT',\n",
+ " 'FORREVA_KONTANT_FLYGT_NEDSAT_FUNKTION',\n",
+ " 'FORREVA_KONTANT_FOERTID_U_SP',\n",
+ " 'FORREVA_KONTANT_FOERTID_U_SP_FLYGT_NEDSAT_FUNKTION',\n",
+ "\n",
+ " 'HTF_KONTANT_EFTERLOEN_U_SP',\n",
+ " 'HTF_KONTANT_EFTERLOEN_U_SP_FLYGT_NEDSAT_FUNKTION',\n",
+ "\n",
+ " 'HTF_KONTANT_FOERTID_U_SP',\n",
+ " 'HTF_KONTANT_FOERTID_U_SP_FLYGT_NEDSAT_FUNKTION',\n",
+ " 'HTF_OY',\n",
+ " 'HTF_OY_ULEDB_OG_HAND_FLYGT',\n",
+ " 'HTF_OY_FLYGT_NEDSAT_FUNKTION',\n",
+ " 'HTF_OY_UDDANNELSESPAALAEG',\n",
+ " 'HTF_OY_UDDANNELSESPAALAEG_ULEDB_OG_HAND_FLYGT',\n",
+ " 'HTF_OY_UDDANNELSESPAALAEG_FLYGT_NEDSAT_FUNKTION',\n",
+ " 'HTF_INT_OY',\n",
+ " 'HTF_INT_OY_ULEDB_OG_HAND_FLYGT',\n",
+ " 'HTF_INT_OY_FLYGT_NEDSAT_FUNKTION',\n",
+ " 'HTF_INT_SHY',\n",
+ " 'HTF_INT_SHY_ULEDB_OG_HAND_FLYGT',\n",
+ " 'HTF_INT_SHY_FLYGT_NEDSAT_FUNKTION'\n",
+ " )\n",
+ " AND s.AFGOERENDE_MYNDIGHED = 'Y'\n",
+ " )\n",
+ "SELECT PERSONNUMMER AS \"Personnummer\",\n",
+ " LISTAGG(DISTINCT ps.YDELSESTYPE, ', ')\n",
+ " WITHIN GROUP (ORDER BY ps.YDELSESTYPE) AS \"Ydelsestype\",\n",
+ " LISTAGG(DISTINCT ps.SAG_BRUGERVENDT_NOEGLE, ', ')\n",
+ " WITHIN GROUP (ORDER BY ps.SAG_BRUGERVENDT_NOEGLE) AS \"Sag Brugervendt nøgle\",\n",
+ " LISTAGG(DISTINCT ps.STATSBORGERSKAB, ', ')\n",
+ " WITHIN GROUP (ORDER BY ps.STATSBORGERSKAB) AS \"Statsborgerskab\",\n",
+ " LISTAGG(DISTINCT TO_CHAR(ps.SIDSTE_INDREJSEDATO, 'DD-MM-YYYY'), ', ')\n",
+ " WITHIN GROUP (ORDER BY ps.SIDSTE_INDREJSEDATO) AS \"Sidste Indrejsedato\",\n",
+ " LISTAGG(DISTINCT ps.CIVILSTAND, ', ')\n",
+ " WITHIN GROUP (ORDER BY ps.CIVILSTAND) AS \"Civilstand\",\n",
+ " LISTAGG(DISTINCT ps.SAMLIVSSTAND, ', ')\n",
+ " WITHIN GROUP (ORDER BY ps.SAMLIVSSTAND) AS \"Samlivsstand\",\n",
+ " LISTAGG(DISTINCT ps.OPFYLDER_BESKAEFTIGELSESKRAV, ', ')\n",
+ " WITHIN GROUP (ORDER BY ps.OPFYLDER_BESKAEFTIGELSESKRAV) AS \"Opfylder beskæftigelseskrav\",\n",
+ " LISTAGG(DISTINCT ps.REGISTRERET_IKKE_RET_TIL_SOC_PENSION, ', ')\n",
+ " WITHIN GROUP (ORDER BY ps.REGISTRERET_IKKE_RET_TIL_SOC_PENSION) AS \"Registreret ikke-ret til social pension\",\n",
+ " LISTAGG(DISTINCT ps.OPHOLDSGRUNDLAG, ', ')\n",
+ " WITHIN GROUP (ORDER BY ps.OPHOLDSGRUNDLAG) AS \"Opholdsgrundlag i perioden\",\n",
+ " LISTAGG(DISTINCT ps.opholdstilladse, ', ')\n",
+ " WITHIN GROUP (ORDER BY ps.opholdstilladse) AS \"Opfylder opholdskrav\"\n",
+ "FROM person_with_active_htf_sho ps\n",
+ "where 1 = 1\n",
+ "GROUP BY PERSONNUMMER\"\n",
+ "2024-12-30 21:24:45,258|INFO|Running query: \"WITH samliv_samberegn AS (SELECT SAG_ID, SAMLIVSSTATUS\n",
+ " FROM (SELECT sp_distinct.SAG_ID,\n",
+ " decode(SAGSPART.RELATIONSROLLE, 'SAMBEREGNET_GIFT',\n",
+ " 'Samberegnet gift', 'SAMBEREGNET_SAMLEVER',\n",
+ " 'Samberegnet samlever', 'Enlig (Ikke samberegnet)')\n",
+ " AS SAMLIVSSTATUS\n",
+ " FROM (SELECT DISTINCT SAG_ID FROM SAGSPART) sp_distinct\n",
+ " LEFT JOIN SAGSPART on sp_distinct.SAG_ID = SAGSPART.SAG_ID and\n",
+ " SAGSPART.RELATIONSROLLE IN\n",
+ " ('SAMBEREGNET_GIFT', 'SAMBEREGNET_SAMLEVER'))),\n",
+ "\n",
+ " sub_udrejse_filtered AS (\n",
+ " SELECT PERSON_ID, MAX(INDREJSEDATO) as INDREJSEDATO\n",
+ " FROM SUB_UDREJSE\n",
+ " WHERE (MONTHS_BETWEEN(INDREJSEDATO, UDREJSEDATO) >= 12\n",
+ " OR UDREJSEDATO IS NULL)\n",
+ " GROUP BY PERSON_ID),\n",
+ " indrejse_filtered AS (\n",
+ " SELECT BG_PERSON_ID, MAX(GYLDIG_TIL) as GYLDIG_TIL\n",
+ " FROM INDREJSE\n",
+ " WHERE (MONTHS_BETWEEN(GYLDIG_TIL, GYLDIG_FRA) >= 12\n",
+ " OR GYLDIG_FRA IS NULL)\n",
+ " GROUP BY BG_PERSON_ID),\n",
+ " indrejsedato AS (\n",
+ " SELECT *\n",
+ " FROM (SELECT p.ID,\n",
+ " p.PERSONNUMMER,\n",
+ " indrejse.GYLDIG_TIL,\n",
+ " sub_udrejse.INDREJSEDATO,\n",
+ " p.OVERSTYRET_INDREJSEDATO as OVERSTYRET,\n",
+ " GREATEST(nvl(indrejse.GYLDIG_TIL, DATE '1000-01-01'),\n",
+ " nvl(sub_udrejse.INDREJSEDATO, DATE '1000-01-01'),\n",
+ " nvl(p.OVERSTYRET_INDREJSEDATO, DATE '1000-01-01')) as SIDSTE_INDREJSEDATO\n",
+ " FROM PERSON p\n",
+ " JOIN BG_PERSON bgp ON bgp.PERSON_ID = p.ID\n",
+ " LEFT JOIN indrejse_filtered indrejse ON indrejse.BG_PERSON_ID = bgp.ID\n",
+ " LEFT JOIN sub_udrejse_filtered sub_udrejse ON sub_udrejse.PERSON_ID = p.ID)\n",
+ " WHERE SIDSTE_INDREJSEDATO >= DATE '1968-04-02')\n",
+ " ,\n",
+ "\n",
+ " land AS (SELECT titel, landekode\n",
+ " FROM (SELECT pt.NAVN PARAMETERTYPE,\n",
+ " pi.ID PARAMETERINSTANS_ID,\n",
+ " pi.NOEGLE NOEGLE,\n",
+ " pi.GYLDIG_FRA,\n",
+ " pi.GYLDIG_TIL,\n",
+ " pa.NAVN ATTRIBUT,\n",
+ " pv.VAERDI VAERDI\n",
+ " FROM KY_CENTRAL.PARAMETERTYPE pt\n",
+ " LEFT JOIN KY_CENTRAL.PARAMETERINSTANS pi ON pi.PARAMETERTYPE_ID = pt.ID\n",
+ " LEFT JOIN KY_CENTRAL.PARAMETERVAERDI pv ON pv.PARAMETERINSTANS_ID = pi.ID\n",
+ " LEFT JOIN KY_CENTRAL.PARAMETERATTRIBUT pa ON pv.PARAMETERATTRIBUT_ID = pa.ID\n",
+ " WHERE pt.NAVN = 'land'\n",
+ " AND pi.GYLDIG_FRA < SYSTIMESTAMP\n",
+ " AND (pi.GYLDIG_TIL IS NULL OR pi.GYLDIG_TIL > SYSTIMESTAMP)) t\n",
+ " PIVOT (\n",
+ " MIN(CAST(VAERDI AS VARCHAR2(255))) FOR ATTRIBUT IN ('titel' AS titel,'landekode' AS landekode )\n",
+ " )),\n",
+ "\n",
+ " BESKAEFTIGELSESKRAV AS (SELECT brg.SAG_ID AS SAG_ID,\n",
+ " brg_besk.opfyldt AS OPFYLDER_BESKAEFTIGELSESKRAV,\n",
+ " oprettet,\n",
+ " brg.PERSON_ID,\n",
+ " brg.id,\n",
+ " rank() over (partition by SAG_ID order by oprettet desc) as rank\n",
+ " FROM BEREGNINGSGRUNDLAG brg\n",
+ " left JOIN BRG_BESKAEFTIGELSESKRAV brg_besk\n",
+ " ON brg.ID = brg_besk.BEREGNINGSGRUNDLAG_ID\n",
+ " WHERE (brg_besk.GYLDIG_FRA <= DATE '2024-11-30' OR brg_besk.GYLDIG_FRA IS NULL)\n",
+ " AND (brg_besk.GYLDIG_TIL >= DATE '2024-11-01' OR brg_besk.GYLDIG_TIL IS NULL)),\n",
+ " person_with_active_htf_sho AS\n",
+ " (SELECT bgperson.PERSON_ID,\n",
+ " bgperson.PERSONNUMMER,\n",
+ " byd.YDELSESTYPE,\n",
+ " s.BRUGERVENDT_NOEGLE AS SAG_BRUGERVENDT_NOEGLE,\n",
+ " land.titel AS STATSBORGERSKAB,\n",
+ " indrejse.SIDSTE_INDREJSEDATO As SIDSTE_INDREJSEDATO,\n",
+ " decode(civilstand.TYPE_KODE, 'G', 'Gift', 'F', 'Fraskilt', 'Ugift') AS CIVILSTAND,\n",
+ " samberegn.SAMLIVSSTATUS AS SAMLIVSSTAND,\n",
+ " ophg.OPHOLDSGRUNDLAG AS OPHOLDSGRUNDLAG,\n",
+ " DECODE(socp.IKKE_RET, 'Y', 'Ja', 'Nej') AS REGISTRERET_IKKE_RET_TIL_SOC_PENSION,\n",
+ " COALESCE(BK.OPFYLDER_BESKAEFTIGELSESKRAV, 'N') AS OPFYLDER_BESKAEFTIGELSESKRAV,\n",
+ " case\n",
+ " when ophg.LOVLIGT_OPHOLDSGRUNDLAG = 'Y'\n",
+ " or SB.YDELSEPATH like '%borger_har_opfyldt_opholdskravet%'\n",
+ " or SB.YDELSEPATH like '%borger_har_opfyldt_gammelt_opholdskrav%'\n",
+ " then 'Ja'\n",
+ " else 'Nej'\n",
+ " end as opholdstilladse\n",
+ " FROM SAG s\n",
+ " JOIN AFGOERELSE afg ON s.ID = afg.SAG_ID\n",
+ " JOIN BEVILGET_YDELSE byd ON afg.ID = byd.AFGOERELSE_ID\n",
+ " JOIN SAGSPART sp ON s.ID = sp.SAG_ID AND\n",
+ " sp.RELATIONSROLLE = 'BEVILLINGSMODTAGER'\n",
+ " JOIN BG_PERSON bgperson ON sp.PERSON_ID = bgperson.PERSON_ID\n",
+ " LEFT JOIN BESKAEFTIGELSESKRAV BK ON BK.SAG_ID = s.ID AND\n",
+ " BK.RANK = 1\n",
+ " left JOIN STATSBORGERSKAB statsb ON bgperson.ID = statsb.BG_PERSON_ID AND\n",
+ " (statsb.Gyldig_til >= DATE '2024-11-30' OR\n",
+ " statsb.GYLDIG_TIL IS NULL) AND\n",
+ " statsb.GYLDIG_FRA <= DATE '2024-11-30'\n",
+ " JOIN land ON statsb.STATSBORGERSKAB = land.LANDEKODE\n",
+ " left JOIN CIVILSTAND civilstand ON bgperson.ID = civilstand.BG_PERSON_ID AND\n",
+ " (civilstand.Gyldig_til >= DATE '2024-11-30' OR civilstand.GYLDIG_TIL IS NULL) AND\n",
+ " (civilstand.GYLDIG_FRA <= DATE '2024-11-30' OR civilstand.GYLDIG_FRA IS NULL)\n",
+ " JOIN samliv_samberegn samberegn ON s.ID = samberegn.SAG_ID\n",
+ " JOIN indrejsedato indrejse ON indrejse.ID = sp.PERSON_ID\n",
+ " LEFT JOIN sub_SOCIAL_PENSION socp on socp.PERSON_ID = sp.PERSON_ID AND\n",
+ " socp.GYLDIG_FRA <= DATE '2024-11-30' AND\n",
+ " (socp.GYLDIG_TIL >= DATE '2024-11-30' OR\n",
+ " socp.GYLDIG_TIL IS NULL)\n",
+ " LEFT JOIN SUB_OPHOLDSGRUNDLAG ophg on ophg.PERSON_ID = sp.PERSON_ID AND\n",
+ " ophg.GYLDIG_FRA <= DATE '2024-11-30' AND\n",
+ " (ophg.GYLDIG_TIL >= DATE '2024-11-30' OR\n",
+ " ophg.GYLDIG_TIL IS NULL)\n",
+ " left join simulated_benefit SB on SB.BEREGNINGSGRUNDLAG_ID = BK.id and\n",
+ " (SB.GYLDIG_FRA <= DATE '2024-11-30' or SB.GYLDIG_FRA is null) and\n",
+ " (SB.GYLDIG_TIl >= DATE '2024-11-01' or SB.GYLDIG_TIL is null)\n",
+ "\n",
+ " WHERE 1 = 1\n",
+ "\n",
+ " AND (s.GYLDIG_TIL is null or s.GYLDIG_TIL >= DATE '2024-12-02')\n",
+ " AND S.GYLDIG_FRA <= DATE '2024-11-30'\n",
+ "\n",
+ " And (afg.GYLDIG_TIL >= DATE '2024-12-02' OR afg.GYLDIG_TIL IS NULL)\n",
+ " AND afg.GYLDIG_FRA <= DATE '2024-11-30'\n",
+ "\n",
+ " AND (sp.Gyldig_til >= DATE '2024-12-02' OR sp.GYLDIG_TIL IS NULL)\n",
+ " AND sp.GYLDIG_FRA <= DATE '2024-11-30'\n",
+ "\n",
+ " AND (byd.SLUTDATO >= DATE '2024-11-01' OR byd.SLUTDATO IS NULL)\n",
+ " AND byd.STARTDATO <= DATE '2024-11-30'\n",
+ "\n",
+ " AND byd.INVALIDERET = 'N'\n",
+ " AND afg.INVALIDERET_AF_NY_AFGOERELSE = 'N'\n",
+ " AND afg.TYPE IN ('BEVILLING', 'AFLEDT_BEVILLING')\n",
+ " AND s.YDELSESART = 'HTF'\n",
+ " AND byd.YDELSESTYPE IN\n",
+ " (\n",
+ "\n",
+ " 'HTF_UDDANNELSE',\n",
+ " 'HTF_UDDANNELSE_ULEDB_OG_HAND_FLYGT',\n",
+ " 'HTF_UDDANNELSE_FLYGT_NEDSAT_FUNKTION',\n",
+ " 'FORREVA_UDDANNELSE',\n",
+ " 'FORREVA_UDDANNELSE_FLYGT_NEDSAT_FUNKTION',\n",
+ " 'FORREVA_UDDANNELSE_ULEDB_OG_HAND_FLYGT',\n",
+ "\n",
+ " 'HTF_KONTANT',\n",
+ " 'HTF_KONTANT_ULEDB_OG_HAND_FLYGT',\n",
+ " 'HTF_KONTANT_FLYGT_NEDSAT_FUNKTION',\n",
+ " 'HTF_KONTANT_FOERTID_U_SP',\n",
+ " 'HTF_KONTANT_FOERTID_U_SP_FLYGT_NEDSAT_FUNKTION',\n",
+ " 'HTF_KONTANT_EFTERLOEN_U_SP',\n",
+ " 'HTF_KONTANT_EFTERLOEN_U_SP_FLYGT_NEDSAT_FUNKTION',\n",
+ " 'FORREVA_KONTANT',\n",
+ " 'FORREVA_KONTANT_ULEDB_OG_HAND_FLYGT',\n",
+ " 'FORREVA_KONTANT_FLYGT_NEDSAT_FUNKTION',\n",
+ " 'FORREVA_KONTANT_FOERTID_U_SP',\n",
+ " 'FORREVA_KONTANT_FOERTID_U_SP_FLYGT_NEDSAT_FUNKTION',\n",
+ "\n",
+ " 'HTF_KONTANT_EFTERLOEN_U_SP',\n",
+ " 'HTF_KONTANT_EFTERLOEN_U_SP_FLYGT_NEDSAT_FUNKTION',\n",
+ "\n",
+ " 'HTF_KONTANT_FOERTID_U_SP',\n",
+ " 'HTF_KONTANT_FOERTID_U_SP_FLYGT_NEDSAT_FUNKTION',\n",
+ " 'HTF_OY',\n",
+ " 'HTF_OY_ULEDB_OG_HAND_FLYGT',\n",
+ " 'HTF_OY_FLYGT_NEDSAT_FUNKTION',\n",
+ " 'HTF_OY_UDDANNELSESPAALAEG',\n",
+ " 'HTF_OY_UDDANNELSESPAALAEG_ULEDB_OG_HAND_FLYGT',\n",
+ " 'HTF_OY_UDDANNELSESPAALAEG_FLYGT_NEDSAT_FUNKTION',\n",
+ " 'HTF_INT_OY',\n",
+ " 'HTF_INT_OY_ULEDB_OG_HAND_FLYGT',\n",
+ " 'HTF_INT_OY_FLYGT_NEDSAT_FUNKTION',\n",
+ " 'HTF_INT_SHY',\n",
+ " 'HTF_INT_SHY_ULEDB_OG_HAND_FLYGT',\n",
+ " 'HTF_INT_SHY_FLYGT_NEDSAT_FUNKTION'\n",
+ " )\n",
+ " AND s.AFGOERENDE_MYNDIGHED = 'Y'\n",
+ " )\n",
+ "SELECT PERSONNUMMER AS \"Personnummer\",\n",
+ " LISTAGG(DISTINCT ps.YDELSESTYPE, ', ')\n",
+ " WITHIN GROUP (ORDER BY ps.YDELSESTYPE) AS \"Ydelsestype\",\n",
+ " LISTAGG(DISTINCT ps.SAG_BRUGERVENDT_NOEGLE, ', ')\n",
+ " WITHIN GROUP (ORDER BY ps.SAG_BRUGERVENDT_NOEGLE) AS \"Sag Brugervendt nøgle\",\n",
+ " LISTAGG(DISTINCT ps.STATSBORGERSKAB, ', ')\n",
+ " WITHIN GROUP (ORDER BY ps.STATSBORGERSKAB) AS \"Statsborgerskab\",\n",
+ " LISTAGG(DISTINCT TO_CHAR(ps.SIDSTE_INDREJSEDATO, 'DD-MM-YYYY'), ', ')\n",
+ " WITHIN GROUP (ORDER BY ps.SIDSTE_INDREJSEDATO) AS \"Sidste Indrejsedato\",\n",
+ " LISTAGG(DISTINCT ps.CIVILSTAND, ', ')\n",
+ " WITHIN GROUP (ORDER BY ps.CIVILSTAND) AS \"Civilstand\",\n",
+ " LISTAGG(DISTINCT ps.SAMLIVSSTAND, ', ')\n",
+ " WITHIN GROUP (ORDER BY ps.SAMLIVSSTAND) AS \"Samlivsstand\",\n",
+ " LISTAGG(DISTINCT ps.OPFYLDER_BESKAEFTIGELSESKRAV, ', ')\n",
+ " WITHIN GROUP (ORDER BY ps.OPFYLDER_BESKAEFTIGELSESKRAV) AS \"Opfylder beskæftigelseskrav\",\n",
+ " LISTAGG(DISTINCT ps.REGISTRERET_IKKE_RET_TIL_SOC_PENSION, ', ')\n",
+ " WITHIN GROUP (ORDER BY ps.REGISTRERET_IKKE_RET_TIL_SOC_PENSION) AS \"Registreret ikke-ret til social pension\",\n",
+ " LISTAGG(DISTINCT ps.OPHOLDSGRUNDLAG, ', ')\n",
+ " WITHIN GROUP (ORDER BY ps.OPHOLDSGRUNDLAG) AS \"Opholdsgrundlag i perioden\",\n",
+ " LISTAGG(DISTINCT ps.opholdstilladse, ', ')\n",
+ " WITHIN GROUP (ORDER BY ps.opholdstilladse) AS \"Opfylder opholdskrav\"\n",
+ "FROM person_with_active_htf_sho ps\n",
+ "where 1 = 1\n",
+ "GROUP BY PERSONNUMMER\"\n",
+ "2024-12-30 21:24:46,115|INFO|(1/98) running for municipality Odense Kommune\n",
+ "2024-12-30 21:24:46,115|INFO|(1/98) running for municipality Odense Kommune\n",
+ "2024-12-30 21:24:46,170|INFO|Verifying query\n",
+ "2024-12-30 21:24:46,170|INFO|Verifying query\n",
+ "2024-12-30 21:24:46,310|INFO|Starting transaction\n",
+ "2024-12-30 21:24:46,310|INFO|Starting transaction\n",
+ "2024-12-30 21:24:46,368|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:24:46,368|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:24:46,409|INFO|Setting schema to \"KY_0461\"\n",
+ "2024-12-30 21:24:46,409|INFO|Setting schema to \"KY_0461\"\n",
+ "2024-12-30 21:24:46,622|INFO|Query took 0.1676 seconds\n",
+ "2024-12-30 21:24:46,622|INFO|Query took 0.1676 seconds\n",
+ "2024-12-30 21:24:47,704|INFO|Created file output/Odense Kommune.xlsx\n",
+ "2024-12-30 21:24:47,704|INFO|Created file output/Odense Kommune.xlsx\n",
+ "2024-12-30 21:24:47,717|INFO|(2/98) running for municipality Svendborg Kommune\n",
+ "2024-12-30 21:24:47,717|INFO|(2/98) running for municipality Svendborg Kommune\n",
+ "2024-12-30 21:24:47,731|INFO|Verifying query\n",
+ "2024-12-30 21:24:47,731|INFO|Verifying query\n",
+ "2024-12-30 21:24:47,803|INFO|Starting transaction\n",
+ "2024-12-30 21:24:47,803|INFO|Starting transaction\n",
+ "2024-12-30 21:24:47,818|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:24:47,818|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:24:47,853|INFO|Setting schema to \"KY_0479\"\n",
+ "2024-12-30 21:24:47,853|INFO|Setting schema to \"KY_0479\"\n",
+ "2024-12-30 21:24:48,041|INFO|Query took 0.1263 seconds\n",
+ "2024-12-30 21:24:48,041|INFO|Query took 0.1263 seconds\n",
+ "2024-12-30 21:24:48,120|INFO|Created file output/Svendborg Kommune.xlsx\n",
+ "2024-12-30 21:24:48,120|INFO|Created file output/Svendborg Kommune.xlsx\n",
+ "2024-12-30 21:24:48,136|INFO|(3/98) running for municipality Nordfyns Kommune\n",
+ "2024-12-30 21:24:48,136|INFO|(3/98) running for municipality Nordfyns Kommune\n",
+ "2024-12-30 21:24:48,148|INFO|Verifying query\n",
+ "2024-12-30 21:24:48,148|INFO|Verifying query\n",
+ "2024-12-30 21:24:48,222|INFO|Starting transaction\n",
+ "2024-12-30 21:24:48,222|INFO|Starting transaction\n",
+ "2024-12-30 21:24:48,237|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:24:48,237|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:24:48,309|INFO|Setting schema to \"KY_0480\"\n",
+ "2024-12-30 21:24:48,309|INFO|Setting schema to \"KY_0480\"\n",
+ "2024-12-30 21:24:48,486|INFO|Query took 0.1167 seconds\n",
+ "2024-12-30 21:24:48,486|INFO|Query took 0.1167 seconds\n",
+ "2024-12-30 21:24:48,535|INFO|Created file output/Nordfyns Kommune.xlsx\n",
+ "2024-12-30 21:24:48,535|INFO|Created file output/Nordfyns Kommune.xlsx\n",
+ "2024-12-30 21:24:48,550|INFO|(4/98) running for municipality Langeland Kommune\n",
+ "2024-12-30 21:24:48,550|INFO|(4/98) running for municipality Langeland Kommune\n",
+ "2024-12-30 21:24:48,566|INFO|Verifying query\n",
+ "2024-12-30 21:24:48,566|INFO|Verifying query\n",
+ "2024-12-30 21:24:48,657|INFO|Starting transaction\n",
+ "2024-12-30 21:24:48,657|INFO|Starting transaction\n",
+ "2024-12-30 21:24:48,677|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:24:48,677|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:24:48,715|INFO|Setting schema to \"KY_0482\"\n",
+ "2024-12-30 21:24:48,715|INFO|Setting schema to \"KY_0482\"\n",
+ "2024-12-30 21:24:48,839|INFO|Query took 0.0870 seconds\n",
+ "2024-12-30 21:24:48,839|INFO|Query took 0.0870 seconds\n",
+ "2024-12-30 21:24:48,944|INFO|Created file output/Langeland Kommune.xlsx\n",
+ "2024-12-30 21:24:48,944|INFO|Created file output/Langeland Kommune.xlsx\n",
+ "2024-12-30 21:24:48,960|INFO|(5/98) running for municipality Ærø Kommune\n",
+ "2024-12-30 21:24:48,960|INFO|(5/98) running for municipality Ærø Kommune\n",
+ "2024-12-30 21:24:48,978|INFO|Verifying query\n",
+ "2024-12-30 21:24:48,978|INFO|Verifying query\n",
+ "2024-12-30 21:24:49,071|INFO|Starting transaction\n",
+ "2024-12-30 21:24:49,071|INFO|Starting transaction\n",
+ "2024-12-30 21:24:49,086|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:24:49,086|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:24:49,127|INFO|Setting schema to \"KY_0492\"\n",
+ "2024-12-30 21:24:49,127|INFO|Setting schema to \"KY_0492\"\n",
+ "2024-12-30 21:24:49,250|INFO|Query took 0.0891 seconds\n",
+ "2024-12-30 21:24:49,250|INFO|Query took 0.0891 seconds\n",
+ "2024-12-30 21:24:49,349|INFO|Created file output/Ærø Kommune.xlsx\n",
+ "2024-12-30 21:24:49,349|INFO|Created file output/Ærø Kommune.xlsx\n",
+ "2024-12-30 21:24:49,366|INFO|(6/98) running for municipality Haderslev Kommune\n",
+ "2024-12-30 21:24:49,366|INFO|(6/98) running for municipality Haderslev Kommune\n",
+ "2024-12-30 21:24:49,383|INFO|Verifying query\n",
+ "2024-12-30 21:24:49,383|INFO|Verifying query\n",
+ "2024-12-30 21:24:49,473|INFO|Starting transaction\n",
+ "2024-12-30 21:24:49,473|INFO|Starting transaction\n",
+ "2024-12-30 21:24:49,488|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:24:49,488|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:24:49,521|INFO|Setting schema to \"KY_0510\"\n",
+ "2024-12-30 21:24:49,521|INFO|Setting schema to \"KY_0510\"\n",
+ "2024-12-30 21:24:49,642|INFO|Query took 0.0906 seconds\n",
+ "2024-12-30 21:24:49,642|INFO|Query took 0.0906 seconds\n",
+ "2024-12-30 21:24:49,728|INFO|Created file output/Haderslev Kommune.xlsx\n",
+ "2024-12-30 21:24:49,728|INFO|Created file output/Haderslev Kommune.xlsx\n",
+ "2024-12-30 21:24:49,742|INFO|(7/98) running for municipality Billund Kommune\n",
+ "2024-12-30 21:24:49,742|INFO|(7/98) running for municipality Billund Kommune\n",
+ "2024-12-30 21:24:49,756|INFO|Verifying query\n",
+ "2024-12-30 21:24:49,756|INFO|Verifying query\n",
+ "2024-12-30 21:24:49,841|INFO|Starting transaction\n",
+ "2024-12-30 21:24:49,841|INFO|Starting transaction\n",
+ "2024-12-30 21:24:49,858|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:24:49,858|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:24:49,896|INFO|Setting schema to \"KY_0530\"\n",
+ "2024-12-30 21:24:49,896|INFO|Setting schema to \"KY_0530\"\n",
+ "2024-12-30 21:24:50,023|INFO|Query took 0.0924 seconds\n",
+ "2024-12-30 21:24:50,023|INFO|Query took 0.0924 seconds\n",
+ "2024-12-30 21:24:50,113|INFO|Created file output/Billund Kommune.xlsx\n",
+ "2024-12-30 21:24:50,113|INFO|Created file output/Billund Kommune.xlsx\n",
+ "2024-12-30 21:24:50,126|INFO|(8/98) running for municipality Sønderborg Kommune\n",
+ "2024-12-30 21:24:50,126|INFO|(8/98) running for municipality Sønderborg Kommune\n",
+ "2024-12-30 21:24:50,139|INFO|Verifying query\n",
+ "2024-12-30 21:24:50,139|INFO|Verifying query\n",
+ "2024-12-30 21:24:50,212|INFO|Starting transaction\n",
+ "2024-12-30 21:24:50,212|INFO|Starting transaction\n",
+ "2024-12-30 21:24:50,224|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:24:50,224|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:24:50,256|INFO|Setting schema to \"KY_0540\"\n",
+ "2024-12-30 21:24:50,256|INFO|Setting schema to \"KY_0540\"\n",
+ "2024-12-30 21:24:50,376|INFO|Query took 0.0871 seconds\n",
+ "2024-12-30 21:24:50,376|INFO|Query took 0.0871 seconds\n",
+ "2024-12-30 21:24:50,434|INFO|Created file output/Sønderborg Kommune.xlsx\n",
+ "2024-12-30 21:24:50,434|INFO|Created file output/Sønderborg Kommune.xlsx\n",
+ "2024-12-30 21:24:50,452|INFO|(9/98) running for municipality Tønder Kommune\n",
+ "2024-12-30 21:24:50,452|INFO|(9/98) running for municipality Tønder Kommune\n",
+ "2024-12-30 21:24:50,474|INFO|Verifying query\n",
+ "2024-12-30 21:24:50,474|INFO|Verifying query\n",
+ "2024-12-30 21:24:50,554|INFO|Starting transaction\n",
+ "2024-12-30 21:24:50,554|INFO|Starting transaction\n",
+ "2024-12-30 21:24:50,567|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:24:50,567|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:24:50,596|INFO|Setting schema to \"KY_0550\"\n",
+ "2024-12-30 21:24:50,596|INFO|Setting schema to \"KY_0550\"\n",
+ "2024-12-30 21:24:50,716|INFO|Query took 0.0873 seconds\n",
+ "2024-12-30 21:24:50,716|INFO|Query took 0.0873 seconds\n",
+ "2024-12-30 21:24:50,762|INFO|Created file output/Tønder Kommune.xlsx\n",
+ "2024-12-30 21:24:50,762|INFO|Created file output/Tønder Kommune.xlsx\n",
+ "2024-12-30 21:24:50,778|INFO|(10/98) running for municipality Esbjerg Kommune\n",
+ "2024-12-30 21:24:50,778|INFO|(10/98) running for municipality Esbjerg Kommune\n",
+ "2024-12-30 21:24:50,795|INFO|Verifying query\n",
+ "2024-12-30 21:24:50,795|INFO|Verifying query\n",
+ "2024-12-30 21:24:50,893|INFO|Starting transaction\n",
+ "2024-12-30 21:24:50,893|INFO|Starting transaction\n",
+ "2024-12-30 21:24:50,912|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:24:50,912|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:24:50,950|INFO|Setting schema to \"KY_0561\"\n",
+ "2024-12-30 21:24:50,950|INFO|Setting schema to \"KY_0561\"\n",
+ "2024-12-30 21:24:51,072|INFO|Query took 0.0853 seconds\n",
+ "2024-12-30 21:24:51,072|INFO|Query took 0.0853 seconds\n",
+ "2024-12-30 21:24:51,116|INFO|Created file output/Esbjerg Kommune.xlsx\n",
+ "2024-12-30 21:24:51,116|INFO|Created file output/Esbjerg Kommune.xlsx\n",
+ "2024-12-30 21:24:51,130|INFO|(11/98) running for municipality Fanø Kommune\n",
+ "2024-12-30 21:24:51,130|INFO|(11/98) running for municipality Fanø Kommune\n",
+ "2024-12-30 21:24:51,144|INFO|Verifying query\n",
+ "2024-12-30 21:24:51,144|INFO|Verifying query\n",
+ "2024-12-30 21:24:51,221|INFO|Starting transaction\n",
+ "2024-12-30 21:24:51,221|INFO|Starting transaction\n",
+ "2024-12-30 21:24:51,236|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:24:51,236|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:24:51,272|INFO|Setting schema to \"KY_0563\"\n",
+ "2024-12-30 21:24:51,272|INFO|Setting schema to \"KY_0563\"\n",
+ "2024-12-30 21:24:51,390|INFO|Query took 0.0850 seconds\n",
+ "2024-12-30 21:24:51,390|INFO|Query took 0.0850 seconds\n",
+ "2024-12-30 21:24:51,475|INFO|Created file output/Fanø Kommune.xlsx\n",
+ "2024-12-30 21:24:51,475|INFO|Created file output/Fanø Kommune.xlsx\n",
+ "2024-12-30 21:24:51,492|INFO|(12/98) running for municipality Varde Kommune\n",
+ "2024-12-30 21:24:51,492|INFO|(12/98) running for municipality Varde Kommune\n",
+ "2024-12-30 21:24:51,509|INFO|Verifying query\n",
+ "2024-12-30 21:24:51,509|INFO|Verifying query\n",
+ "2024-12-30 21:24:51,587|INFO|Starting transaction\n",
+ "2024-12-30 21:24:51,587|INFO|Starting transaction\n",
+ "2024-12-30 21:24:51,602|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:24:51,602|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:24:51,635|INFO|Setting schema to \"KY_0573\"\n",
+ "2024-12-30 21:24:51,635|INFO|Setting schema to \"KY_0573\"\n",
+ "2024-12-30 21:24:51,757|INFO|Query took 0.0861 seconds\n",
+ "2024-12-30 21:24:51,757|INFO|Query took 0.0861 seconds\n",
+ "2024-12-30 21:24:51,803|INFO|Created file output/Varde Kommune.xlsx\n",
+ "2024-12-30 21:24:51,803|INFO|Created file output/Varde Kommune.xlsx\n",
+ "2024-12-30 21:24:51,815|INFO|(13/98) running for municipality Vejen Kommune\n",
+ "2024-12-30 21:24:51,815|INFO|(13/98) running for municipality Vejen Kommune\n",
+ "2024-12-30 21:24:51,827|INFO|Verifying query\n",
+ "2024-12-30 21:24:51,827|INFO|Verifying query\n",
+ "2024-12-30 21:24:51,913|INFO|Starting transaction\n",
+ "2024-12-30 21:24:51,913|INFO|Starting transaction\n",
+ "2024-12-30 21:24:51,929|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:24:51,929|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:24:51,962|INFO|Setting schema to \"KY_0575\"\n",
+ "2024-12-30 21:24:51,962|INFO|Setting schema to \"KY_0575\"\n",
+ "2024-12-30 21:24:52,079|INFO|Query took 0.0839 seconds\n",
+ "2024-12-30 21:24:52,079|INFO|Query took 0.0839 seconds\n",
+ "2024-12-30 21:24:52,126|INFO|Created file output/Vejen Kommune.xlsx\n",
+ "2024-12-30 21:24:52,126|INFO|Created file output/Vejen Kommune.xlsx\n",
+ "2024-12-30 21:24:52,140|INFO|(14/98) running for municipality Aabenraa Kommune\n",
+ "2024-12-30 21:24:52,140|INFO|(14/98) running for municipality Aabenraa Kommune\n",
+ "2024-12-30 21:24:52,156|INFO|Verifying query\n",
+ "2024-12-30 21:24:52,156|INFO|Verifying query\n",
+ "2024-12-30 21:24:52,242|INFO|Starting transaction\n",
+ "2024-12-30 21:24:52,242|INFO|Starting transaction\n",
+ "2024-12-30 21:24:52,258|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:24:52,258|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:24:52,293|INFO|Setting schema to \"KY_0580\"\n",
+ "2024-12-30 21:24:52,293|INFO|Setting schema to \"KY_0580\"\n",
+ "2024-12-30 21:24:52,416|INFO|Query took 0.0885 seconds\n",
+ "2024-12-30 21:24:52,416|INFO|Query took 0.0885 seconds\n",
+ "2024-12-30 21:24:52,502|INFO|Created file output/Aabenraa Kommune.xlsx\n",
+ "2024-12-30 21:24:52,502|INFO|Created file output/Aabenraa Kommune.xlsx\n",
+ "2024-12-30 21:24:52,516|INFO|(15/98) running for municipality Fredericia Kommune\n",
+ "2024-12-30 21:24:52,516|INFO|(15/98) running for municipality Fredericia Kommune\n",
+ "2024-12-30 21:24:52,530|INFO|Verifying query\n",
+ "2024-12-30 21:24:52,530|INFO|Verifying query\n",
+ "2024-12-30 21:24:52,592|INFO|Starting transaction\n",
+ "2024-12-30 21:24:52,592|INFO|Starting transaction\n",
+ "2024-12-30 21:24:52,604|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:24:52,604|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:24:52,636|INFO|Setting schema to \"KY_0607\"\n",
+ "2024-12-30 21:24:52,636|INFO|Setting schema to \"KY_0607\"\n",
+ "2024-12-30 21:24:52,756|INFO|Query took 0.0883 seconds\n",
+ "2024-12-30 21:24:52,756|INFO|Query took 0.0883 seconds\n",
+ "2024-12-30 21:24:52,794|INFO|Created file output/Fredericia Kommune.xlsx\n",
+ "2024-12-30 21:24:52,794|INFO|Created file output/Fredericia Kommune.xlsx\n",
+ "2024-12-30 21:24:52,807|INFO|(16/98) running for municipality Horsens Kommune\n",
+ "2024-12-30 21:24:52,807|INFO|(16/98) running for municipality Horsens Kommune\n",
+ "2024-12-30 21:24:52,820|INFO|Verifying query\n",
+ "2024-12-30 21:24:52,820|INFO|Verifying query\n",
+ "2024-12-30 21:24:52,896|INFO|Starting transaction\n",
+ "2024-12-30 21:24:52,896|INFO|Starting transaction\n",
+ "2024-12-30 21:24:52,909|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:24:52,909|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:24:52,946|INFO|Setting schema to \"KY_0615\"\n",
+ "2024-12-30 21:24:52,946|INFO|Setting schema to \"KY_0615\"\n",
+ "2024-12-30 21:24:53,062|INFO|Query took 0.0842 seconds\n",
+ "2024-12-30 21:24:53,062|INFO|Query took 0.0842 seconds\n",
+ "2024-12-30 21:24:53,102|INFO|Created file output/Horsens Kommune.xlsx\n",
+ "2024-12-30 21:24:53,102|INFO|Created file output/Horsens Kommune.xlsx\n",
+ "2024-12-30 21:24:53,112|INFO|(17/98) running for municipality Kolding Kommune\n",
+ "2024-12-30 21:24:53,112|INFO|(17/98) running for municipality Kolding Kommune\n",
+ "2024-12-30 21:24:53,123|INFO|Verifying query\n",
+ "2024-12-30 21:24:53,123|INFO|Verifying query\n",
+ "2024-12-30 21:24:53,172|INFO|Starting transaction\n",
+ "2024-12-30 21:24:53,172|INFO|Starting transaction\n",
+ "2024-12-30 21:24:53,182|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:24:53,182|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:24:53,210|INFO|Setting schema to \"KY_0621\"\n",
+ "2024-12-30 21:24:53,210|INFO|Setting schema to \"KY_0621\"\n",
+ "2024-12-30 21:24:53,329|INFO|Query took 0.0879 seconds\n",
+ "2024-12-30 21:24:53,329|INFO|Query took 0.0879 seconds\n",
+ "2024-12-30 21:24:53,374|INFO|Created file output/Kolding Kommune.xlsx\n",
+ "2024-12-30 21:24:53,374|INFO|Created file output/Kolding Kommune.xlsx\n",
+ "2024-12-30 21:24:53,385|INFO|(18/98) running for municipality Vejle Kommune\n",
+ "2024-12-30 21:24:53,385|INFO|(18/98) running for municipality Vejle Kommune\n",
+ "2024-12-30 21:24:53,397|INFO|Verifying query\n",
+ "2024-12-30 21:24:53,397|INFO|Verifying query\n",
+ "2024-12-30 21:24:53,447|INFO|Starting transaction\n",
+ "2024-12-30 21:24:53,447|INFO|Starting transaction\n",
+ "2024-12-30 21:24:53,459|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:24:53,459|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:24:53,489|INFO|Setting schema to \"KY_0630\"\n",
+ "2024-12-30 21:24:53,489|INFO|Setting schema to \"KY_0630\"\n",
+ "2024-12-30 21:24:53,601|INFO|Query took 0.0824 seconds\n",
+ "2024-12-30 21:24:53,601|INFO|Query took 0.0824 seconds\n",
+ "2024-12-30 21:24:53,638|INFO|Created file output/Vejle Kommune.xlsx\n",
+ "2024-12-30 21:24:53,638|INFO|Created file output/Vejle Kommune.xlsx\n",
+ "2024-12-30 21:24:53,648|INFO|(19/98) running for municipality Herning Kommune\n",
+ "2024-12-30 21:24:53,648|INFO|(19/98) running for municipality Herning Kommune\n",
+ "2024-12-30 21:24:53,660|INFO|Verifying query\n",
+ "2024-12-30 21:24:53,660|INFO|Verifying query\n",
+ "2024-12-30 21:24:53,729|INFO|Starting transaction\n",
+ "2024-12-30 21:24:53,729|INFO|Starting transaction\n",
+ "2024-12-30 21:24:53,742|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:24:53,742|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:24:53,777|INFO|Setting schema to \"KY_0657\"\n",
+ "2024-12-30 21:24:53,777|INFO|Setting schema to \"KY_0657\"\n",
+ "2024-12-30 21:24:53,904|INFO|Query took 0.0950 seconds\n",
+ "2024-12-30 21:24:53,904|INFO|Query took 0.0950 seconds\n",
+ "2024-12-30 21:24:54,004|INFO|Created file output/Herning Kommune.xlsx\n",
+ "2024-12-30 21:24:54,004|INFO|Created file output/Herning Kommune.xlsx\n",
+ "2024-12-30 21:24:54,017|INFO|(20/98) running for municipality Holstebro Kommune\n",
+ "2024-12-30 21:24:54,017|INFO|(20/98) running for municipality Holstebro Kommune\n",
+ "2024-12-30 21:24:54,030|INFO|Verifying query\n",
+ "2024-12-30 21:24:54,030|INFO|Verifying query\n",
+ "2024-12-30 21:24:54,094|INFO|Starting transaction\n",
+ "2024-12-30 21:24:54,094|INFO|Starting transaction\n",
+ "2024-12-30 21:24:54,108|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:24:54,108|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:24:54,143|INFO|Setting schema to \"KY_0661\"\n",
+ "2024-12-30 21:24:54,143|INFO|Setting schema to \"KY_0661\"\n",
+ "2024-12-30 21:24:54,276|INFO|Query took 0.0960 seconds\n",
+ "2024-12-30 21:24:54,276|INFO|Query took 0.0960 seconds\n",
+ "2024-12-30 21:24:54,359|INFO|Created file output/Holstebro Kommune.xlsx\n",
+ "2024-12-30 21:24:54,359|INFO|Created file output/Holstebro Kommune.xlsx\n",
+ "2024-12-30 21:24:54,377|INFO|(21/98) running for municipality Lemvig Kommune\n",
+ "2024-12-30 21:24:54,377|INFO|(21/98) running for municipality Lemvig Kommune\n",
+ "2024-12-30 21:24:54,390|INFO|Verifying query\n",
+ "2024-12-30 21:24:54,390|INFO|Verifying query\n",
+ "2024-12-30 21:24:54,438|INFO|Starting transaction\n",
+ "2024-12-30 21:24:54,438|INFO|Starting transaction\n",
+ "2024-12-30 21:24:54,451|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:24:54,451|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:24:54,481|INFO|Setting schema to \"KY_0665\"\n",
+ "2024-12-30 21:24:54,481|INFO|Setting schema to \"KY_0665\"\n",
+ "2024-12-30 21:24:54,596|INFO|Query took 0.0850 seconds\n",
+ "2024-12-30 21:24:54,596|INFO|Query took 0.0850 seconds\n",
+ "2024-12-30 21:24:54,634|INFO|Created file output/Lemvig Kommune.xlsx\n",
+ "2024-12-30 21:24:54,634|INFO|Created file output/Lemvig Kommune.xlsx\n",
+ "2024-12-30 21:24:54,645|INFO|(22/98) running for municipality Struer Kommune\n",
+ "2024-12-30 21:24:54,645|INFO|(22/98) running for municipality Struer Kommune\n",
+ "2024-12-30 21:24:54,658|INFO|Verifying query\n",
+ "2024-12-30 21:24:54,658|INFO|Verifying query\n",
+ "2024-12-30 21:24:54,726|INFO|Starting transaction\n",
+ "2024-12-30 21:24:54,726|INFO|Starting transaction\n",
+ "2024-12-30 21:24:54,741|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:24:54,741|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:24:54,776|INFO|Setting schema to \"KY_0671\"\n",
+ "2024-12-30 21:24:54,776|INFO|Setting schema to \"KY_0671\"\n",
+ "2024-12-30 21:24:54,894|INFO|Query took 0.0862 seconds\n",
+ "2024-12-30 21:24:54,894|INFO|Query took 0.0862 seconds\n",
+ "2024-12-30 21:24:54,939|INFO|Created file output/Struer Kommune.xlsx\n",
+ "2024-12-30 21:24:54,939|INFO|Created file output/Struer Kommune.xlsx\n",
+ "2024-12-30 21:24:54,953|INFO|(23/98) running for municipality Syddjurs Kommune\n",
+ "2024-12-30 21:24:54,953|INFO|(23/98) running for municipality Syddjurs Kommune\n",
+ "2024-12-30 21:24:54,966|INFO|Verifying query\n",
+ "2024-12-30 21:24:54,966|INFO|Verifying query\n",
+ "2024-12-30 21:24:55,049|INFO|Starting transaction\n",
+ "2024-12-30 21:24:55,049|INFO|Starting transaction\n",
+ "2024-12-30 21:24:55,064|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:24:55,064|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:24:55,099|INFO|Setting schema to \"KY_0706\"\n",
+ "2024-12-30 21:24:55,099|INFO|Setting schema to \"KY_0706\"\n",
+ "2024-12-30 21:24:55,220|INFO|Query took 0.0845 seconds\n",
+ "2024-12-30 21:24:55,220|INFO|Query took 0.0845 seconds\n",
+ "2024-12-30 21:24:55,298|INFO|Created file output/Syddjurs Kommune.xlsx\n",
+ "2024-12-30 21:24:55,298|INFO|Created file output/Syddjurs Kommune.xlsx\n",
+ "2024-12-30 21:24:55,310|INFO|(24/98) running for municipality Norddjurs Kommune\n",
+ "2024-12-30 21:24:55,310|INFO|(24/98) running for municipality Norddjurs Kommune\n",
+ "2024-12-30 21:24:55,323|INFO|Verifying query\n",
+ "2024-12-30 21:24:55,323|INFO|Verifying query\n",
+ "2024-12-30 21:24:55,381|INFO|Starting transaction\n",
+ "2024-12-30 21:24:55,381|INFO|Starting transaction\n",
+ "2024-12-30 21:24:55,393|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:24:55,393|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:24:55,423|INFO|Setting schema to \"KY_0707\"\n",
+ "2024-12-30 21:24:55,423|INFO|Setting schema to \"KY_0707\"\n",
+ "2024-12-30 21:24:56,292|INFO|Query took 0.8373 seconds\n",
+ "2024-12-30 21:24:56,292|INFO|Query took 0.8373 seconds\n",
+ "2024-12-30 21:24:56,402|INFO|Created file output/Norddjurs Kommune.xlsx\n",
+ "2024-12-30 21:24:56,402|INFO|Created file output/Norddjurs Kommune.xlsx\n",
+ "2024-12-30 21:24:56,414|INFO|(25/98) running for municipality Favrskov Kommune\n",
+ "2024-12-30 21:24:56,414|INFO|(25/98) running for municipality Favrskov Kommune\n",
+ "2024-12-30 21:24:56,427|INFO|Verifying query\n",
+ "2024-12-30 21:24:56,427|INFO|Verifying query\n",
+ "2024-12-30 21:24:56,487|INFO|Starting transaction\n",
+ "2024-12-30 21:24:56,487|INFO|Starting transaction\n",
+ "2024-12-30 21:24:56,502|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:24:56,502|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:24:56,539|INFO|Setting schema to \"KY_0710\"\n",
+ "2024-12-30 21:24:56,539|INFO|Setting schema to \"KY_0710\"\n",
+ "2024-12-30 21:24:56,657|INFO|Query took 0.0870 seconds\n",
+ "2024-12-30 21:24:56,657|INFO|Query took 0.0870 seconds\n",
+ "2024-12-30 21:24:56,700|INFO|Created file output/Favrskov Kommune.xlsx\n",
+ "2024-12-30 21:24:56,700|INFO|Created file output/Favrskov Kommune.xlsx\n",
+ "2024-12-30 21:24:56,712|INFO|(26/98) running for municipality Odder Kommune\n",
+ "2024-12-30 21:24:56,712|INFO|(26/98) running for municipality Odder Kommune\n",
+ "2024-12-30 21:24:56,723|INFO|Verifying query\n",
+ "2024-12-30 21:24:56,723|INFO|Verifying query\n",
+ "2024-12-30 21:24:56,778|INFO|Starting transaction\n",
+ "2024-12-30 21:24:56,778|INFO|Starting transaction\n",
+ "2024-12-30 21:24:56,794|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:24:56,794|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:24:56,829|INFO|Setting schema to \"KY_0727\"\n",
+ "2024-12-30 21:24:56,829|INFO|Setting schema to \"KY_0727\"\n",
+ "2024-12-30 21:24:56,954|INFO|Query took 0.0866 seconds\n",
+ "2024-12-30 21:24:56,954|INFO|Query took 0.0866 seconds\n",
+ "2024-12-30 21:24:56,997|INFO|Created file output/Odder Kommune.xlsx\n",
+ "2024-12-30 21:24:56,997|INFO|Created file output/Odder Kommune.xlsx\n",
+ "2024-12-30 21:24:57,011|INFO|(27/98) running for municipality Randers Kommune\n",
+ "2024-12-30 21:24:57,011|INFO|(27/98) running for municipality Randers Kommune\n",
+ "2024-12-30 21:24:57,025|INFO|Verifying query\n",
+ "2024-12-30 21:24:57,025|INFO|Verifying query\n",
+ "2024-12-30 21:24:57,091|INFO|Starting transaction\n",
+ "2024-12-30 21:24:57,091|INFO|Starting transaction\n",
+ "2024-12-30 21:24:57,104|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:24:57,104|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:24:57,135|INFO|Setting schema to \"KY_0730\"\n",
+ "2024-12-30 21:24:57,135|INFO|Setting schema to \"KY_0730\"\n",
+ "2024-12-30 21:24:57,251|INFO|Query took 0.0849 seconds\n",
+ "2024-12-30 21:24:57,251|INFO|Query took 0.0849 seconds\n",
+ "2024-12-30 21:24:57,302|INFO|Created file output/Randers Kommune.xlsx\n",
+ "2024-12-30 21:24:57,302|INFO|Created file output/Randers Kommune.xlsx\n",
+ "2024-12-30 21:24:57,314|INFO|(28/98) running for municipality Silkeborg Kommune\n",
+ "2024-12-30 21:24:57,314|INFO|(28/98) running for municipality Silkeborg Kommune\n",
+ "2024-12-30 21:24:57,326|INFO|Verifying query\n",
+ "2024-12-30 21:24:57,326|INFO|Verifying query\n",
+ "2024-12-30 21:24:57,382|INFO|Starting transaction\n",
+ "2024-12-30 21:24:57,382|INFO|Starting transaction\n",
+ "2024-12-30 21:24:57,394|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:24:57,394|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:24:57,423|INFO|Setting schema to \"KY_0740\"\n",
+ "2024-12-30 21:24:57,423|INFO|Setting schema to \"KY_0740\"\n",
+ "2024-12-30 21:24:57,537|INFO|Query took 0.0825 seconds\n",
+ "2024-12-30 21:24:57,537|INFO|Query took 0.0825 seconds\n",
+ "2024-12-30 21:24:57,585|INFO|Created file output/Silkeborg Kommune.xlsx\n",
+ "2024-12-30 21:24:57,585|INFO|Created file output/Silkeborg Kommune.xlsx\n",
+ "2024-12-30 21:24:57,604|INFO|(29/98) running for municipality Samsø Kommune\n",
+ "2024-12-30 21:24:57,604|INFO|(29/98) running for municipality Samsø Kommune\n",
+ "2024-12-30 21:24:57,623|INFO|Verifying query\n",
+ "2024-12-30 21:24:57,623|INFO|Verifying query\n",
+ "2024-12-30 21:24:57,702|INFO|Starting transaction\n",
+ "2024-12-30 21:24:57,702|INFO|Starting transaction\n",
+ "2024-12-30 21:24:57,719|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:24:57,719|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:24:57,762|INFO|Setting schema to \"KY_0741\"\n",
+ "2024-12-30 21:24:57,762|INFO|Setting schema to \"KY_0741\"\n",
+ "2024-12-30 21:24:57,886|INFO|Query took 0.0877 seconds\n",
+ "2024-12-30 21:24:57,886|INFO|Query took 0.0877 seconds\n",
+ "2024-12-30 21:24:57,931|INFO|Created file output/Samsø Kommune.xlsx\n",
+ "2024-12-30 21:24:57,931|INFO|Created file output/Samsø Kommune.xlsx\n",
+ "2024-12-30 21:24:57,947|INFO|(30/98) running for municipality Skanderborg Kommune\n",
+ "2024-12-30 21:24:57,947|INFO|(30/98) running for municipality Skanderborg Kommune\n",
+ "2024-12-30 21:24:57,961|INFO|Verifying query\n",
+ "2024-12-30 21:24:57,961|INFO|Verifying query\n",
+ "2024-12-30 21:24:58,040|INFO|Starting transaction\n",
+ "2024-12-30 21:24:58,040|INFO|Starting transaction\n",
+ "2024-12-30 21:24:58,056|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:24:58,056|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:24:58,092|INFO|Setting schema to \"KY_0746\"\n",
+ "2024-12-30 21:24:58,092|INFO|Setting schema to \"KY_0746\"\n",
+ "2024-12-30 21:24:58,237|INFO|Query took 0.0965 seconds\n",
+ "2024-12-30 21:24:58,237|INFO|Query took 0.0965 seconds\n",
+ "2024-12-30 21:24:58,296|INFO|Created file output/Skanderborg Kommune.xlsx\n",
+ "2024-12-30 21:24:58,296|INFO|Created file output/Skanderborg Kommune.xlsx\n",
+ "2024-12-30 21:24:58,328|INFO|(31/98) running for municipality Aarhus Kommune\n",
+ "2024-12-30 21:24:58,328|INFO|(31/98) running for municipality Aarhus Kommune\n",
+ "2024-12-30 21:24:58,349|INFO|Verifying query\n",
+ "2024-12-30 21:24:58,349|INFO|Verifying query\n",
+ "2024-12-30 21:24:58,533|INFO|Starting transaction\n",
+ "2024-12-30 21:24:58,533|INFO|Starting transaction\n",
+ "2024-12-30 21:24:58,581|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:24:58,581|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:24:58,657|INFO|Setting schema to \"KY_0751\"\n",
+ "2024-12-30 21:24:58,657|INFO|Setting schema to \"KY_0751\"\n",
+ "2024-12-30 21:24:58,801|INFO|Query took 0.0897 seconds\n",
+ "2024-12-30 21:24:58,801|INFO|Query took 0.0897 seconds\n",
+ "2024-12-30 21:24:58,860|INFO|Created file output/Aarhus Kommune.xlsx\n",
+ "2024-12-30 21:24:58,860|INFO|Created file output/Aarhus Kommune.xlsx\n",
+ "2024-12-30 21:24:58,880|INFO|(32/98) running for municipality Ikast-Brande Kommune\n",
+ "2024-12-30 21:24:58,880|INFO|(32/98) running for municipality Ikast-Brande Kommune\n",
+ "2024-12-30 21:24:58,901|INFO|Verifying query\n",
+ "2024-12-30 21:24:58,901|INFO|Verifying query\n",
+ "2024-12-30 21:24:59,019|INFO|Starting transaction\n",
+ "2024-12-30 21:24:59,019|INFO|Starting transaction\n",
+ "2024-12-30 21:24:59,039|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:24:59,039|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:24:59,084|INFO|Setting schema to \"KY_0756\"\n",
+ "2024-12-30 21:24:59,084|INFO|Setting schema to \"KY_0756\"\n",
+ "2024-12-30 21:24:59,213|INFO|Query took 0.0891 seconds\n",
+ "2024-12-30 21:24:59,213|INFO|Query took 0.0891 seconds\n",
+ "2024-12-30 21:24:59,267|INFO|Created file output/Ikast-Brande Kommune.xlsx\n",
+ "2024-12-30 21:24:59,267|INFO|Created file output/Ikast-Brande Kommune.xlsx\n",
+ "2024-12-30 21:24:59,285|INFO|(33/98) running for municipality Ringkøbing-Skjern Kommune\n",
+ "2024-12-30 21:24:59,285|INFO|(33/98) running for municipality Ringkøbing-Skjern Kommune\n",
+ "2024-12-30 21:24:59,303|INFO|Verifying query\n",
+ "2024-12-30 21:24:59,303|INFO|Verifying query\n",
+ "2024-12-30 21:24:59,405|INFO|Starting transaction\n",
+ "2024-12-30 21:24:59,405|INFO|Starting transaction\n",
+ "2024-12-30 21:24:59,424|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:24:59,424|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:24:59,459|INFO|Setting schema to \"KY_0760\"\n",
+ "2024-12-30 21:24:59,459|INFO|Setting schema to \"KY_0760\"\n",
+ "2024-12-30 21:24:59,606|INFO|Query took 0.0930 seconds\n",
+ "2024-12-30 21:24:59,606|INFO|Query took 0.0930 seconds\n",
+ "2024-12-30 21:24:59,671|INFO|Created file output/Ringkøbing-Skjern Kommune.xlsx\n",
+ "2024-12-30 21:24:59,671|INFO|Created file output/Ringkøbing-Skjern Kommune.xlsx\n",
+ "2024-12-30 21:24:59,692|INFO|(34/98) running for municipality Hedensted Kommune\n",
+ "2024-12-30 21:24:59,692|INFO|(34/98) running for municipality Hedensted Kommune\n",
+ "2024-12-30 21:24:59,715|INFO|Verifying query\n",
+ "2024-12-30 21:24:59,715|INFO|Verifying query\n",
+ "2024-12-30 21:24:59,826|INFO|Starting transaction\n",
+ "2024-12-30 21:24:59,826|INFO|Starting transaction\n",
+ "2024-12-30 21:24:59,843|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:24:59,843|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:24:59,885|INFO|Setting schema to \"KY_0766\"\n",
+ "2024-12-30 21:24:59,885|INFO|Setting schema to \"KY_0766\"\n",
+ "2024-12-30 21:25:00,014|INFO|Query took 0.0909 seconds\n",
+ "2024-12-30 21:25:00,014|INFO|Query took 0.0909 seconds\n",
+ "2024-12-30 21:25:00,071|INFO|Created file output/Hedensted Kommune.xlsx\n",
+ "2024-12-30 21:25:00,071|INFO|Created file output/Hedensted Kommune.xlsx\n",
+ "2024-12-30 21:25:00,088|INFO|(35/98) running for municipality Morsø Kommune\n",
+ "2024-12-30 21:25:00,088|INFO|(35/98) running for municipality Morsø Kommune\n",
+ "2024-12-30 21:25:00,103|INFO|Verifying query\n",
+ "2024-12-30 21:25:00,103|INFO|Verifying query\n",
+ "2024-12-30 21:25:00,303|INFO|Starting transaction\n",
+ "2024-12-30 21:25:00,303|INFO|Starting transaction\n",
+ "2024-12-30 21:25:00,322|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:25:00,322|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:25:00,366|INFO|Setting schema to \"KY_0773\"\n",
+ "2024-12-30 21:25:00,366|INFO|Setting schema to \"KY_0773\"\n",
+ "2024-12-30 21:25:00,498|INFO|Query took 0.0922 seconds\n",
+ "2024-12-30 21:25:00,498|INFO|Query took 0.0922 seconds\n",
+ "2024-12-30 21:25:00,558|INFO|Created file output/Morsø Kommune.xlsx\n",
+ "2024-12-30 21:25:00,558|INFO|Created file output/Morsø Kommune.xlsx\n",
+ "2024-12-30 21:25:00,578|INFO|(36/98) running for municipality Skive Kommune\n",
+ "2024-12-30 21:25:00,578|INFO|(36/98) running for municipality Skive Kommune\n",
+ "2024-12-30 21:25:00,597|INFO|Verifying query\n",
+ "2024-12-30 21:25:00,597|INFO|Verifying query\n",
+ "2024-12-30 21:25:00,683|INFO|Starting transaction\n",
+ "2024-12-30 21:25:00,683|INFO|Starting transaction\n",
+ "2024-12-30 21:25:00,703|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:25:00,703|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:25:00,743|INFO|Setting schema to \"KY_0779\"\n",
+ "2024-12-30 21:25:00,743|INFO|Setting schema to \"KY_0779\"\n",
+ "2024-12-30 21:25:00,870|INFO|Query took 0.0864 seconds\n",
+ "2024-12-30 21:25:00,870|INFO|Query took 0.0864 seconds\n",
+ "2024-12-30 21:25:00,918|INFO|Created file output/Skive Kommune.xlsx\n",
+ "2024-12-30 21:25:00,918|INFO|Created file output/Skive Kommune.xlsx\n",
+ "2024-12-30 21:25:00,933|INFO|(37/98) running for municipality Thisted Kommune\n",
+ "2024-12-30 21:25:00,933|INFO|(37/98) running for municipality Thisted Kommune\n",
+ "2024-12-30 21:25:00,953|INFO|Verifying query\n",
+ "2024-12-30 21:25:00,953|INFO|Verifying query\n",
+ "2024-12-30 21:25:01,037|INFO|Starting transaction\n",
+ "2024-12-30 21:25:01,037|INFO|Starting transaction\n",
+ "2024-12-30 21:25:01,052|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:25:01,052|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:25:01,085|INFO|Setting schema to \"KY_0787\"\n",
+ "2024-12-30 21:25:01,085|INFO|Setting schema to \"KY_0787\"\n",
+ "2024-12-30 21:25:01,210|INFO|Query took 0.0901 seconds\n",
+ "2024-12-30 21:25:01,210|INFO|Query took 0.0901 seconds\n",
+ "2024-12-30 21:25:01,267|INFO|Created file output/Thisted Kommune.xlsx\n",
+ "2024-12-30 21:25:01,267|INFO|Created file output/Thisted Kommune.xlsx\n",
+ "2024-12-30 21:25:01,286|INFO|(38/98) running for municipality Viborg Kommune\n",
+ "2024-12-30 21:25:01,286|INFO|(38/98) running for municipality Viborg Kommune\n",
+ "2024-12-30 21:25:01,303|INFO|Verifying query\n",
+ "2024-12-30 21:25:01,303|INFO|Verifying query\n",
+ "2024-12-30 21:25:01,402|INFO|Starting transaction\n",
+ "2024-12-30 21:25:01,402|INFO|Starting transaction\n",
+ "2024-12-30 21:25:01,430|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:25:01,430|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:25:01,469|INFO|Setting schema to \"KY_0791\"\n",
+ "2024-12-30 21:25:01,469|INFO|Setting schema to \"KY_0791\"\n",
+ "2024-12-30 21:25:01,603|INFO|Query took 0.0925 seconds\n",
+ "2024-12-30 21:25:01,603|INFO|Query took 0.0925 seconds\n",
+ "2024-12-30 21:25:01,663|INFO|Created file output/Viborg Kommune.xlsx\n",
+ "2024-12-30 21:25:01,663|INFO|Created file output/Viborg Kommune.xlsx\n",
+ "2024-12-30 21:25:01,682|INFO|(39/98) running for municipality Brønderslev Kommune\n",
+ "2024-12-30 21:25:01,682|INFO|(39/98) running for municipality Brønderslev Kommune\n",
+ "2024-12-30 21:25:01,704|INFO|Verifying query\n",
+ "2024-12-30 21:25:01,704|INFO|Verifying query\n",
+ "2024-12-30 21:25:01,845|INFO|Starting transaction\n",
+ "2024-12-30 21:25:01,845|INFO|Starting transaction\n",
+ "2024-12-30 21:25:01,868|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:25:01,868|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:25:01,917|INFO|Setting schema to \"KY_0810\"\n",
+ "2024-12-30 21:25:01,917|INFO|Setting schema to \"KY_0810\"\n",
+ "2024-12-30 21:25:02,054|INFO|Query took 0.0921 seconds\n",
+ "2024-12-30 21:25:02,054|INFO|Query took 0.0921 seconds\n",
+ "2024-12-30 21:25:02,119|INFO|Created file output/Brønderslev Kommune.xlsx\n",
+ "2024-12-30 21:25:02,119|INFO|Created file output/Brønderslev Kommune.xlsx\n",
+ "2024-12-30 21:25:02,140|INFO|(40/98) running for municipality Frederikshavn Kommune\n",
+ "2024-12-30 21:25:02,140|INFO|(40/98) running for municipality Frederikshavn Kommune\n",
+ "2024-12-30 21:25:02,159|INFO|Verifying query\n",
+ "2024-12-30 21:25:02,159|INFO|Verifying query\n",
+ "2024-12-30 21:25:02,264|INFO|Starting transaction\n",
+ "2024-12-30 21:25:02,264|INFO|Starting transaction\n",
+ "2024-12-30 21:25:02,283|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:25:02,283|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:25:02,321|INFO|Setting schema to \"KY_0813\"\n",
+ "2024-12-30 21:25:02,321|INFO|Setting schema to \"KY_0813\"\n",
+ "2024-12-30 21:25:02,463|INFO|Query took 0.1029 seconds\n",
+ "2024-12-30 21:25:02,463|INFO|Query took 0.1029 seconds\n",
+ "2024-12-30 21:25:02,522|INFO|Created file output/Frederikshavn Kommune.xlsx\n",
+ "2024-12-30 21:25:02,522|INFO|Created file output/Frederikshavn Kommune.xlsx\n",
+ "2024-12-30 21:25:02,543|INFO|(41/98) running for municipality Vesthimmerlands Kommune\n",
+ "2024-12-30 21:25:02,543|INFO|(41/98) running for municipality Vesthimmerlands Kommune\n",
+ "2024-12-30 21:25:02,565|INFO|Verifying query\n",
+ "2024-12-30 21:25:02,565|INFO|Verifying query\n",
+ "2024-12-30 21:25:02,695|INFO|Starting transaction\n",
+ "2024-12-30 21:25:02,695|INFO|Starting transaction\n",
+ "2024-12-30 21:25:02,724|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:25:02,724|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:25:02,765|INFO|Setting schema to \"KY_0820\"\n",
+ "2024-12-30 21:25:02,765|INFO|Setting schema to \"KY_0820\"\n",
+ "2024-12-30 21:25:02,900|INFO|Query took 0.0869 seconds\n",
+ "2024-12-30 21:25:02,900|INFO|Query took 0.0869 seconds\n",
+ "2024-12-30 21:25:02,949|INFO|Created file output/Vesthimmerlands Kommune.xlsx\n",
+ "2024-12-30 21:25:02,949|INFO|Created file output/Vesthimmerlands Kommune.xlsx\n",
+ "2024-12-30 21:25:02,966|INFO|(42/98) running for municipality Læsø Kommune\n",
+ "2024-12-30 21:25:02,966|INFO|(42/98) running for municipality Læsø Kommune\n",
+ "2024-12-30 21:25:02,983|INFO|Verifying query\n",
+ "2024-12-30 21:25:02,983|INFO|Verifying query\n",
+ "2024-12-30 21:25:03,081|INFO|Starting transaction\n",
+ "2024-12-30 21:25:03,081|INFO|Starting transaction\n",
+ "2024-12-30 21:25:03,097|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:25:03,097|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:25:03,132|INFO|Setting schema to \"KY_0825\"\n",
+ "2024-12-30 21:25:03,132|INFO|Setting schema to \"KY_0825\"\n",
+ "2024-12-30 21:25:03,255|INFO|Query took 0.0872 seconds\n",
+ "2024-12-30 21:25:03,255|INFO|Query took 0.0872 seconds\n",
+ "2024-12-30 21:25:03,309|INFO|Created file output/Læsø Kommune.xlsx\n",
+ "2024-12-30 21:25:03,309|INFO|Created file output/Læsø Kommune.xlsx\n",
+ "2024-12-30 21:25:03,333|INFO|(43/98) running for municipality Rebild Kommune\n",
+ "2024-12-30 21:25:03,333|INFO|(43/98) running for municipality Rebild Kommune\n",
+ "2024-12-30 21:25:03,352|INFO|Verifying query\n",
+ "2024-12-30 21:25:03,352|INFO|Verifying query\n",
+ "2024-12-30 21:25:03,442|INFO|Starting transaction\n",
+ "2024-12-30 21:25:03,442|INFO|Starting transaction\n",
+ "2024-12-30 21:25:03,461|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:25:03,461|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:25:03,502|INFO|Setting schema to \"KY_0840\"\n",
+ "2024-12-30 21:25:03,502|INFO|Setting schema to \"KY_0840\"\n",
+ "2024-12-30 21:25:03,622|INFO|Query took 0.0845 seconds\n",
+ "2024-12-30 21:25:03,622|INFO|Query took 0.0845 seconds\n",
+ "2024-12-30 21:25:03,673|INFO|Created file output/Rebild Kommune.xlsx\n",
+ "2024-12-30 21:25:03,673|INFO|Created file output/Rebild Kommune.xlsx\n",
+ "2024-12-30 21:25:03,689|INFO|(44/98) running for municipality Mariagerfjord Kommune\n",
+ "2024-12-30 21:25:03,689|INFO|(44/98) running for municipality Mariagerfjord Kommune\n",
+ "2024-12-30 21:25:03,706|INFO|Verifying query\n",
+ "2024-12-30 21:25:03,706|INFO|Verifying query\n",
+ "2024-12-30 21:25:03,834|INFO|Starting transaction\n",
+ "2024-12-30 21:25:03,834|INFO|Starting transaction\n",
+ "2024-12-30 21:25:03,856|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:25:03,856|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:25:03,899|INFO|Setting schema to \"KY_0846\"\n",
+ "2024-12-30 21:25:03,899|INFO|Setting schema to \"KY_0846\"\n",
+ "2024-12-30 21:25:04,031|INFO|Query took 0.0888 seconds\n",
+ "2024-12-30 21:25:04,031|INFO|Query took 0.0888 seconds\n",
+ "2024-12-30 21:25:04,078|INFO|Created file output/Mariagerfjord Kommune.xlsx\n",
+ "2024-12-30 21:25:04,078|INFO|Created file output/Mariagerfjord Kommune.xlsx\n",
+ "2024-12-30 21:25:04,094|INFO|(45/98) running for municipality Jammerbugt Kommune\n",
+ "2024-12-30 21:25:04,094|INFO|(45/98) running for municipality Jammerbugt Kommune\n",
+ "2024-12-30 21:25:04,109|INFO|Verifying query\n",
+ "2024-12-30 21:25:04,109|INFO|Verifying query\n",
+ "2024-12-30 21:25:04,196|INFO|Starting transaction\n",
+ "2024-12-30 21:25:04,196|INFO|Starting transaction\n",
+ "2024-12-30 21:25:04,215|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:25:04,215|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:25:04,253|INFO|Setting schema to \"KY_0849\"\n",
+ "2024-12-30 21:25:04,253|INFO|Setting schema to \"KY_0849\"\n",
+ "2024-12-30 21:25:04,378|INFO|Query took 0.0878 seconds\n",
+ "2024-12-30 21:25:04,378|INFO|Query took 0.0878 seconds\n",
+ "2024-12-30 21:25:04,488|INFO|Created file output/Jammerbugt Kommune.xlsx\n",
+ "2024-12-30 21:25:04,488|INFO|Created file output/Jammerbugt Kommune.xlsx\n",
+ "2024-12-30 21:25:04,508|INFO|(46/98) running for municipality Aalborg Kommune\n",
+ "2024-12-30 21:25:04,508|INFO|(46/98) running for municipality Aalborg Kommune\n",
+ "2024-12-30 21:25:04,527|INFO|Verifying query\n",
+ "2024-12-30 21:25:04,527|INFO|Verifying query\n",
+ "2024-12-30 21:25:04,616|INFO|Starting transaction\n",
+ "2024-12-30 21:25:04,616|INFO|Starting transaction\n",
+ "2024-12-30 21:25:04,632|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:25:04,632|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:25:04,667|INFO|Setting schema to \"KY_0851\"\n",
+ "2024-12-30 21:25:04,667|INFO|Setting schema to \"KY_0851\"\n",
+ "2024-12-30 21:25:04,788|INFO|Query took 0.0859 seconds\n",
+ "2024-12-30 21:25:04,788|INFO|Query took 0.0859 seconds\n",
+ "2024-12-30 21:25:04,843|INFO|Created file output/Aalborg Kommune.xlsx\n",
+ "2024-12-30 21:25:04,843|INFO|Created file output/Aalborg Kommune.xlsx\n",
+ "2024-12-30 21:25:04,863|INFO|(47/98) running for municipality Hjørring Kommune\n",
+ "2024-12-30 21:25:04,863|INFO|(47/98) running for municipality Hjørring Kommune\n",
+ "2024-12-30 21:25:04,883|INFO|Verifying query\n",
+ "2024-12-30 21:25:04,883|INFO|Verifying query\n",
+ "2024-12-30 21:25:04,980|INFO|Starting transaction\n",
+ "2024-12-30 21:25:04,980|INFO|Starting transaction\n",
+ "2024-12-30 21:25:04,998|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:25:04,998|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:25:05,038|INFO|Setting schema to \"KY_0860\"\n",
+ "2024-12-30 21:25:05,038|INFO|Setting schema to \"KY_0860\"\n",
+ "2024-12-30 21:25:05,164|INFO|Query took 0.0862 seconds\n",
+ "2024-12-30 21:25:05,164|INFO|Query took 0.0862 seconds\n",
+ "2024-12-30 21:25:05,245|INFO|Created file output/Hjørring Kommune.xlsx\n",
+ "2024-12-30 21:25:05,245|INFO|Created file output/Hjørring Kommune.xlsx\n",
+ "2024-12-30 21:25:05,259|INFO|(48/98) running for municipality Københavns Kommune\n",
+ "2024-12-30 21:25:05,259|INFO|(48/98) running for municipality Københavns Kommune\n",
+ "2024-12-30 21:25:05,273|INFO|Verifying query\n",
+ "2024-12-30 21:25:05,273|INFO|Verifying query\n",
+ "2024-12-30 21:25:05,344|INFO|Starting transaction\n",
+ "2024-12-30 21:25:05,344|INFO|Starting transaction\n",
+ "2024-12-30 21:25:05,360|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:25:05,360|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:25:05,395|INFO|Setting schema to \"KY_0101\"\n",
+ "2024-12-30 21:25:05,395|INFO|Setting schema to \"KY_0101\"\n",
+ "2024-12-30 21:25:05,518|INFO|Query took 0.0897 seconds\n",
+ "2024-12-30 21:25:05,518|INFO|Query took 0.0897 seconds\n",
+ "2024-12-30 21:25:05,565|INFO|Created file output/Københavns Kommune.xlsx\n",
+ "2024-12-30 21:25:05,565|INFO|Created file output/Københavns Kommune.xlsx\n",
+ "2024-12-30 21:25:05,582|INFO|(49/98) running for municipality Frederiksberg Kommune\n",
+ "2024-12-30 21:25:05,582|INFO|(49/98) running for municipality Frederiksberg Kommune\n",
+ "2024-12-30 21:25:05,600|INFO|Verifying query\n",
+ "2024-12-30 21:25:05,600|INFO|Verifying query\n",
+ "2024-12-30 21:25:05,687|INFO|Starting transaction\n",
+ "2024-12-30 21:25:05,687|INFO|Starting transaction\n",
+ "2024-12-30 21:25:05,701|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:25:05,701|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:25:05,733|INFO|Setting schema to \"KY_0147\"\n",
+ "2024-12-30 21:25:05,733|INFO|Setting schema to \"KY_0147\"\n",
+ "2024-12-30 21:25:05,861|INFO|Query took 0.0981 seconds\n",
+ "2024-12-30 21:25:05,861|INFO|Query took 0.0981 seconds\n",
+ "2024-12-30 21:25:05,918|INFO|Created file output/Frederiksberg Kommune.xlsx\n",
+ "2024-12-30 21:25:05,918|INFO|Created file output/Frederiksberg Kommune.xlsx\n",
+ "2024-12-30 21:25:05,933|INFO|(50/98) running for municipality Ballerup Kommune\n",
+ "2024-12-30 21:25:05,933|INFO|(50/98) running for municipality Ballerup Kommune\n",
+ "2024-12-30 21:25:05,948|INFO|Verifying query\n",
+ "2024-12-30 21:25:05,948|INFO|Verifying query\n",
+ "2024-12-30 21:25:06,024|INFO|Starting transaction\n",
+ "2024-12-30 21:25:06,024|INFO|Starting transaction\n",
+ "2024-12-30 21:25:06,040|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:25:06,040|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:25:06,076|INFO|Setting schema to \"KY_0151\"\n",
+ "2024-12-30 21:25:06,076|INFO|Setting schema to \"KY_0151\"\n",
+ "2024-12-30 21:25:06,213|INFO|Query took 0.0969 seconds\n",
+ "2024-12-30 21:25:06,213|INFO|Query took 0.0969 seconds\n",
+ "2024-12-30 21:25:06,267|INFO|Created file output/Ballerup Kommune.xlsx\n",
+ "2024-12-30 21:25:06,267|INFO|Created file output/Ballerup Kommune.xlsx\n",
+ "2024-12-30 21:25:06,281|INFO|(51/98) running for municipality Brøndby Kommune\n",
+ "2024-12-30 21:25:06,281|INFO|(51/98) running for municipality Brøndby Kommune\n",
+ "2024-12-30 21:25:06,294|INFO|Verifying query\n",
+ "2024-12-30 21:25:06,294|INFO|Verifying query\n",
+ "2024-12-30 21:25:06,373|INFO|Starting transaction\n",
+ "2024-12-30 21:25:06,373|INFO|Starting transaction\n",
+ "2024-12-30 21:25:06,388|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:25:06,388|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:25:06,422|INFO|Setting schema to \"KY_0153\"\n",
+ "2024-12-30 21:25:06,422|INFO|Setting schema to \"KY_0153\"\n",
+ "2024-12-30 21:25:06,545|INFO|Query took 0.0873 seconds\n",
+ "2024-12-30 21:25:06,545|INFO|Query took 0.0873 seconds\n",
+ "2024-12-30 21:25:06,603|INFO|Created file output/Brøndby Kommune.xlsx\n",
+ "2024-12-30 21:25:06,603|INFO|Created file output/Brøndby Kommune.xlsx\n",
+ "2024-12-30 21:25:06,622|INFO|(52/98) running for municipality Dragør Kommune\n",
+ "2024-12-30 21:25:06,622|INFO|(52/98) running for municipality Dragør Kommune\n",
+ "2024-12-30 21:25:06,641|INFO|Verifying query\n",
+ "2024-12-30 21:25:06,641|INFO|Verifying query\n",
+ "2024-12-30 21:25:06,754|INFO|Starting transaction\n",
+ "2024-12-30 21:25:06,754|INFO|Starting transaction\n",
+ "2024-12-30 21:25:06,768|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:25:06,768|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:25:06,802|INFO|Setting schema to \"KY_0155\"\n",
+ "2024-12-30 21:25:06,802|INFO|Setting schema to \"KY_0155\"\n",
+ "2024-12-30 21:25:06,928|INFO|Query took 0.0901 seconds\n",
+ "2024-12-30 21:25:06,928|INFO|Query took 0.0901 seconds\n",
+ "2024-12-30 21:25:06,985|INFO|Created file output/Dragør Kommune.xlsx\n",
+ "2024-12-30 21:25:06,985|INFO|Created file output/Dragør Kommune.xlsx\n",
+ "2024-12-30 21:25:07,003|INFO|(53/98) running for municipality Gentofte Kommune\n",
+ "2024-12-30 21:25:07,003|INFO|(53/98) running for municipality Gentofte Kommune\n",
+ "2024-12-30 21:25:07,019|INFO|Verifying query\n",
+ "2024-12-30 21:25:07,019|INFO|Verifying query\n",
+ "2024-12-30 21:25:07,108|INFO|Starting transaction\n",
+ "2024-12-30 21:25:07,108|INFO|Starting transaction\n",
+ "2024-12-30 21:25:07,126|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:25:07,126|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:25:07,165|INFO|Setting schema to \"KY_0157\"\n",
+ "2024-12-30 21:25:07,165|INFO|Setting schema to \"KY_0157\"\n",
+ "2024-12-30 21:25:07,289|INFO|Query took 0.0900 seconds\n",
+ "2024-12-30 21:25:07,289|INFO|Query took 0.0900 seconds\n",
+ "2024-12-30 21:25:07,455|INFO|Created file output/Gentofte Kommune.xlsx\n",
+ "2024-12-30 21:25:07,455|INFO|Created file output/Gentofte Kommune.xlsx\n",
+ "2024-12-30 21:25:07,474|INFO|(54/98) running for municipality Gladsaxe Kommune\n",
+ "2024-12-30 21:25:07,474|INFO|(54/98) running for municipality Gladsaxe Kommune\n",
+ "2024-12-30 21:25:07,492|INFO|Verifying query\n",
+ "2024-12-30 21:25:07,492|INFO|Verifying query\n",
+ "2024-12-30 21:25:07,583|INFO|Starting transaction\n",
+ "2024-12-30 21:25:07,583|INFO|Starting transaction\n",
+ "2024-12-30 21:25:07,605|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:25:07,605|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:25:07,642|INFO|Setting schema to \"KY_0159\"\n",
+ "2024-12-30 21:25:07,642|INFO|Setting schema to \"KY_0159\"\n",
+ "2024-12-30 21:25:07,767|INFO|Query took 0.0944 seconds\n",
+ "2024-12-30 21:25:07,767|INFO|Query took 0.0944 seconds\n",
+ "2024-12-30 21:25:07,810|INFO|Created file output/Gladsaxe Kommune.xlsx\n",
+ "2024-12-30 21:25:07,810|INFO|Created file output/Gladsaxe Kommune.xlsx\n",
+ "2024-12-30 21:25:07,822|INFO|(55/98) running for municipality Glostrup Kommune\n",
+ "2024-12-30 21:25:07,822|INFO|(55/98) running for municipality Glostrup Kommune\n",
+ "2024-12-30 21:25:07,834|INFO|Verifying query\n",
+ "2024-12-30 21:25:07,834|INFO|Verifying query\n",
+ "2024-12-30 21:25:07,914|INFO|Starting transaction\n",
+ "2024-12-30 21:25:07,914|INFO|Starting transaction\n",
+ "2024-12-30 21:25:07,929|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:25:07,929|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:25:07,965|INFO|Setting schema to \"KY_0161\"\n",
+ "2024-12-30 21:25:07,965|INFO|Setting schema to \"KY_0161\"\n",
+ "2024-12-30 21:25:08,090|INFO|Query took 0.0925 seconds\n",
+ "2024-12-30 21:25:08,090|INFO|Query took 0.0925 seconds\n",
+ "2024-12-30 21:25:08,132|INFO|Created file output/Glostrup Kommune.xlsx\n",
+ "2024-12-30 21:25:08,132|INFO|Created file output/Glostrup Kommune.xlsx\n",
+ "2024-12-30 21:25:08,146|INFO|(56/98) running for municipality Herlev Kommune\n",
+ "2024-12-30 21:25:08,146|INFO|(56/98) running for municipality Herlev Kommune\n",
+ "2024-12-30 21:25:08,160|INFO|Verifying query\n",
+ "2024-12-30 21:25:08,160|INFO|Verifying query\n",
+ "2024-12-30 21:25:08,225|INFO|Starting transaction\n",
+ "2024-12-30 21:25:08,225|INFO|Starting transaction\n",
+ "2024-12-30 21:25:08,239|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:25:08,239|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:25:08,272|INFO|Setting schema to \"KY_0163\"\n",
+ "2024-12-30 21:25:08,272|INFO|Setting schema to \"KY_0163\"\n",
+ "2024-12-30 21:25:08,397|INFO|Query took 0.0937 seconds\n",
+ "2024-12-30 21:25:08,397|INFO|Query took 0.0937 seconds\n",
+ "2024-12-30 21:25:08,479|INFO|Created file output/Herlev Kommune.xlsx\n",
+ "2024-12-30 21:25:08,479|INFO|Created file output/Herlev Kommune.xlsx\n",
+ "2024-12-30 21:25:08,492|INFO|(57/98) running for municipality Albertslund Kommune\n",
+ "2024-12-30 21:25:08,492|INFO|(57/98) running for municipality Albertslund Kommune\n",
+ "2024-12-30 21:25:08,504|INFO|Verifying query\n",
+ "2024-12-30 21:25:08,504|INFO|Verifying query\n",
+ "2024-12-30 21:25:08,560|INFO|Starting transaction\n",
+ "2024-12-30 21:25:08,560|INFO|Starting transaction\n",
+ "2024-12-30 21:25:08,575|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:25:08,575|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:25:08,613|INFO|Setting schema to \"KY_0165\"\n",
+ "2024-12-30 21:25:08,613|INFO|Setting schema to \"KY_0165\"\n",
+ "2024-12-30 21:25:08,743|INFO|Query took 0.0957 seconds\n",
+ "2024-12-30 21:25:08,743|INFO|Query took 0.0957 seconds\n",
+ "2024-12-30 21:25:08,788|INFO|Created file output/Albertslund Kommune.xlsx\n",
+ "2024-12-30 21:25:08,788|INFO|Created file output/Albertslund Kommune.xlsx\n",
+ "2024-12-30 21:25:08,804|INFO|(58/98) running for municipality Hvidovre Kommune\n",
+ "2024-12-30 21:25:08,804|INFO|(58/98) running for municipality Hvidovre Kommune\n",
+ "2024-12-30 21:25:08,819|INFO|Verifying query\n",
+ "2024-12-30 21:25:08,819|INFO|Verifying query\n",
+ "2024-12-30 21:25:08,907|INFO|Starting transaction\n",
+ "2024-12-30 21:25:08,907|INFO|Starting transaction\n",
+ "2024-12-30 21:25:08,922|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:25:08,922|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:25:08,958|INFO|Setting schema to \"KY_0167\"\n",
+ "2024-12-30 21:25:08,958|INFO|Setting schema to \"KY_0167\"\n",
+ "2024-12-30 21:25:09,075|INFO|Query took 0.0853 seconds\n",
+ "2024-12-30 21:25:09,075|INFO|Query took 0.0853 seconds\n",
+ "2024-12-30 21:25:09,120|INFO|Created file output/Hvidovre Kommune.xlsx\n",
+ "2024-12-30 21:25:09,120|INFO|Created file output/Hvidovre Kommune.xlsx\n",
+ "2024-12-30 21:25:09,132|INFO|(59/98) running for municipality Høje Taastrup Kommune\n",
+ "2024-12-30 21:25:09,132|INFO|(59/98) running for municipality Høje Taastrup Kommune\n",
+ "2024-12-30 21:25:09,146|INFO|Verifying query\n",
+ "2024-12-30 21:25:09,146|INFO|Verifying query\n",
+ "2024-12-30 21:25:09,215|INFO|Starting transaction\n",
+ "2024-12-30 21:25:09,215|INFO|Starting transaction\n",
+ "2024-12-30 21:25:09,232|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:25:09,232|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:25:09,273|INFO|Setting schema to \"KY_0169\"\n",
+ "2024-12-30 21:25:09,273|INFO|Setting schema to \"KY_0169\"\n",
+ "2024-12-30 21:25:09,396|INFO|Query took 0.0860 seconds\n",
+ "2024-12-30 21:25:09,396|INFO|Query took 0.0860 seconds\n",
+ "2024-12-30 21:25:09,450|INFO|Created file output/Høje Taastrup Kommune.xlsx\n",
+ "2024-12-30 21:25:09,450|INFO|Created file output/Høje Taastrup Kommune.xlsx\n",
+ "2024-12-30 21:25:09,475|INFO|(60/98) running for municipality Lyngby-Taarbæk Kommune\n",
+ "2024-12-30 21:25:09,475|INFO|(60/98) running for municipality Lyngby-Taarbæk Kommune\n",
+ "2024-12-30 21:25:09,492|INFO|Verifying query\n",
+ "2024-12-30 21:25:09,492|INFO|Verifying query\n",
+ "2024-12-30 21:25:09,570|INFO|Starting transaction\n",
+ "2024-12-30 21:25:09,570|INFO|Starting transaction\n",
+ "2024-12-30 21:25:09,585|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:25:09,585|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:25:09,618|INFO|Setting schema to \"KY_0173\"\n",
+ "2024-12-30 21:25:09,618|INFO|Setting schema to \"KY_0173\"\n",
+ "2024-12-30 21:25:10,949|INFO|Query took 1.2976 seconds\n",
+ "2024-12-30 21:25:10,949|INFO|Query took 1.2976 seconds\n",
+ "2024-12-30 21:25:11,072|INFO|Created file output/Lyngby-Taarbæk Kommune.xlsx\n",
+ "2024-12-30 21:25:11,072|INFO|Created file output/Lyngby-Taarbæk Kommune.xlsx\n",
+ "2024-12-30 21:25:11,087|INFO|(61/98) running for municipality Rødovre Kommune\n",
+ "2024-12-30 21:25:11,087|INFO|(61/98) running for municipality Rødovre Kommune\n",
+ "2024-12-30 21:25:11,103|INFO|Verifying query\n",
+ "2024-12-30 21:25:11,103|INFO|Verifying query\n",
+ "2024-12-30 21:25:11,205|INFO|Starting transaction\n",
+ "2024-12-30 21:25:11,205|INFO|Starting transaction\n",
+ "2024-12-30 21:25:11,221|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:25:11,221|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:25:11,258|INFO|Setting schema to \"KY_0175\"\n",
+ "2024-12-30 21:25:11,258|INFO|Setting schema to \"KY_0175\"\n",
+ "2024-12-30 21:25:11,374|INFO|Query took 0.0860 seconds\n",
+ "2024-12-30 21:25:11,374|INFO|Query took 0.0860 seconds\n",
+ "2024-12-30 21:25:11,418|INFO|Created file output/Rødovre Kommune.xlsx\n",
+ "2024-12-30 21:25:11,418|INFO|Created file output/Rødovre Kommune.xlsx\n",
+ "2024-12-30 21:25:11,430|INFO|(62/98) running for municipality Ishøj Kommune\n",
+ "2024-12-30 21:25:11,430|INFO|(62/98) running for municipality Ishøj Kommune\n",
+ "2024-12-30 21:25:11,445|INFO|Verifying query\n",
+ "2024-12-30 21:25:11,445|INFO|Verifying query\n",
+ "2024-12-30 21:25:11,508|INFO|Starting transaction\n",
+ "2024-12-30 21:25:11,508|INFO|Starting transaction\n",
+ "2024-12-30 21:25:11,522|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:25:11,522|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:25:11,568|INFO|Setting schema to \"KY_0183\"\n",
+ "2024-12-30 21:25:11,568|INFO|Setting schema to \"KY_0183\"\n",
+ "2024-12-30 21:25:11,691|INFO|Query took 0.0923 seconds\n",
+ "2024-12-30 21:25:11,691|INFO|Query took 0.0923 seconds\n",
+ "2024-12-30 21:25:11,742|INFO|Created file output/Ishøj Kommune.xlsx\n",
+ "2024-12-30 21:25:11,742|INFO|Created file output/Ishøj Kommune.xlsx\n",
+ "2024-12-30 21:25:11,754|INFO|(63/98) running for municipality Tårnby Kommune\n",
+ "2024-12-30 21:25:11,754|INFO|(63/98) running for municipality Tårnby Kommune\n",
+ "2024-12-30 21:25:11,767|INFO|Verifying query\n",
+ "2024-12-30 21:25:11,767|INFO|Verifying query\n",
+ "2024-12-30 21:25:11,823|INFO|Starting transaction\n",
+ "2024-12-30 21:25:11,823|INFO|Starting transaction\n",
+ "2024-12-30 21:25:11,842|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:25:11,842|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:25:11,878|INFO|Setting schema to \"KY_0185\"\n",
+ "2024-12-30 21:25:11,878|INFO|Setting schema to \"KY_0185\"\n",
+ "2024-12-30 21:25:12,007|INFO|Query took 0.0966 seconds\n",
+ "2024-12-30 21:25:12,007|INFO|Query took 0.0966 seconds\n",
+ "2024-12-30 21:25:12,098|INFO|Created file output/Tårnby Kommune.xlsx\n",
+ "2024-12-30 21:25:12,098|INFO|Created file output/Tårnby Kommune.xlsx\n",
+ "2024-12-30 21:25:12,112|INFO|(64/98) running for municipality Vallensbæk Kommune\n",
+ "2024-12-30 21:25:12,112|INFO|(64/98) running for municipality Vallensbæk Kommune\n",
+ "2024-12-30 21:25:12,128|INFO|Verifying query\n",
+ "2024-12-30 21:25:12,128|INFO|Verifying query\n",
+ "2024-12-30 21:25:12,216|INFO|Starting transaction\n",
+ "2024-12-30 21:25:12,216|INFO|Starting transaction\n",
+ "2024-12-30 21:25:12,228|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:25:12,228|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:25:12,259|INFO|Setting schema to \"KY_0187\"\n",
+ "2024-12-30 21:25:12,259|INFO|Setting schema to \"KY_0187\"\n",
+ "2024-12-30 21:25:12,375|INFO|Query took 0.0858 seconds\n",
+ "2024-12-30 21:25:12,375|INFO|Query took 0.0858 seconds\n",
+ "2024-12-30 21:25:12,413|INFO|Created file output/Vallensbæk Kommune.xlsx\n",
+ "2024-12-30 21:25:12,413|INFO|Created file output/Vallensbæk Kommune.xlsx\n",
+ "2024-12-30 21:25:12,424|INFO|(65/98) running for municipality Furesø Kommune\n",
+ "2024-12-30 21:25:12,424|INFO|(65/98) running for municipality Furesø Kommune\n",
+ "2024-12-30 21:25:12,436|INFO|Verifying query\n",
+ "2024-12-30 21:25:12,436|INFO|Verifying query\n",
+ "2024-12-30 21:25:12,505|INFO|Starting transaction\n",
+ "2024-12-30 21:25:12,505|INFO|Starting transaction\n",
+ "2024-12-30 21:25:12,516|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:25:12,516|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:25:12,548|INFO|Setting schema to \"KY_0190\"\n",
+ "2024-12-30 21:25:12,548|INFO|Setting schema to \"KY_0190\"\n",
+ "2024-12-30 21:25:12,682|INFO|Query took 0.0945 seconds\n",
+ "2024-12-30 21:25:12,682|INFO|Query took 0.0945 seconds\n",
+ "2024-12-30 21:25:12,729|INFO|Created file output/Furesø Kommune.xlsx\n",
+ "2024-12-30 21:25:12,729|INFO|Created file output/Furesø Kommune.xlsx\n",
+ "2024-12-30 21:25:12,744|INFO|(66/98) running for municipality Allerød Kommune\n",
+ "2024-12-30 21:25:12,744|INFO|(66/98) running for municipality Allerød Kommune\n",
+ "2024-12-30 21:25:12,758|INFO|Verifying query\n",
+ "2024-12-30 21:25:12,758|INFO|Verifying query\n",
+ "2024-12-30 21:25:12,826|INFO|Starting transaction\n",
+ "2024-12-30 21:25:12,826|INFO|Starting transaction\n",
+ "2024-12-30 21:25:12,842|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:25:12,842|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:25:12,881|INFO|Setting schema to \"KY_0201\"\n",
+ "2024-12-30 21:25:12,881|INFO|Setting schema to \"KY_0201\"\n",
+ "2024-12-30 21:25:12,995|INFO|Query took 0.0855 seconds\n",
+ "2024-12-30 21:25:12,995|INFO|Query took 0.0855 seconds\n",
+ "2024-12-30 21:25:13,037|INFO|Created file output/Allerød Kommune.xlsx\n",
+ "2024-12-30 21:25:13,037|INFO|Created file output/Allerød Kommune.xlsx\n",
+ "2024-12-30 21:25:13,048|INFO|(67/98) running for municipality Fredensborg Kommune\n",
+ "2024-12-30 21:25:13,048|INFO|(67/98) running for municipality Fredensborg Kommune\n",
+ "2024-12-30 21:25:13,059|INFO|Verifying query\n",
+ "2024-12-30 21:25:13,059|INFO|Verifying query\n",
+ "2024-12-30 21:25:13,120|INFO|Starting transaction\n",
+ "2024-12-30 21:25:13,120|INFO|Starting transaction\n",
+ "2024-12-30 21:25:13,133|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:25:13,133|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:25:13,164|INFO|Setting schema to \"KY_0210\"\n",
+ "2024-12-30 21:25:13,164|INFO|Setting schema to \"KY_0210\"\n",
+ "2024-12-30 21:25:13,282|INFO|Query took 0.0868 seconds\n",
+ "2024-12-30 21:25:13,282|INFO|Query took 0.0868 seconds\n",
+ "2024-12-30 21:25:13,367|INFO|Created file output/Fredensborg Kommune.xlsx\n",
+ "2024-12-30 21:25:13,367|INFO|Created file output/Fredensborg Kommune.xlsx\n",
+ "2024-12-30 21:25:13,382|INFO|(68/98) running for municipality Helsingør Kommune\n",
+ "2024-12-30 21:25:13,382|INFO|(68/98) running for municipality Helsingør Kommune\n",
+ "2024-12-30 21:25:13,394|INFO|Verifying query\n",
+ "2024-12-30 21:25:13,394|INFO|Verifying query\n",
+ "2024-12-30 21:25:13,467|INFO|Starting transaction\n",
+ "2024-12-30 21:25:13,467|INFO|Starting transaction\n",
+ "2024-12-30 21:25:13,479|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:25:13,479|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:25:13,517|INFO|Setting schema to \"KY_0217\"\n",
+ "2024-12-30 21:25:13,517|INFO|Setting schema to \"KY_0217\"\n",
+ "2024-12-30 21:25:13,636|INFO|Query took 0.0873 seconds\n",
+ "2024-12-30 21:25:13,636|INFO|Query took 0.0873 seconds\n",
+ "2024-12-30 21:25:13,682|INFO|Created file output/Helsingør Kommune.xlsx\n",
+ "2024-12-30 21:25:13,682|INFO|Created file output/Helsingør Kommune.xlsx\n",
+ "2024-12-30 21:25:13,694|INFO|(69/98) running for municipality Hillerød Kommune\n",
+ "2024-12-30 21:25:13,694|INFO|(69/98) running for municipality Hillerød Kommune\n",
+ "2024-12-30 21:25:13,710|INFO|Verifying query\n",
+ "2024-12-30 21:25:13,710|INFO|Verifying query\n",
+ "2024-12-30 21:25:13,794|INFO|Starting transaction\n",
+ "2024-12-30 21:25:13,794|INFO|Starting transaction\n",
+ "2024-12-30 21:25:13,809|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:25:13,809|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:25:13,847|INFO|Setting schema to \"KY_0219\"\n",
+ "2024-12-30 21:25:13,847|INFO|Setting schema to \"KY_0219\"\n",
+ "2024-12-30 21:25:13,971|INFO|Query took 0.0875 seconds\n",
+ "2024-12-30 21:25:13,971|INFO|Query took 0.0875 seconds\n",
+ "2024-12-30 21:25:14,016|INFO|Created file output/Hillerød Kommune.xlsx\n",
+ "2024-12-30 21:25:14,016|INFO|Created file output/Hillerød Kommune.xlsx\n",
+ "2024-12-30 21:25:14,030|INFO|(70/98) running for municipality Hørsholm Kommune\n",
+ "2024-12-30 21:25:14,030|INFO|(70/98) running for municipality Hørsholm Kommune\n",
+ "2024-12-30 21:25:14,043|INFO|Verifying query\n",
+ "2024-12-30 21:25:14,043|INFO|Verifying query\n",
+ "2024-12-30 21:25:14,108|INFO|Starting transaction\n",
+ "2024-12-30 21:25:14,108|INFO|Starting transaction\n",
+ "2024-12-30 21:25:14,125|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:25:14,125|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:25:14,154|INFO|Setting schema to \"KY_0223\"\n",
+ "2024-12-30 21:25:14,154|INFO|Setting schema to \"KY_0223\"\n",
+ "2024-12-30 21:25:14,276|INFO|Query took 0.0843 seconds\n",
+ "2024-12-30 21:25:14,276|INFO|Query took 0.0843 seconds\n",
+ "2024-12-30 21:25:14,326|INFO|Created file output/Hørsholm Kommune.xlsx\n",
+ "2024-12-30 21:25:14,326|INFO|Created file output/Hørsholm Kommune.xlsx\n",
+ "2024-12-30 21:25:14,340|INFO|(71/98) running for municipality Rudersdal Kommune\n",
+ "2024-12-30 21:25:14,340|INFO|(71/98) running for municipality Rudersdal Kommune\n",
+ "2024-12-30 21:25:14,354|INFO|Verifying query\n",
+ "2024-12-30 21:25:14,354|INFO|Verifying query\n",
+ "2024-12-30 21:25:14,521|INFO|Starting transaction\n",
+ "2024-12-30 21:25:14,521|INFO|Starting transaction\n",
+ "2024-12-30 21:25:14,570|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:25:14,570|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:25:14,599|INFO|Setting schema to \"KY_0230\"\n",
+ "2024-12-30 21:25:14,599|INFO|Setting schema to \"KY_0230\"\n",
+ "2024-12-30 21:25:14,714|INFO|Query took 0.0861 seconds\n",
+ "2024-12-30 21:25:14,714|INFO|Query took 0.0861 seconds\n",
+ "2024-12-30 21:25:14,762|INFO|Created file output/Rudersdal Kommune.xlsx\n",
+ "2024-12-30 21:25:14,762|INFO|Created file output/Rudersdal Kommune.xlsx\n",
+ "2024-12-30 21:25:14,775|INFO|(72/98) running for municipality Egedal Kommune\n",
+ "2024-12-30 21:25:14,775|INFO|(72/98) running for municipality Egedal Kommune\n",
+ "2024-12-30 21:25:14,789|INFO|Verifying query\n",
+ "2024-12-30 21:25:14,789|INFO|Verifying query\n",
+ "2024-12-30 21:25:14,872|INFO|Starting transaction\n",
+ "2024-12-30 21:25:14,872|INFO|Starting transaction\n",
+ "2024-12-30 21:25:14,901|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:25:14,901|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:25:14,962|INFO|Setting schema to \"KY_0240\"\n",
+ "2024-12-30 21:25:14,962|INFO|Setting schema to \"KY_0240\"\n",
+ "2024-12-30 21:25:15,093|INFO|Query took 0.0882 seconds\n",
+ "2024-12-30 21:25:15,093|INFO|Query took 0.0882 seconds\n",
+ "2024-12-30 21:25:15,146|INFO|Created file output/Egedal Kommune.xlsx\n",
+ "2024-12-30 21:25:15,146|INFO|Created file output/Egedal Kommune.xlsx\n",
+ "2024-12-30 21:25:15,163|INFO|(73/98) running for municipality Frederikssund Kommune\n",
+ "2024-12-30 21:25:15,163|INFO|(73/98) running for municipality Frederikssund Kommune\n",
+ "2024-12-30 21:25:15,178|INFO|Verifying query\n",
+ "2024-12-30 21:25:15,178|INFO|Verifying query\n",
+ "2024-12-30 21:25:15,263|INFO|Starting transaction\n",
+ "2024-12-30 21:25:15,263|INFO|Starting transaction\n",
+ "2024-12-30 21:25:15,278|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:25:15,278|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:25:15,315|INFO|Setting schema to \"KY_0250\"\n",
+ "2024-12-30 21:25:15,315|INFO|Setting schema to \"KY_0250\"\n",
+ "2024-12-30 21:25:15,463|INFO|Query took 0.1129 seconds\n",
+ "2024-12-30 21:25:15,463|INFO|Query took 0.1129 seconds\n",
+ "2024-12-30 21:25:15,502|INFO|Created file output/Frederikssund Kommune.xlsx\n",
+ "2024-12-30 21:25:15,502|INFO|Created file output/Frederikssund Kommune.xlsx\n",
+ "2024-12-30 21:25:15,514|INFO|(74/98) running for municipality Greve Kommune\n",
+ "2024-12-30 21:25:15,514|INFO|(74/98) running for municipality Greve Kommune\n",
+ "2024-12-30 21:25:15,529|INFO|Verifying query\n",
+ "2024-12-30 21:25:15,529|INFO|Verifying query\n",
+ "2024-12-30 21:25:15,601|INFO|Starting transaction\n",
+ "2024-12-30 21:25:15,601|INFO|Starting transaction\n",
+ "2024-12-30 21:25:15,615|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:25:15,615|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:25:15,646|INFO|Setting schema to \"KY_0253\"\n",
+ "2024-12-30 21:25:15,646|INFO|Setting schema to \"KY_0253\"\n",
+ "2024-12-30 21:25:15,764|INFO|Query took 0.0870 seconds\n",
+ "2024-12-30 21:25:15,764|INFO|Query took 0.0870 seconds\n",
+ "2024-12-30 21:25:15,811|INFO|Created file output/Greve Kommune.xlsx\n",
+ "2024-12-30 21:25:15,811|INFO|Created file output/Greve Kommune.xlsx\n",
+ "2024-12-30 21:25:15,827|INFO|(75/98) running for municipality Køge Kommune\n",
+ "2024-12-30 21:25:15,827|INFO|(75/98) running for municipality Køge Kommune\n",
+ "2024-12-30 21:25:15,845|INFO|Verifying query\n",
+ "2024-12-30 21:25:15,845|INFO|Verifying query\n",
+ "2024-12-30 21:25:15,936|INFO|Starting transaction\n",
+ "2024-12-30 21:25:15,936|INFO|Starting transaction\n",
+ "2024-12-30 21:25:15,951|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:25:15,951|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:25:15,986|INFO|Setting schema to \"KY_0259\"\n",
+ "2024-12-30 21:25:15,986|INFO|Setting schema to \"KY_0259\"\n",
+ "2024-12-30 21:25:16,110|INFO|Query took 0.0919 seconds\n",
+ "2024-12-30 21:25:16,110|INFO|Query took 0.0919 seconds\n",
+ "2024-12-30 21:25:16,164|INFO|Created file output/Køge Kommune.xlsx\n",
+ "2024-12-30 21:25:16,164|INFO|Created file output/Køge Kommune.xlsx\n",
+ "2024-12-30 21:25:16,178|INFO|(76/98) running for municipality Halsnæs Kommune\n",
+ "2024-12-30 21:25:16,178|INFO|(76/98) running for municipality Halsnæs Kommune\n",
+ "2024-12-30 21:25:16,193|INFO|Verifying query\n",
+ "2024-12-30 21:25:16,193|INFO|Verifying query\n",
+ "2024-12-30 21:25:16,265|INFO|Starting transaction\n",
+ "2024-12-30 21:25:16,265|INFO|Starting transaction\n",
+ "2024-12-30 21:25:16,278|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:25:16,278|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:25:16,309|INFO|Setting schema to \"KY_0260\"\n",
+ "2024-12-30 21:25:16,309|INFO|Setting schema to \"KY_0260\"\n",
+ "2024-12-30 21:25:16,428|INFO|Query took 0.0891 seconds\n",
+ "2024-12-30 21:25:16,428|INFO|Query took 0.0891 seconds\n",
+ "2024-12-30 21:25:16,473|INFO|Created file output/Halsnæs Kommune.xlsx\n",
+ "2024-12-30 21:25:16,473|INFO|Created file output/Halsnæs Kommune.xlsx\n",
+ "2024-12-30 21:25:16,485|INFO|(77/98) running for municipality Roskilde Kommune\n",
+ "2024-12-30 21:25:16,485|INFO|(77/98) running for municipality Roskilde Kommune\n",
+ "2024-12-30 21:25:16,499|INFO|Verifying query\n",
+ "2024-12-30 21:25:16,499|INFO|Verifying query\n",
+ "2024-12-30 21:25:16,569|INFO|Starting transaction\n",
+ "2024-12-30 21:25:16,569|INFO|Starting transaction\n",
+ "2024-12-30 21:25:16,582|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:25:16,582|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:25:16,617|INFO|Setting schema to \"KY_0265\"\n",
+ "2024-12-30 21:25:16,617|INFO|Setting schema to \"KY_0265\"\n",
+ "2024-12-30 21:25:16,741|INFO|Query took 0.0852 seconds\n",
+ "2024-12-30 21:25:16,741|INFO|Query took 0.0852 seconds\n",
+ "2024-12-30 21:25:16,824|INFO|Created file output/Roskilde Kommune.xlsx\n",
+ "2024-12-30 21:25:16,824|INFO|Created file output/Roskilde Kommune.xlsx\n",
+ "2024-12-30 21:25:16,840|INFO|(78/98) running for municipality Solrød Kommune\n",
+ "2024-12-30 21:25:16,840|INFO|(78/98) running for municipality Solrød Kommune\n",
+ "2024-12-30 21:25:16,859|INFO|Verifying query\n",
+ "2024-12-30 21:25:16,859|INFO|Verifying query\n",
+ "2024-12-30 21:25:16,960|INFO|Starting transaction\n",
+ "2024-12-30 21:25:16,960|INFO|Starting transaction\n",
+ "2024-12-30 21:25:16,978|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:25:16,978|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:25:17,016|INFO|Setting schema to \"KY_0269\"\n",
+ "2024-12-30 21:25:17,016|INFO|Setting schema to \"KY_0269\"\n",
+ "2024-12-30 21:25:17,146|INFO|Query took 0.0938 seconds\n",
+ "2024-12-30 21:25:17,146|INFO|Query took 0.0938 seconds\n",
+ "2024-12-30 21:25:17,206|INFO|Created file output/Solrød Kommune.xlsx\n",
+ "2024-12-30 21:25:17,206|INFO|Created file output/Solrød Kommune.xlsx\n",
+ "2024-12-30 21:25:17,221|INFO|(79/98) running for municipality Gribskov Kommune\n",
+ "2024-12-30 21:25:17,221|INFO|(79/98) running for municipality Gribskov Kommune\n",
+ "2024-12-30 21:25:17,235|INFO|Verifying query\n",
+ "2024-12-30 21:25:17,235|INFO|Verifying query\n",
+ "2024-12-30 21:25:17,323|INFO|Starting transaction\n",
+ "2024-12-30 21:25:17,323|INFO|Starting transaction\n",
+ "2024-12-30 21:25:17,340|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:25:17,340|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:25:17,378|INFO|Setting schema to \"KY_0270\"\n",
+ "2024-12-30 21:25:17,378|INFO|Setting schema to \"KY_0270\"\n",
+ "2024-12-30 21:25:17,500|INFO|Query took 0.0856 seconds\n",
+ "2024-12-30 21:25:17,500|INFO|Query took 0.0856 seconds\n",
+ "2024-12-30 21:25:17,554|INFO|Created file output/Gribskov Kommune.xlsx\n",
+ "2024-12-30 21:25:17,554|INFO|Created file output/Gribskov Kommune.xlsx\n",
+ "2024-12-30 21:25:17,569|INFO|(80/98) running for municipality Odsherred Kommune\n",
+ "2024-12-30 21:25:17,569|INFO|(80/98) running for municipality Odsherred Kommune\n",
+ "2024-12-30 21:25:17,587|INFO|Verifying query\n",
+ "2024-12-30 21:25:17,587|INFO|Verifying query\n",
+ "2024-12-30 21:25:17,670|INFO|Starting transaction\n",
+ "2024-12-30 21:25:17,670|INFO|Starting transaction\n",
+ "2024-12-30 21:25:17,687|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:25:17,687|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:25:17,724|INFO|Setting schema to \"KY_0306\"\n",
+ "2024-12-30 21:25:17,724|INFO|Setting schema to \"KY_0306\"\n",
+ "2024-12-30 21:25:17,851|INFO|Query took 0.0962 seconds\n",
+ "2024-12-30 21:25:17,851|INFO|Query took 0.0962 seconds\n",
+ "2024-12-30 21:25:17,901|INFO|Created file output/Odsherred Kommune.xlsx\n",
+ "2024-12-30 21:25:17,901|INFO|Created file output/Odsherred Kommune.xlsx\n",
+ "2024-12-30 21:25:17,913|INFO|(81/98) running for municipality Holbæk Kommune\n",
+ "2024-12-30 21:25:17,913|INFO|(81/98) running for municipality Holbæk Kommune\n",
+ "2024-12-30 21:25:17,927|INFO|Verifying query\n",
+ "2024-12-30 21:25:17,927|INFO|Verifying query\n",
+ "2024-12-30 21:25:17,994|INFO|Starting transaction\n",
+ "2024-12-30 21:25:17,994|INFO|Starting transaction\n",
+ "2024-12-30 21:25:18,008|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:25:18,008|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:25:18,038|INFO|Setting schema to \"KY_0316\"\n",
+ "2024-12-30 21:25:18,038|INFO|Setting schema to \"KY_0316\"\n",
+ "2024-12-30 21:25:18,155|INFO|Query took 0.0881 seconds\n",
+ "2024-12-30 21:25:18,155|INFO|Query took 0.0881 seconds\n",
+ "2024-12-30 21:25:18,209|INFO|Created file output/Holbæk Kommune.xlsx\n",
+ "2024-12-30 21:25:18,209|INFO|Created file output/Holbæk Kommune.xlsx\n",
+ "2024-12-30 21:25:18,225|INFO|(82/98) running for municipality Faxe Kommune\n",
+ "2024-12-30 21:25:18,225|INFO|(82/98) running for municipality Faxe Kommune\n",
+ "2024-12-30 21:25:18,240|INFO|Verifying query\n",
+ "2024-12-30 21:25:18,240|INFO|Verifying query\n",
+ "2024-12-30 21:25:18,303|INFO|Starting transaction\n",
+ "2024-12-30 21:25:18,303|INFO|Starting transaction\n",
+ "2024-12-30 21:25:18,314|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:25:18,314|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:25:18,342|INFO|Setting schema to \"KY_0320\"\n",
+ "2024-12-30 21:25:18,342|INFO|Setting schema to \"KY_0320\"\n",
+ "2024-12-30 21:25:18,457|INFO|Query took 0.0870 seconds\n",
+ "2024-12-30 21:25:18,457|INFO|Query took 0.0870 seconds\n",
+ "2024-12-30 21:25:18,498|INFO|Created file output/Faxe Kommune.xlsx\n",
+ "2024-12-30 21:25:18,498|INFO|Created file output/Faxe Kommune.xlsx\n",
+ "2024-12-30 21:25:18,509|INFO|(83/98) running for municipality Kalundborg Kommune\n",
+ "2024-12-30 21:25:18,509|INFO|(83/98) running for municipality Kalundborg Kommune\n",
+ "2024-12-30 21:25:18,522|INFO|Verifying query\n",
+ "2024-12-30 21:25:18,522|INFO|Verifying query\n",
+ "2024-12-30 21:25:18,580|INFO|Starting transaction\n",
+ "2024-12-30 21:25:18,580|INFO|Starting transaction\n",
+ "2024-12-30 21:25:18,592|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:25:18,592|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:25:18,624|INFO|Setting schema to \"KY_0326\"\n",
+ "2024-12-30 21:25:18,624|INFO|Setting schema to \"KY_0326\"\n",
+ "2024-12-30 21:25:18,751|INFO|Query took 0.0944 seconds\n",
+ "2024-12-30 21:25:18,751|INFO|Query took 0.0944 seconds\n",
+ "2024-12-30 21:25:18,796|INFO|Created file output/Kalundborg Kommune.xlsx\n",
+ "2024-12-30 21:25:18,796|INFO|Created file output/Kalundborg Kommune.xlsx\n",
+ "2024-12-30 21:25:18,808|INFO|(84/98) running for municipality Ringsted Kommune\n",
+ "2024-12-30 21:25:18,808|INFO|(84/98) running for municipality Ringsted Kommune\n",
+ "2024-12-30 21:25:18,823|INFO|Verifying query\n",
+ "2024-12-30 21:25:18,823|INFO|Verifying query\n",
+ "2024-12-30 21:25:18,908|INFO|Starting transaction\n",
+ "2024-12-30 21:25:18,908|INFO|Starting transaction\n",
+ "2024-12-30 21:25:18,920|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:25:18,920|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:25:18,953|INFO|Setting schema to \"KY_0329\"\n",
+ "2024-12-30 21:25:18,953|INFO|Setting schema to \"KY_0329\"\n",
+ "2024-12-30 21:25:19,082|INFO|Query took 0.0936 seconds\n",
+ "2024-12-30 21:25:19,082|INFO|Query took 0.0936 seconds\n",
+ "2024-12-30 21:25:19,171|INFO|Created file output/Ringsted Kommune.xlsx\n",
+ "2024-12-30 21:25:19,171|INFO|Created file output/Ringsted Kommune.xlsx\n",
+ "2024-12-30 21:25:19,193|INFO|(85/98) running for municipality Slagelse Kommune\n",
+ "2024-12-30 21:25:19,193|INFO|(85/98) running for municipality Slagelse Kommune\n",
+ "2024-12-30 21:25:19,217|INFO|Verifying query\n",
+ "2024-12-30 21:25:19,217|INFO|Verifying query\n",
+ "2024-12-30 21:25:19,307|INFO|Starting transaction\n",
+ "2024-12-30 21:25:19,307|INFO|Starting transaction\n",
+ "2024-12-30 21:25:19,321|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:25:19,321|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:25:19,354|INFO|Setting schema to \"KY_0330\"\n",
+ "2024-12-30 21:25:19,354|INFO|Setting schema to \"KY_0330\"\n",
+ "2024-12-30 21:25:19,471|INFO|Query took 0.0895 seconds\n",
+ "2024-12-30 21:25:19,471|INFO|Query took 0.0895 seconds\n",
+ "2024-12-30 21:25:19,517|INFO|Created file output/Slagelse Kommune.xlsx\n",
+ "2024-12-30 21:25:19,517|INFO|Created file output/Slagelse Kommune.xlsx\n",
+ "2024-12-30 21:25:19,535|INFO|(86/98) running for municipality Stevns Kommune\n",
+ "2024-12-30 21:25:19,535|INFO|(86/98) running for municipality Stevns Kommune\n",
+ "2024-12-30 21:25:19,553|INFO|Verifying query\n",
+ "2024-12-30 21:25:19,553|INFO|Verifying query\n",
+ "2024-12-30 21:25:19,651|INFO|Starting transaction\n",
+ "2024-12-30 21:25:19,651|INFO|Starting transaction\n",
+ "2024-12-30 21:25:19,669|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:25:19,669|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:25:19,709|INFO|Setting schema to \"KY_0336\"\n",
+ "2024-12-30 21:25:19,709|INFO|Setting schema to \"KY_0336\"\n",
+ "2024-12-30 21:25:19,833|INFO|Query took 0.0889 seconds\n",
+ "2024-12-30 21:25:19,833|INFO|Query took 0.0889 seconds\n",
+ "2024-12-30 21:25:19,882|INFO|Created file output/Stevns Kommune.xlsx\n",
+ "2024-12-30 21:25:19,882|INFO|Created file output/Stevns Kommune.xlsx\n",
+ "2024-12-30 21:25:19,896|INFO|(87/98) running for municipality Sorø Kommune\n",
+ "2024-12-30 21:25:19,896|INFO|(87/98) running for municipality Sorø Kommune\n",
+ "2024-12-30 21:25:19,911|INFO|Verifying query\n",
+ "2024-12-30 21:25:19,911|INFO|Verifying query\n",
+ "2024-12-30 21:25:19,986|INFO|Starting transaction\n",
+ "2024-12-30 21:25:19,986|INFO|Starting transaction\n",
+ "2024-12-30 21:25:19,997|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:25:19,997|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:25:20,028|INFO|Setting schema to \"KY_0340\"\n",
+ "2024-12-30 21:25:20,028|INFO|Setting schema to \"KY_0340\"\n",
+ "2024-12-30 21:25:20,149|INFO|Query took 0.0859 seconds\n",
+ "2024-12-30 21:25:20,149|INFO|Query took 0.0859 seconds\n",
+ "2024-12-30 21:25:20,237|INFO|Created file output/Sorø Kommune.xlsx\n",
+ "2024-12-30 21:25:20,237|INFO|Created file output/Sorø Kommune.xlsx\n",
+ "2024-12-30 21:25:20,254|INFO|(88/98) running for municipality Lejre Kommune\n",
+ "2024-12-30 21:25:20,254|INFO|(88/98) running for municipality Lejre Kommune\n",
+ "2024-12-30 21:25:20,269|INFO|Verifying query\n",
+ "2024-12-30 21:25:20,269|INFO|Verifying query\n",
+ "2024-12-30 21:25:20,339|INFO|Starting transaction\n",
+ "2024-12-30 21:25:20,339|INFO|Starting transaction\n",
+ "2024-12-30 21:25:20,353|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:25:20,353|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:25:20,386|INFO|Setting schema to \"KY_0350\"\n",
+ "2024-12-30 21:25:20,386|INFO|Setting schema to \"KY_0350\"\n",
+ "2024-12-30 21:25:20,506|INFO|Query took 0.0878 seconds\n",
+ "2024-12-30 21:25:20,506|INFO|Query took 0.0878 seconds\n",
+ "2024-12-30 21:25:20,545|INFO|Created file output/Lejre Kommune.xlsx\n",
+ "2024-12-30 21:25:20,545|INFO|Created file output/Lejre Kommune.xlsx\n",
+ "2024-12-30 21:25:20,557|INFO|(89/98) running for municipality Lolland Kommune\n",
+ "2024-12-30 21:25:20,557|INFO|(89/98) running for municipality Lolland Kommune\n",
+ "2024-12-30 21:25:20,568|INFO|Verifying query\n",
+ "2024-12-30 21:25:20,568|INFO|Verifying query\n",
+ "2024-12-30 21:25:20,631|INFO|Starting transaction\n",
+ "2024-12-30 21:25:20,631|INFO|Starting transaction\n",
+ "2024-12-30 21:25:20,647|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:25:20,647|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:25:20,681|INFO|Setting schema to \"KY_0360\"\n",
+ "2024-12-30 21:25:20,681|INFO|Setting schema to \"KY_0360\"\n",
+ "2024-12-30 21:25:22,755|INFO|Query took 2.0388 seconds\n",
+ "2024-12-30 21:25:22,755|INFO|Query took 2.0388 seconds\n",
+ "2024-12-30 21:25:22,846|INFO|Created file output/Lolland Kommune.xlsx\n",
+ "2024-12-30 21:25:22,846|INFO|Created file output/Lolland Kommune.xlsx\n",
+ "2024-12-30 21:25:22,862|INFO|(90/98) running for municipality Næstved Kommune\n",
+ "2024-12-30 21:25:22,862|INFO|(90/98) running for municipality Næstved Kommune\n",
+ "2024-12-30 21:25:22,876|INFO|Verifying query\n",
+ "2024-12-30 21:25:22,876|INFO|Verifying query\n",
+ "2024-12-30 21:25:22,942|INFO|Starting transaction\n",
+ "2024-12-30 21:25:22,942|INFO|Starting transaction\n",
+ "2024-12-30 21:25:22,956|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:25:22,956|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:25:22,991|INFO|Setting schema to \"KY_0370\"\n",
+ "2024-12-30 21:25:22,991|INFO|Setting schema to \"KY_0370\"\n",
+ "2024-12-30 21:25:23,108|INFO|Query took 0.0872 seconds\n",
+ "2024-12-30 21:25:23,108|INFO|Query took 0.0872 seconds\n",
+ "2024-12-30 21:25:23,147|INFO|Created file output/Næstved Kommune.xlsx\n",
+ "2024-12-30 21:25:23,147|INFO|Created file output/Næstved Kommune.xlsx\n",
+ "2024-12-30 21:25:23,157|INFO|(91/98) running for municipality Guldborgsund Kommune\n",
+ "2024-12-30 21:25:23,157|INFO|(91/98) running for municipality Guldborgsund Kommune\n",
+ "2024-12-30 21:25:23,171|INFO|Verifying query\n",
+ "2024-12-30 21:25:23,171|INFO|Verifying query\n",
+ "2024-12-30 21:25:23,250|INFO|Starting transaction\n",
+ "2024-12-30 21:25:23,250|INFO|Starting transaction\n",
+ "2024-12-30 21:25:23,264|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:25:23,264|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:25:23,299|INFO|Setting schema to \"KY_0376\"\n",
+ "2024-12-30 21:25:23,299|INFO|Setting schema to \"KY_0376\"\n",
+ "2024-12-30 21:25:23,418|INFO|Query took 0.0853 seconds\n",
+ "2024-12-30 21:25:23,418|INFO|Query took 0.0853 seconds\n",
+ "2024-12-30 21:25:23,498|INFO|Created file output/Guldborgsund Kommune.xlsx\n",
+ "2024-12-30 21:25:23,498|INFO|Created file output/Guldborgsund Kommune.xlsx\n",
+ "2024-12-30 21:25:23,512|INFO|(92/98) running for municipality Vordingborg Kommune\n",
+ "2024-12-30 21:25:23,512|INFO|(92/98) running for municipality Vordingborg Kommune\n",
+ "2024-12-30 21:25:23,527|INFO|Verifying query\n",
+ "2024-12-30 21:25:23,527|INFO|Verifying query\n",
+ "2024-12-30 21:25:23,587|INFO|Starting transaction\n",
+ "2024-12-30 21:25:23,587|INFO|Starting transaction\n",
+ "2024-12-30 21:25:23,602|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:25:23,602|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:25:23,634|INFO|Setting schema to \"KY_0390\"\n",
+ "2024-12-30 21:25:23,634|INFO|Setting schema to \"KY_0390\"\n",
+ "2024-12-30 21:25:23,764|INFO|Query took 0.0961 seconds\n",
+ "2024-12-30 21:25:23,764|INFO|Query took 0.0961 seconds\n",
+ "2024-12-30 21:25:23,852|INFO|Created file output/Vordingborg Kommune.xlsx\n",
+ "2024-12-30 21:25:23,852|INFO|Created file output/Vordingborg Kommune.xlsx\n",
+ "2024-12-30 21:25:23,866|INFO|(93/98) running for municipality Bornholms Regionskommune\n",
+ "2024-12-30 21:25:23,866|INFO|(93/98) running for municipality Bornholms Regionskommune\n",
+ "2024-12-30 21:25:23,879|INFO|Verifying query\n",
+ "2024-12-30 21:25:23,879|INFO|Verifying query\n",
+ "2024-12-30 21:25:23,965|INFO|Starting transaction\n",
+ "2024-12-30 21:25:23,965|INFO|Starting transaction\n",
+ "2024-12-30 21:25:23,982|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:25:23,982|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:25:24,018|INFO|Setting schema to \"KY_0400\"\n",
+ "2024-12-30 21:25:24,018|INFO|Setting schema to \"KY_0400\"\n",
+ "2024-12-30 21:25:24,143|INFO|Query took 0.0908 seconds\n",
+ "2024-12-30 21:25:24,143|INFO|Query took 0.0908 seconds\n",
+ "2024-12-30 21:25:24,506|INFO|Created file output/Bornholms Regionskommune.xlsx\n",
+ "2024-12-30 21:25:24,506|INFO|Created file output/Bornholms Regionskommune.xlsx\n",
+ "2024-12-30 21:25:24,521|INFO|(94/98) running for municipality Middelfart Kommune\n",
+ "2024-12-30 21:25:24,521|INFO|(94/98) running for municipality Middelfart Kommune\n",
+ "2024-12-30 21:25:24,537|INFO|Verifying query\n",
+ "2024-12-30 21:25:24,537|INFO|Verifying query\n",
+ "2024-12-30 21:25:24,616|INFO|Starting transaction\n",
+ "2024-12-30 21:25:24,616|INFO|Starting transaction\n",
+ "2024-12-30 21:25:24,629|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:25:24,629|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:25:24,669|INFO|Setting schema to \"KY_0410\"\n",
+ "2024-12-30 21:25:24,669|INFO|Setting schema to \"KY_0410\"\n",
+ "2024-12-30 21:25:24,783|INFO|Query took 0.0834 seconds\n",
+ "2024-12-30 21:25:24,783|INFO|Query took 0.0834 seconds\n",
+ "2024-12-30 21:25:24,823|INFO|Created file output/Middelfart Kommune.xlsx\n",
+ "2024-12-30 21:25:24,823|INFO|Created file output/Middelfart Kommune.xlsx\n",
+ "2024-12-30 21:25:24,838|INFO|(95/98) running for municipality Assens Kommune\n",
+ "2024-12-30 21:25:24,838|INFO|(95/98) running for municipality Assens Kommune\n",
+ "2024-12-30 21:25:24,853|INFO|Verifying query\n",
+ "2024-12-30 21:25:24,853|INFO|Verifying query\n",
+ "2024-12-30 21:25:24,932|INFO|Starting transaction\n",
+ "2024-12-30 21:25:24,932|INFO|Starting transaction\n",
+ "2024-12-30 21:25:24,947|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:25:24,947|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:25:24,981|INFO|Setting schema to \"KY_0420\"\n",
+ "2024-12-30 21:25:24,981|INFO|Setting schema to \"KY_0420\"\n",
+ "2024-12-30 21:25:25,104|INFO|Query took 0.0903 seconds\n",
+ "2024-12-30 21:25:25,104|INFO|Query took 0.0903 seconds\n",
+ "2024-12-30 21:25:25,188|INFO|Created file output/Assens Kommune.xlsx\n",
+ "2024-12-30 21:25:25,188|INFO|Created file output/Assens Kommune.xlsx\n",
+ "2024-12-30 21:25:25,200|INFO|(96/98) running for municipality Faaborg-Midtfyn Kommune\n",
+ "2024-12-30 21:25:25,200|INFO|(96/98) running for municipality Faaborg-Midtfyn Kommune\n",
+ "2024-12-30 21:25:25,214|INFO|Verifying query\n",
+ "2024-12-30 21:25:25,214|INFO|Verifying query\n",
+ "2024-12-30 21:25:25,285|INFO|Starting transaction\n",
+ "2024-12-30 21:25:25,285|INFO|Starting transaction\n",
+ "2024-12-30 21:25:25,299|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:25:25,299|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:25:25,331|INFO|Setting schema to \"KY_0430\"\n",
+ "2024-12-30 21:25:25,331|INFO|Setting schema to \"KY_0430\"\n",
+ "2024-12-30 21:25:25,448|INFO|Query took 0.0849 seconds\n",
+ "2024-12-30 21:25:25,448|INFO|Query took 0.0849 seconds\n",
+ "2024-12-30 21:25:25,492|INFO|Created file output/Faaborg-Midtfyn Kommune.xlsx\n",
+ "2024-12-30 21:25:25,492|INFO|Created file output/Faaborg-Midtfyn Kommune.xlsx\n",
+ "2024-12-30 21:25:25,506|INFO|(97/98) running for municipality Kerteminde Kommune\n",
+ "2024-12-30 21:25:25,506|INFO|(97/98) running for municipality Kerteminde Kommune\n",
+ "2024-12-30 21:25:25,521|INFO|Verifying query\n",
+ "2024-12-30 21:25:25,521|INFO|Verifying query\n",
+ "2024-12-30 21:25:25,610|INFO|Starting transaction\n",
+ "2024-12-30 21:25:25,610|INFO|Starting transaction\n",
+ "2024-12-30 21:25:25,629|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:25:25,629|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:25:25,668|INFO|Setting schema to \"KY_0440\"\n",
+ "2024-12-30 21:25:25,668|INFO|Setting schema to \"KY_0440\"\n",
+ "2024-12-30 21:25:25,791|INFO|Query took 0.0912 seconds\n",
+ "2024-12-30 21:25:25,791|INFO|Query took 0.0912 seconds\n",
+ "2024-12-30 21:25:25,846|INFO|Created file output/Kerteminde Kommune.xlsx\n",
+ "2024-12-30 21:25:25,846|INFO|Created file output/Kerteminde Kommune.xlsx\n",
+ "2024-12-30 21:25:25,865|INFO|(98/98) running for municipality Nyborg Kommune\n",
+ "2024-12-30 21:25:25,865|INFO|(98/98) running for municipality Nyborg Kommune\n",
+ "2024-12-30 21:25:25,884|INFO|Verifying query\n",
+ "2024-12-30 21:25:25,884|INFO|Verifying query\n",
+ "2024-12-30 21:25:25,966|INFO|Starting transaction\n",
+ "2024-12-30 21:25:25,966|INFO|Starting transaction\n",
+ "2024-12-30 21:25:25,981|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:25:25,981|INFO|Setting transaction to readonly.\n",
+ "2024-12-30 21:25:26,015|INFO|Setting schema to \"KY_0450\"\n",
+ "2024-12-30 21:25:26,015|INFO|Setting schema to \"KY_0450\"\n",
+ "2024-12-30 21:25:26,134|INFO|Query took 0.0873 seconds\n",
+ "2024-12-30 21:25:26,134|INFO|Query took 0.0873 seconds\n",
+ "2024-12-30 21:25:26,181|INFO|Created file output/Nyborg Kommune.xlsx\n",
+ "2024-12-30 21:25:26,181|INFO|Created file output/Nyborg Kommune.xlsx\n"
+ ]
+ }
+ ],
+ "execution_count": 5
+ }
+ ],
+ "metadata": {
+ "kernelspec": {
+ "display_name": "Python 3",
+ "language": "python",
+ "name": "python3"
+ },
+ "language_info": {
+ "codemirror_mode": {
+ "name": "ipython",
+ "version": 2
+ },
+ "file_extension": ".py",
+ "mimetype": "text/x-python",
+ "name": "python",
+ "nbconvert_exporter": "python",
+ "pygments_lexer": "ipython2",
+ "version": "2.7.6"
+ }
+ },
+ "nbformat": 4,
+ "nbformat_minor": 5
+}
diff --git a/keepass.py b/keepass.py
index 2f83e30..34b0636 100644
--- a/keepass.py
+++ b/keepass.py
@@ -32,14 +32,14 @@ class KeePass:
def get_db_credentials(self) -> KeePassEntry:
self._logger.info(f'Searching for database credentials on credential: {self._kee_pass_config.db_credentials_name}')
- group = self._kee_pass
+ group = None
if self._kee_pass_config.db_credentials_group.strip() is not None and self._kee_pass_config.db_credentials_group.strip() != "":
self._logger.info(f'Searching in group {self._kee_pass_config.db_credentials_group}')
- group = self._kee_pass.find_entries(name=self._kee_pass_config.db_credentials_name)
+ group = self._kee_pass.find_groups(name=self._kee_pass_config.db_credentials_group)[0]
else:
self._logger.info('Searching in root')
- group = group.find_entries(title=self._kee_pass_config.db_credentials_name)
+ group = self._kee_pass.find_entries(title=self._kee_pass_config.db_credentials_name, group=group)
if group is None:
self._logger.critical(f'Group {self._kee_pass_config.db_credentials_group} not found')
diff --git a/main.py b/main.py
index 51b6faf..5b6a104 100644
--- a/main.py
+++ b/main.py
@@ -11,6 +11,6 @@ config = Config()
keepass = KeePass(config.kee_pass, logger)
db_adapter = DBAdapter(keepass, config.database, logger)
-#db_adapter.run_sql_file_export_to_csv_multiple_schemas([Municipality('test', '123456789', 'op_test', '123')])
+db_adapter.run_sql_file_export_to_file_multiple_schemas([Municipality('København Kommune', '64942212', 'KY_0101', '101')])
-db_adapter.run_sql_file_multiple_statements()
\ No newline at end of file
+#db_adapter.run_sql_file_multiple_statements()
\ No newline at end of file
diff --git a/models.py b/models.py
index 1d6d373..389ce58 100644
--- a/models.py
+++ b/models.py
@@ -1,4 +1,10 @@
from dataclasses import dataclass
+from enum import Enum
+
+
+class ExportType(Enum):
+ CSV = 1
+ EXCEL = 2
@dataclass
class Municipality:
diff --git a/pyproject.toml b/pyproject.toml
index a1e50eb..6a56ef1 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -6,6 +6,7 @@ readme = "README.md"
requires-python = ">=3.13"
dependencies = [
"cx-oracle>=8.3.0",
+ "openpyxl>=3.1.5",
"pandas>=2.2.3",
"pg8000>=1.31.2",
"pykeepass>=4.1.0.post1",
diff --git a/query.sql b/query.sql
index 69fbc56..6e5c0f5 100644
--- a/query.sql
+++ b/query.sql
@@ -1,2 +1 @@
-SELECT * FROM public.simple_healthcheck_counters shc;
-SELECT * FROM public.simple_healthcheck_counters shc;
\ No newline at end of file
+SELECT 1 FROM DUAL;
\ No newline at end of file
diff --git a/uv.lock b/uv.lock
index d8bcba2..434c24b 100644
--- a/uv.lock
+++ b/uv.lock
@@ -86,6 +86,7 @@ version = "0.1.0"
source = { virtual = "." }
dependencies = [
{ name = "cx-oracle" },
+ { name = "openpyxl" },
{ name = "pandas" },
{ name = "pg8000" },
{ name = "pykeepass" },
@@ -97,6 +98,7 @@ dependencies = [
[package.metadata]
requires-dist = [
{ name = "cx-oracle", specifier = ">=8.3.0" },
+ { name = "openpyxl", specifier = ">=3.1.5" },
{ name = "pandas", specifier = ">=2.2.3" },
{ name = "pg8000", specifier = ">=1.31.2" },
{ name = "pykeepass", specifier = ">=4.1.0.post1" },
@@ -105,6 +107,15 @@ requires-dist = [
{ name = "toml", specifier = ">=0.10.2" },
]
+[[package]]
+name = "et-xmlfile"
+version = "2.0.0"
+source = { registry = "https://pypi.org/simple" }
+sdist = { url = "https://files.pythonhosted.org/packages/d3/38/af70d7ab1ae9d4da450eeec1fa3918940a5fafb9055e934af8d6eb0c2313/et_xmlfile-2.0.0.tar.gz", hash = "sha256:dab3f4764309081ce75662649be815c4c9081e88f0837825f90fd28317d4da54", size = 17234 }
+wheels = [
+ { url = "https://files.pythonhosted.org/packages/c1/8b/5fe2cc11fee489817272089c4203e679c63b570a5aaeb18d852ae3cbba6a/et_xmlfile-2.0.0-py3-none-any.whl", hash = "sha256:7a91720bc756843502c3b7504c77b8fe44217c85c537d85037f0f536151b2caa", size = 18059 },
+]
+
[[package]]
name = "lxml"
version = "5.3.0"
@@ -158,6 +169,18 @@ wheels = [
{ url = "https://files.pythonhosted.org/packages/ce/e1/e0d06ec34036c92b43aef206efe99a5f5f04e12c776eab82a36e00c40afc/numpy-2.2.0-cp313-cp313t-win_amd64.whl", hash = "sha256:d35717333b39d1b6bb8433fa758a55f1081543de527171543a2b710551d40881", size = 12692303 },
]
+[[package]]
+name = "openpyxl"
+version = "3.1.5"
+source = { registry = "https://pypi.org/simple" }
+dependencies = [
+ { name = "et-xmlfile" },
+]
+sdist = { url = "https://files.pythonhosted.org/packages/3d/f9/88d94a75de065ea32619465d2f77b29a0469500e99012523b91cc4141cd1/openpyxl-3.1.5.tar.gz", hash = "sha256:cf0e3cf56142039133628b5acffe8ef0c12bc902d2aadd3e0fe5878dc08d1050", size = 186464 }
+wheels = [
+ { url = "https://files.pythonhosted.org/packages/c0/da/977ded879c29cbd04de313843e76868e6e13408a94ed6b987245dc7c8506/openpyxl-3.1.5-py2.py3-none-any.whl", hash = "sha256:5282c12b107bffeef825f4617dc029afaf41d0ea60823bbb665ef3079dc79de2", size = 250910 },
+]
+
[[package]]
name = "pandas"
version = "2.2.3"