XQuark Bridge - Command-line utility

Synopsis

    xqbridge -q [ options ] queryFile [outFile]
xqbridge -i [ options ] mapFile xmlFile1 [xmlFileI]*

Description

The XQuark Bridge tool is used to extract XML data from a database, using the XQuery language, and to insert XML data into a database, using a mapping specification. The first behavior is obtained using the -q option, and the second one using the -i option.

Configuration

Environment variables

The XQuark Bridge tool uses several environment variable:

If running under Windows 9x:

When using XQuark Bridge in insertion mode, the user can define Java-based generators used to fill column values. Those classes need to be in the classpath used by the command-line tool. This can be controlled by setting the standard CLASSPATH environment variable to the appropriate value.

Database connection

In order to work, XQuark Bridge needs to connect to a database. The installation guide describes how to set up the default connection. The default setup can be overidden by specifying connection parameters on the command line (see options below), by creating a Java properties file containing the appropriate parameters, or by creating an XML configuration file (see XQuery Manual for details).

The properties that must be set in the properties file are:

XQuark Bridge attemps to load all the JDBC drivers that it supports from the classpath, so there is no need to specify the JDBC driver class name.

If no properties or configuration file is specified on the command line, XQuark Bridge will try to load the first XQBridge.properties file found in the classpath.

Options