1.1

Table Of Contents
Description
Specify one of these pairs of options to connect to a data source with this command:
Use both -client-bind-address and -client-port to connect to a SQLFire cluster as a thin client
and perform the command.
Use both mcast-port and -mcast-address, or use the -locators property to connect to a SQLFire
cluster as a peer client and perform the command.
Use both -url and -driver-class to connect to a datasource using a JDBC URL and driver. You can
use this option to connect to a data source other than SQLFire.
Examples
This command connects to a SQLFire network server running on localhost:1527, and writes the DTD to a le
named data.dtd:
sqlf write-data-dtd-to-file -file=data.dtd
This command connects to a SQLFire network server running on myserver:1234, and writes the DTD to a le
named data.dtd:
sqlf write-data-dtd-to-file -file=data.dtd -client-bind-address=myserver
-client-port=1234
This command connects as a peer client to a SQLFire system running on multicast port 1234, and writes the
DTD to a le named data.dtd:
sqlf write-data-dtd-to-file -file=data.dtd -mcast-port=1234
-extra-conn-props=host-data=false
This command uses MySQL Connector/J to connect to a MySQL server running on the "myserver" host, and
writes the DTD for the test database schema to a le name test.dtd:
sqlf write-data-dtd-to-file -file=test.dtd
-url=jdbc:mysql://myserver/test -driver-class=com.mysql.jdbc.Driver
sqlf write-data-to-db
Inserts data into a database using one or more data XML les (created with sqlf write-data-to-xml), and having
the database schema dened in one or more schema XML les (created with sqlf write-schema-to-xml). This
command is generally used with a SQLFire cluster to export table data, but it can also be used with other JDBC
datasources.
Syntax
To insert all table data from one or more data XML les using the schema specied in one or more schema XML
les, use the syntax:
sqlf write-data-to-db -files=<path,path,...> -schema-files=<path,path,...>
[-alter-identity-columns]
[-batch-size=<size>]
[-bind-address=<address>]
[-catalog-pattern=<pattern>]
[-client-bind-address=<address>]
[-client-port=<port>]
[-database-type=<db type>]
[-delimited-identifiers=<true | false>]
[-driver-class=<class name>]
[-ensure-fk-order=<true | false>]
401
sqlf Launcher Commands