1.0

Table Of Contents
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
Note: See also Export, Alter, and Import a Database Schema Using SQLF on page 90 for a full example
of migrating a third-party database to vFabric SQLFire.
This command connects to a SQLFire network server running on localhost:1527, and writes the table data to a
le named data.xml:
sqlf write-data-to-xml -file=data.xml
This command connects to a SQLFire network server running on myserver:1234, and writes the table data to a
le named data.xml:
sqlf write-data-to-xml -file=data.xml -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
table data to a le named data.xml:
sqlf write-data-to-xml -file=data.xml -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 table data from the test database schema to a le name data.xml:
sqlf write-data-to-xml -file=data.xml
-url=jdbc:mysql://myserver/test -driver-class=com.mysql.jdbc.Driver
sqlf write-schema-to-db
Creates a schema in a database by using the contents of a one or more schema XML les (see sqlf
write-schema-to-xml). This command is generally used with a SQLFire cluster to export the schema, but it can
also be used with other JDBC datasources.
page 508
Description on page 508
Examples on page 396
Syntax
To create a database schema from one or more schema XML les, use the syntax:
sqlf write-schema-to-db -files=<path,path,...>
[-alter-identity-columns]
[-bind-address=<address>]
[-catalog-pattern=<pattern>]
[-client-bind-address=<address>]
[-client-port=<port>]
[-database-type=<db type>]
[-delimited-identifiers=<true | false>]
[-do-drops]
[-driver-class=<class name>]
[-extra-conn-props=<properties>]
[-help] [-locators=<adresses>]
[-mcast-address=<address>]
[-mcast-port=<port>]
vFabric SQLFire User's Guide384
vFabric SQLFire Reference