xml/config.xml
author František Kučera <franta-hg@frantovo.cz>
Sat, 25 Jul 2020 17:25:19 +0200
branchv_0
changeset 252 a9d4a8d5c57f
parent 249 7655df0622ee
permissions -rw-r--r--
improve multiple results support

The specification talks exactly about -1:
> Returns: the current result as an update count;
> -1 if the current result is a ResultSet object or there are no more results

Other negative numbers can theoretically mean something different than „no more results“
e.g. unknown number of updates (?).
     1 <?xml version="1.0" encoding="UTF-8"?>
     2 <?xml-stylesheet type="text/xsl" href="config.xsl"?>
     3 <configuration xmlns="tag:globalcode.info,2018:sqldk/configuration">
     4 	
     5 	<!-- Database Connections: -->
     6 	<!--
     7 	<database>
     8 		<name>my_postgres_1</name>
     9 		<url>jdbc:postgresql://localhost:5432/database_name</url>
    10 		<userName>dbuser</userName>
    11 		<password>dbpass</password>
    12 		<driver>org.postgresql.Driver</driver>
    13 	</database>
    14 	
    15 	<database>
    16 		<name>my_mysql_1</name>
    17 		<url>jdbc:mysql://localhost:3306/database_name</url>
    18 		<userName>dbuser</userName>
    19 		<password>dbpass</password>
    20 		<driver>com.mysql.jdbc.Driver</driver>
    21 	</database>
    22 	
    23 	<database>
    24 		<name>loopback</name>
    25 		<url>jdbc:loopback://</url>
    26 	</database>
    27 	-->
    28 	
    29 	<!-- Output formatters: -->
    30 	<!--
    31 	<defaultFormatter>tabular</defaultFormatter>
    32 	
    33 	<formatter>
    34 		<name>tabular</name>
    35 		<class>info.globalcode.sql.dk.formatting.TabularFormatter</class>
    36 	</formatter>
    37 	
    38 	<formatter>
    39 		<name>xml</name>
    40 		<class>info.globalcode.sql.dk.formatting.XmlFormatter</class>
    41 	</formatter>
    42 	
    43 	<formatter>
    44 		<name>silent</name>
    45 		<class>info.globalcode.sql.dk.formatting.SilentFormatter</class>
    46 	</formatter>
    47 	-->
    48 	
    49 </configuration>