xml/config.rnc
author František Kučera <franta-hg@frantovo.cz>
Sat, 15 Aug 2015 09:40:22 +0200
branchv_0
changeset 203 504c4ba56d1c
parent 198 03d8492e2ca8
child 249 7655df0622ee
permissions -rw-r--r--
connection tunnelling: configuration and logging
franta-hg@120
     1
# SQL-DK
franta-hg@120
     2
# Copyright © 2013 František Kučera (frantovo.cz)
franta-hg@120
     3
# 
franta-hg@120
     4
# This program is free software: you can redistribute it and/or modify
franta-hg@120
     5
# it under the terms of the GNU General Public License as published by
franta-hg@120
     6
# the Free Software Foundation, either version 3 of the License, or
franta-hg@120
     7
# (at your option) any later version.
franta-hg@120
     8
# 
franta-hg@120
     9
# This program is distributed in the hope that it will be useful,
franta-hg@120
    10
# but WITHOUT ANY WARRANTY; without even the implied warranty of
franta-hg@120
    11
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
franta-hg@120
    12
# GNU General Public License for more details.
franta-hg@120
    13
# 
franta-hg@120
    14
# You should have received a copy of the GNU General Public License
franta-hg@120
    15
# along with this program. If not, see <http://www.gnu.org/licenses/>.
franta-hg@120
    16
franta-hg@113
    17
default namespace = "https://sql-dk.globalcode.info/xmlns/configuration"
franta-hg@113
    18
franta-hg@113
    19
start =
franta-hg@113
    20
	element configuration {
franta-hg@113
    21
		
franta-hg@113
    22
		element database {
franta-hg@113
    23
			element name { text },
franta-hg@113
    24
			element url { text },
franta-hg@113
    25
			element userName { text }?,
franta-hg@113
    26
			element password { text }?,
franta-hg@198
    27
			element driver { text }?,
franta-hg@113
    28
			element property {
franta-hg@113
    29
				attribute name { text },
franta-hg@113
    30
				text
franta-hg@203
    31
			}*,
franta-hg@203
    32
			element tunnel {
franta-hg@203
    33
				element command { text },
franta-hg@203
    34
				element argument {
franta-hg@203
    35
					attribute type { "literal" | "host" | "port" | "env" | "dbProperty" }?,
franta-hg@203
    36
					text
franta-hg@203
    37
				}*
franta-hg@203
    38
			}?
franta-hg@113
    39
		}*,
franta-hg@113
    40
		
franta-hg@113
    41
		element defaultFormatter { text }?,
franta-hg@113
    42
		
franta-hg@113
    43
		element formatter {
franta-hg@113
    44
			element name { text },
franta-hg@113
    45
			element class { text },
franta-hg@113
    46
			element property {
franta-hg@113
    47
				attribute name { text },
franta-hg@113
    48
				text
franta-hg@113
    49
			}*
franta-hg@113
    50
		}*
franta-hg@113
    51
	}