xml/config.xsd
author František Kučera <franta-hg@frantovo.cz>
Tue, 26 Feb 2019 18:19:49 +0100
branchv_0
changeset 236 a3ec71fa8e17
parent 203 504c4ba56d1c
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:
115
0f237fbb08a5 basic XSD
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     1
<?xml version="1.0" encoding="UTF-8"?>
120
940681695aa4 XML schemas licenses
František Kučera <franta-hg@frantovo.cz>
parents: 115
diff changeset
     2
<!--
940681695aa4 XML schemas licenses
František Kučera <franta-hg@frantovo.cz>
parents: 115
diff changeset
     3
SQL-DK
940681695aa4 XML schemas licenses
František Kučera <franta-hg@frantovo.cz>
parents: 115
diff changeset
     4
Copyright © 2013 František Kučera (frantovo.cz)
940681695aa4 XML schemas licenses
František Kučera <franta-hg@frantovo.cz>
parents: 115
diff changeset
     5
940681695aa4 XML schemas licenses
František Kučera <franta-hg@frantovo.cz>
parents: 115
diff changeset
     6
This program is free software: you can redistribute it and/or modify
940681695aa4 XML schemas licenses
František Kučera <franta-hg@frantovo.cz>
parents: 115
diff changeset
     7
it under the terms of the GNU General Public License as published by
940681695aa4 XML schemas licenses
František Kučera <franta-hg@frantovo.cz>
parents: 115
diff changeset
     8
the Free Software Foundation, either version 3 of the License, or
940681695aa4 XML schemas licenses
František Kučera <franta-hg@frantovo.cz>
parents: 115
diff changeset
     9
(at your option) any later version.
940681695aa4 XML schemas licenses
František Kučera <franta-hg@frantovo.cz>
parents: 115
diff changeset
    10
940681695aa4 XML schemas licenses
František Kučera <franta-hg@frantovo.cz>
parents: 115
diff changeset
    11
This program is distributed in the hope that it will be useful,
940681695aa4 XML schemas licenses
František Kučera <franta-hg@frantovo.cz>
parents: 115
diff changeset
    12
but WITHOUT ANY WARRANTY; without even the implied warranty of
940681695aa4 XML schemas licenses
František Kučera <franta-hg@frantovo.cz>
parents: 115
diff changeset
    13
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
940681695aa4 XML schemas licenses
František Kučera <franta-hg@frantovo.cz>
parents: 115
diff changeset
    14
GNU General Public License for more details.
940681695aa4 XML schemas licenses
František Kučera <franta-hg@frantovo.cz>
parents: 115
diff changeset
    15
940681695aa4 XML schemas licenses
František Kučera <franta-hg@frantovo.cz>
parents: 115
diff changeset
    16
You should have received a copy of the GNU General Public License
940681695aa4 XML schemas licenses
František Kučera <franta-hg@frantovo.cz>
parents: 115
diff changeset
    17
along with this program. If not, see <http://www.gnu.org/licenses/>.
940681695aa4 XML schemas licenses
František Kučera <franta-hg@frantovo.cz>
parents: 115
diff changeset
    18
-->
115
0f237fbb08a5 basic XSD
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    19
<xs:schema
0f237fbb08a5 basic XSD
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    20
	xmlns:xs="http://www.w3.org/2001/XMLSchema"
0f237fbb08a5 basic XSD
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    21
	elementFormDefault="qualified"
0f237fbb08a5 basic XSD
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    22
	targetNamespace="https://sql-dk.globalcode.info/xmlns/configuration"
0f237fbb08a5 basic XSD
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    23
	xmlns:c="https://sql-dk.globalcode.info/xmlns/configuration">
0f237fbb08a5 basic XSD
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    24
	
0f237fbb08a5 basic XSD
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    25
	<xs:element name="configuration">
0f237fbb08a5 basic XSD
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    26
		<xs:complexType>
0f237fbb08a5 basic XSD
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    27
			<xs:sequence>
0f237fbb08a5 basic XSD
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    28
				<xs:element minOccurs="0" maxOccurs="unbounded" ref="c:database"/>
0f237fbb08a5 basic XSD
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    29
				<xs:element minOccurs="0" ref="c:defaultFormatter"/>
0f237fbb08a5 basic XSD
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    30
				<xs:element minOccurs="0" maxOccurs="unbounded" ref="c:formatter"/>
0f237fbb08a5 basic XSD
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    31
			</xs:sequence>
0f237fbb08a5 basic XSD
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    32
		</xs:complexType>
0f237fbb08a5 basic XSD
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    33
	</xs:element>
0f237fbb08a5 basic XSD
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    34
	
0f237fbb08a5 basic XSD
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    35
	<xs:element name="database">
0f237fbb08a5 basic XSD
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    36
		<xs:complexType>
0f237fbb08a5 basic XSD
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    37
			<xs:sequence>
0f237fbb08a5 basic XSD
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    38
				<xs:element ref="c:name"/>
0f237fbb08a5 basic XSD
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    39
				<xs:element ref="c:url"/>
0f237fbb08a5 basic XSD
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    40
				<xs:element minOccurs="0" ref="c:userName"/>
0f237fbb08a5 basic XSD
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    41
				<xs:element minOccurs="0" ref="c:password"/>
198
03d8492e2ca8 Schemas and XSL for new 'driver' configuration option
František Kučera <franta-hg@frantovo.cz>
parents: 120
diff changeset
    42
				<xs:element minOccurs="0" ref="c:driver"/>
115
0f237fbb08a5 basic XSD
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    43
				<xs:element minOccurs="0" maxOccurs="unbounded" ref="c:property"/>
203
504c4ba56d1c connection tunnelling: configuration and logging
František Kučera <franta-hg@frantovo.cz>
parents: 198
diff changeset
    44
				<xs:element minOccurs="0" ref="c:tunnel"/>
115
0f237fbb08a5 basic XSD
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    45
			</xs:sequence>
0f237fbb08a5 basic XSD
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    46
		</xs:complexType>
0f237fbb08a5 basic XSD
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    47
	</xs:element>
0f237fbb08a5 basic XSD
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    48
	
0f237fbb08a5 basic XSD
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    49
	<xs:element name="name" type="xs:string"/>
0f237fbb08a5 basic XSD
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    50
	<xs:element name="url" type="xs:string"/>
0f237fbb08a5 basic XSD
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    51
	<xs:element name="userName" type="xs:string"/>
0f237fbb08a5 basic XSD
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    52
	<xs:element name="password" type="xs:string"/>
198
03d8492e2ca8 Schemas and XSL for new 'driver' configuration option
František Kučera <franta-hg@frantovo.cz>
parents: 120
diff changeset
    53
	<xs:element name="driver" type="xs:string"/>
115
0f237fbb08a5 basic XSD
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    54
	
0f237fbb08a5 basic XSD
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    55
	<xs:element name="property">
0f237fbb08a5 basic XSD
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    56
		<xs:complexType mixed="true">
0f237fbb08a5 basic XSD
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    57
			<xs:attribute name="name" use="required"/>
0f237fbb08a5 basic XSD
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    58
		</xs:complexType>
0f237fbb08a5 basic XSD
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    59
	</xs:element>
0f237fbb08a5 basic XSD
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    60
	
203
504c4ba56d1c connection tunnelling: configuration and logging
František Kučera <franta-hg@frantovo.cz>
parents: 198
diff changeset
    61
	<xs:element name="tunnel">
504c4ba56d1c connection tunnelling: configuration and logging
František Kučera <franta-hg@frantovo.cz>
parents: 198
diff changeset
    62
		<xs:complexType>
504c4ba56d1c connection tunnelling: configuration and logging
František Kučera <franta-hg@frantovo.cz>
parents: 198
diff changeset
    63
			<xs:sequence>
504c4ba56d1c connection tunnelling: configuration and logging
František Kučera <franta-hg@frantovo.cz>
parents: 198
diff changeset
    64
				<xs:element ref="c:command"/>
504c4ba56d1c connection tunnelling: configuration and logging
František Kučera <franta-hg@frantovo.cz>
parents: 198
diff changeset
    65
				<xs:element minOccurs="0" maxOccurs="unbounded" ref="c:argument"/>
504c4ba56d1c connection tunnelling: configuration and logging
František Kučera <franta-hg@frantovo.cz>
parents: 198
diff changeset
    66
			</xs:sequence>
504c4ba56d1c connection tunnelling: configuration and logging
František Kučera <franta-hg@frantovo.cz>
parents: 198
diff changeset
    67
		</xs:complexType>
504c4ba56d1c connection tunnelling: configuration and logging
František Kučera <franta-hg@frantovo.cz>
parents: 198
diff changeset
    68
	</xs:element>
504c4ba56d1c connection tunnelling: configuration and logging
František Kučera <franta-hg@frantovo.cz>
parents: 198
diff changeset
    69
	
504c4ba56d1c connection tunnelling: configuration and logging
František Kučera <franta-hg@frantovo.cz>
parents: 198
diff changeset
    70
	<xs:element name="command" type="xs:string"/>
504c4ba56d1c connection tunnelling: configuration and logging
František Kučera <franta-hg@frantovo.cz>
parents: 198
diff changeset
    71
	
504c4ba56d1c connection tunnelling: configuration and logging
František Kučera <franta-hg@frantovo.cz>
parents: 198
diff changeset
    72
	<xs:element name="argument">
504c4ba56d1c connection tunnelling: configuration and logging
František Kučera <franta-hg@frantovo.cz>
parents: 198
diff changeset
    73
		<xs:complexType mixed="true">
504c4ba56d1c connection tunnelling: configuration and logging
František Kučera <franta-hg@frantovo.cz>
parents: 198
diff changeset
    74
			<xs:attribute name="type">
504c4ba56d1c connection tunnelling: configuration and logging
František Kučera <franta-hg@frantovo.cz>
parents: 198
diff changeset
    75
				<xs:simpleType>
504c4ba56d1c connection tunnelling: configuration and logging
František Kučera <franta-hg@frantovo.cz>
parents: 198
diff changeset
    76
					<xs:restriction base="xs:token">
504c4ba56d1c connection tunnelling: configuration and logging
František Kučera <franta-hg@frantovo.cz>
parents: 198
diff changeset
    77
						<xs:enumeration value="literal"/>
504c4ba56d1c connection tunnelling: configuration and logging
František Kučera <franta-hg@frantovo.cz>
parents: 198
diff changeset
    78
						<xs:enumeration value="host"/>
504c4ba56d1c connection tunnelling: configuration and logging
František Kučera <franta-hg@frantovo.cz>
parents: 198
diff changeset
    79
						<xs:enumeration value="port"/>
504c4ba56d1c connection tunnelling: configuration and logging
František Kučera <franta-hg@frantovo.cz>
parents: 198
diff changeset
    80
						<xs:enumeration value="env"/>
504c4ba56d1c connection tunnelling: configuration and logging
František Kučera <franta-hg@frantovo.cz>
parents: 198
diff changeset
    81
						<xs:enumeration value="dbProperty"/>
504c4ba56d1c connection tunnelling: configuration and logging
František Kučera <franta-hg@frantovo.cz>
parents: 198
diff changeset
    82
					</xs:restriction>
504c4ba56d1c connection tunnelling: configuration and logging
František Kučera <franta-hg@frantovo.cz>
parents: 198
diff changeset
    83
				</xs:simpleType>
504c4ba56d1c connection tunnelling: configuration and logging
František Kučera <franta-hg@frantovo.cz>
parents: 198
diff changeset
    84
			</xs:attribute>
504c4ba56d1c connection tunnelling: configuration and logging
František Kučera <franta-hg@frantovo.cz>
parents: 198
diff changeset
    85
		</xs:complexType>
504c4ba56d1c connection tunnelling: configuration and logging
František Kučera <franta-hg@frantovo.cz>
parents: 198
diff changeset
    86
	</xs:element>
504c4ba56d1c connection tunnelling: configuration and logging
František Kučera <franta-hg@frantovo.cz>
parents: 198
diff changeset
    87
	
115
0f237fbb08a5 basic XSD
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    88
	<xs:element name="defaultFormatter" type="xs:string"/>
0f237fbb08a5 basic XSD
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    89
	
0f237fbb08a5 basic XSD
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    90
	<xs:element name="formatter">
0f237fbb08a5 basic XSD
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    91
		<xs:complexType>
0f237fbb08a5 basic XSD
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    92
			<xs:sequence>
0f237fbb08a5 basic XSD
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    93
				<xs:element ref="c:name"/>
0f237fbb08a5 basic XSD
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    94
				<xs:element ref="c:class"/>
0f237fbb08a5 basic XSD
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    95
				<xs:element minOccurs="0" maxOccurs="unbounded" ref="c:property"/>
0f237fbb08a5 basic XSD
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    96
			</xs:sequence>
0f237fbb08a5 basic XSD
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    97
		</xs:complexType>
0f237fbb08a5 basic XSD
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    98
	</xs:element>
0f237fbb08a5 basic XSD
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    99
	
0f237fbb08a5 basic XSD
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
   100
	<xs:element name="class" type="xs:string"/>
0f237fbb08a5 basic XSD
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
   101
	
0f237fbb08a5 basic XSD
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
   102
</xs:schema>