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