From 88fe1ed403a17f92254a5ab3dda42a7b1944ba7b Mon Sep 17 00:00:00 2001 From: Torsten Friebe Date: Tue, 21 Nov 2023 17:22:30 +0100 Subject: [PATCH] #982 added resource files to use different dictionaries --- 00_dbinfo.sql | 15 +++++++++++++++ db.properties => db-1.properties | 0 db-2.properties | 13 +++++++++++++ 3 files changed, 28 insertions(+) create mode 100644 00_dbinfo.sql rename db.properties => db-1.properties (100%) create mode 100644 db-2.properties diff --git a/00_dbinfo.sql b/00_dbinfo.sql new file mode 100644 index 0000000..0207cb5 --- /dev/null +++ b/00_dbinfo.sql @@ -0,0 +1,15 @@ +-- +-- db info +-- +CREATE table public.sep3tools ( + part VARCHAR (100), + value VARCHAR (255) +); + +COPY public.sep3tools (part, value) +FROM 'db-1.properties' +DELIMITER '=' +QUOTE '@' +CSV +; + diff --git a/db.properties b/db-1.properties similarity index 100% rename from db.properties rename to db-1.properties diff --git a/db-2.properties b/db-2.properties new file mode 100644 index 0000000..926f9b8 --- /dev/null +++ b/db-2.properties @@ -0,0 +1,13 @@ +URL=jdbc:postgresql://localhost/petroparser +USER=petroparser +PASSWORD=petroparser +WOERTERBUCH=woerterbuch."Woerterbuch" +WBKUERZEL="Kuerzel" +WBKLARTEXT="Klartext" +WBTYP="Typ" +WBATTRIBUTE="Attribute" +SCHLUESSELTYPEN=woerterbuch."Schluesseltypen" +STNEBENTYPBEZ="Nebentypbez" +STDATENFELD="Datenfeld" +SCHLUESSELMAPPING=bml.bml_schluesselmapping +DATEFIELD=PETRO