<?xml version="1.0"?>
<instances>
<!-- This instance maintains connections to a MySQL database -->
<instance id="mysqldb" port="" socket="/tmp/mysqldb.socket" dbase="mysql" connections="10">
<users>
<user user="mysqldbuser" password="mysqldbpassword"/>
</users>
<connections>
<connection string="user=mysqldbuser;password=mysqldbpassword;host=mysqldb;db=mysqldb;"/>
</connections>
</instance>
<!-- This instance maintains connections to a PostgreSQL database -->
<instance id="postgresqldb" port="" socket="/tmp/postgresqldb.socket" dbase="postgresql" connections="10">
<users>
<user user="postgresqldbuser" password="postgresqldbpassword"/>
</users>
<connections>
<connection string="user=postgresqldbuser;password=postgresqldbpassword;host=postgresqldb;db=postgresqldb;"/>
</connections>
</instance>
<!-- This instance sends queries containing "mysqldb." to the mysql
database and "postgresqldb." to the postgresql database -->
<instance id="router" dbase="router" connections="10">
<users>
<user user="routeruser" password="routerpassword"/>
</users>
<router>
<!-- send all mysqldb queries to "mysqldb" -->
<route host="" port="" socket="/tmp/mysqldb.socket" user="mysqldbuser" password="mysqldbpassword">
<query pattern="mysqldb\."/>
</route>
<!-- send all postgresqldb queries to "postgresqldb" -->
<route host="" port="" socket="/tmp/postgresqldb.socket" user="postgresqldbuser" password="postgresqldbpassword">
<query pattern="postgresqldb\."/>
</route>
</router>
</instance>
</instances>