xml/config.xml
author František Kučera <franta-hg@frantovo.cz>
Tue, 26 Feb 2019 18:19:49 +0100
branchv_0
changeset 236 a3ec71fa8e17
parent 198 03d8492e2ca8
child 249 7655df0622ee
permissions -rw-r--r--
Avoid reusing/rewriting the DB connection properties. There was weird random errors while testing connection to multiple DB in parallel when one of them was meta connection to same DB connection. Two kinds of exception: 1) missing password 2) „Passing DB password as CLI parameter is insecure!“
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
141
ecd17aad1178 default config: no standalone
František Kučera <franta-hg@frantovo.cz>
parents: 119
diff changeset
     1
<?xml version="1.0" encoding="UTF-8"?>
119
f3e2b95a5f8a XSLT for viewing config files in a web browser (Firefox, rekonq etc.)
František Kučera <franta-hg@frantovo.cz>
parents: 117
diff changeset
     2
<?xml-stylesheet type="text/xsl" href="config.xsl"?>
33
04db6ccd6c48 configuration loading from XML
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     3
<configuration xmlns="https://sql-dk.globalcode.info/xmlns/configuration">
04db6ccd6c48 configuration loading from XML
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     4
	
04db6ccd6c48 configuration loading from XML
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     5
	<!-- Database Connections: -->
04db6ccd6c48 configuration loading from XML
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     6
	<!--
04db6ccd6c48 configuration loading from XML
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     7
	<database>
04db6ccd6c48 configuration loading from XML
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     8
		<name>my_postgres_1</name>
04db6ccd6c48 configuration loading from XML
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     9
		<url>jdbc:postgresql://localhost:5432/database_name</url>
04db6ccd6c48 configuration loading from XML
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    10
		<userName>dbuser</userName>
04db6ccd6c48 configuration loading from XML
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    11
		<password>dbpass</password>
198
03d8492e2ca8 Schemas and XSL for new 'driver' configuration option
František Kučera <franta-hg@frantovo.cz>
parents: 190
diff changeset
    12
		<driver>org.postgresql.Driver</driver>
33
04db6ccd6c48 configuration loading from XML
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    13
	</database>
04db6ccd6c48 configuration loading from XML
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    14
	
04db6ccd6c48 configuration loading from XML
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    15
	<database>
04db6ccd6c48 configuration loading from XML
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    16
		<name>my_mysql_1</name>
04db6ccd6c48 configuration loading from XML
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    17
		<url>jdbc:mysql://localhost:3306/database_name</url>
04db6ccd6c48 configuration loading from XML
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    18
		<userName>dbuser</userName>
04db6ccd6c48 configuration loading from XML
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    19
		<password>dbpass</password>
198
03d8492e2ca8 Schemas and XSL for new 'driver' configuration option
František Kučera <franta-hg@frantovo.cz>
parents: 190
diff changeset
    20
		<driver>com.mysql.jdbc.Driver</driver>
33
04db6ccd6c48 configuration loading from XML
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    21
	</database>
172
dec1ba8af6c5 improved JDBC loopback driver
František Kučera <franta-hg@frantovo.cz>
parents: 141
diff changeset
    22
	
dec1ba8af6c5 improved JDBC loopback driver
František Kučera <franta-hg@frantovo.cz>
parents: 141
diff changeset
    23
	<database>
dec1ba8af6c5 improved JDBC loopback driver
František Kučera <franta-hg@frantovo.cz>
parents: 141
diff changeset
    24
		<name>loopback</name>
dec1ba8af6c5 improved JDBC loopback driver
František Kučera <franta-hg@frantovo.cz>
parents: 141
diff changeset
    25
		<url>jdbc:loopback://</url>
dec1ba8af6c5 improved JDBC loopback driver
František Kučera <franta-hg@frantovo.cz>
parents: 141
diff changeset
    26
	</database>
33
04db6ccd6c48 configuration loading from XML
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    27
	-->
04db6ccd6c48 configuration loading from XML
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    28
	
04db6ccd6c48 configuration loading from XML
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    29
	<!-- Output formatters: -->
04db6ccd6c48 configuration loading from XML
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    30
	<!--
04db6ccd6c48 configuration loading from XML
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    31
	<defaultFormatter>tabular</defaultFormatter>
04db6ccd6c48 configuration loading from XML
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    32
	
04db6ccd6c48 configuration loading from XML
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    33
	<formatter>
04db6ccd6c48 configuration loading from XML
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    34
		<name>tabular</name>
04db6ccd6c48 configuration loading from XML
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    35
		<class>info.globalcode.sql.dk.formatting.TabularFormatter</class>
04db6ccd6c48 configuration loading from XML
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    36
	</formatter>
04db6ccd6c48 configuration loading from XML
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    37
	
04db6ccd6c48 configuration loading from XML
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    38
	<formatter>
04db6ccd6c48 configuration loading from XML
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    39
		<name>xml</name>
04db6ccd6c48 configuration loading from XML
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    40
		<class>info.globalcode.sql.dk.formatting.XmlFormatter</class>
04db6ccd6c48 configuration loading from XML
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    41
	</formatter>
04db6ccd6c48 configuration loading from XML
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    42
	
04db6ccd6c48 configuration loading from XML
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    43
	<formatter>
04db6ccd6c48 configuration loading from XML
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    44
		<name>silent</name>
04db6ccd6c48 configuration loading from XML
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    45
		<class>info.globalcode.sql.dk.formatting.SilentFormatter</class>
04db6ccd6c48 configuration loading from XML
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    46
	</formatter>
04db6ccd6c48 configuration loading from XML
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    47
	-->
04db6ccd6c48 configuration loading from XML
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    48
	
04db6ccd6c48 configuration loading from XML
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    49
</configuration>