xml/config.rnc
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:
120
940681695aa4 XML schemas licenses
František Kučera <franta-hg@frantovo.cz>
parents: 113
diff changeset
     1
# SQL-DK
940681695aa4 XML schemas licenses
František Kučera <franta-hg@frantovo.cz>
parents: 113
diff changeset
     2
# Copyright © 2013 František Kučera (frantovo.cz)
940681695aa4 XML schemas licenses
František Kučera <franta-hg@frantovo.cz>
parents: 113
diff changeset
     3
# 
940681695aa4 XML schemas licenses
František Kučera <franta-hg@frantovo.cz>
parents: 113
diff changeset
     4
# 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: 113
diff changeset
     5
# 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: 113
diff changeset
     6
# the Free Software Foundation, either version 3 of the License, or
940681695aa4 XML schemas licenses
František Kučera <franta-hg@frantovo.cz>
parents: 113
diff changeset
     7
# (at your option) any later version.
940681695aa4 XML schemas licenses
František Kučera <franta-hg@frantovo.cz>
parents: 113
diff changeset
     8
# 
940681695aa4 XML schemas licenses
František Kučera <franta-hg@frantovo.cz>
parents: 113
diff changeset
     9
# 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: 113
diff changeset
    10
# but WITHOUT ANY WARRANTY; without even the implied warranty of
940681695aa4 XML schemas licenses
František Kučera <franta-hg@frantovo.cz>
parents: 113
diff changeset
    11
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
940681695aa4 XML schemas licenses
František Kučera <franta-hg@frantovo.cz>
parents: 113
diff changeset
    12
# GNU General Public License for more details.
940681695aa4 XML schemas licenses
František Kučera <franta-hg@frantovo.cz>
parents: 113
diff changeset
    13
# 
940681695aa4 XML schemas licenses
František Kučera <franta-hg@frantovo.cz>
parents: 113
diff changeset
    14
# 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: 113
diff changeset
    15
# 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: 113
diff changeset
    16
113
575a8c6b91ad Relax NG schema for XML configuration
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    17
default namespace = "https://sql-dk.globalcode.info/xmlns/configuration"
575a8c6b91ad Relax NG schema for XML configuration
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    18
575a8c6b91ad Relax NG schema for XML configuration
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    19
start =
575a8c6b91ad Relax NG schema for XML configuration
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    20
	element configuration {
575a8c6b91ad Relax NG schema for XML configuration
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    21
		
575a8c6b91ad Relax NG schema for XML configuration
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    22
		element database {
575a8c6b91ad Relax NG schema for XML configuration
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    23
			element name { text },
575a8c6b91ad Relax NG schema for XML configuration
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    24
			element url { text },
575a8c6b91ad Relax NG schema for XML configuration
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    25
			element userName { text }?,
575a8c6b91ad Relax NG schema for XML configuration
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    26
			element password { text }?,
198
03d8492e2ca8 Schemas and XSL for new 'driver' configuration option
František Kučera <franta-hg@frantovo.cz>
parents: 120
diff changeset
    27
			element driver { text }?,
113
575a8c6b91ad Relax NG schema for XML configuration
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    28
			element property {
575a8c6b91ad Relax NG schema for XML configuration
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    29
				attribute name { text },
575a8c6b91ad Relax NG schema for XML configuration
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    30
				text
203
504c4ba56d1c connection tunnelling: configuration and logging
František Kučera <franta-hg@frantovo.cz>
parents: 198
diff changeset
    31
			}*,
504c4ba56d1c connection tunnelling: configuration and logging
František Kučera <franta-hg@frantovo.cz>
parents: 198
diff changeset
    32
			element tunnel {
504c4ba56d1c connection tunnelling: configuration and logging
František Kučera <franta-hg@frantovo.cz>
parents: 198
diff changeset
    33
				element command { text },
504c4ba56d1c connection tunnelling: configuration and logging
František Kučera <franta-hg@frantovo.cz>
parents: 198
diff changeset
    34
				element argument {
504c4ba56d1c connection tunnelling: configuration and logging
František Kučera <franta-hg@frantovo.cz>
parents: 198
diff changeset
    35
					attribute type { "literal" | "host" | "port" | "env" | "dbProperty" }?,
504c4ba56d1c connection tunnelling: configuration and logging
František Kučera <franta-hg@frantovo.cz>
parents: 198
diff changeset
    36
					text
504c4ba56d1c connection tunnelling: configuration and logging
František Kučera <franta-hg@frantovo.cz>
parents: 198
diff changeset
    37
				}*
504c4ba56d1c connection tunnelling: configuration and logging
František Kučera <franta-hg@frantovo.cz>
parents: 198
diff changeset
    38
			}?
113
575a8c6b91ad Relax NG schema for XML configuration
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    39
		}*,
575a8c6b91ad Relax NG schema for XML configuration
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    40
		
575a8c6b91ad Relax NG schema for XML configuration
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    41
		element defaultFormatter { text }?,
575a8c6b91ad Relax NG schema for XML configuration
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    42
		
575a8c6b91ad Relax NG schema for XML configuration
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    43
		element formatter {
575a8c6b91ad Relax NG schema for XML configuration
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    44
			element name { text },
575a8c6b91ad Relax NG schema for XML configuration
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    45
			element class { text },
575a8c6b91ad Relax NG schema for XML configuration
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    46
			element property {
575a8c6b91ad Relax NG schema for XML configuration
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    47
				attribute name { text },
575a8c6b91ad Relax NG schema for XML configuration
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    48
				text
575a8c6b91ad Relax NG schema for XML configuration
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    49
			}*
575a8c6b91ad Relax NG schema for XML configuration
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    50
		}*
575a8c6b91ad Relax NG schema for XML configuration
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    51
	}