Name

connection — Defines the JDBC connection to make

Synopsis

<connection>
	<catalog>catalog</catalog>
	<schema>schema</schema>
	<url>url</url>
	<username>username</username>
	<password>password</password>
</connection>
				
				

Description

This element is the JDBC connection definition of a data source.

Content

catalog

The database catalog name to connect to (if applicable), most of the time a catalog name is the same as database name.

schema

If applicable, the shema to use.

url

JDBC connection url (obligatory).

username

The username to use.

password

The password to use. If it is empty (<password></password>, it means an empty password, if this element is not present, it will ask the password via command line.

Example

Example 18. JDBC data source driver definition.

<project name="testProject">
	...
	<metadata>
		...
	</metadata>
	<output>
		<jdbc>
			<driver name="postgresql">
				<jar>/usr/share/java/postgresql.jar</jar>
				<native></native>
				<class>org.postgresql.Driver</class>
			</driver>
			<connection>
				<catalog>testdb</catalog>
				<schema>public</schema>
				<url>jdbc:postgresql:testdb</url>
				<username>mbassale</username>
				<password>12345</password>
			</connection>
		</jdbc>
	</output>
</project>