User feedback has indicated that the DBConnectionInfo configuration element could use some documentation. DBConnectionInfo is particularly inscrutable, compared with other XML plan file elements, because it uses "constructor-arg"s that are referenced by index, instead of some type of descriptive property name. The user sees "<constructor-arg index="0"" and has no idea what that means. So I’ll detail the elements right here:
dbConnectionInfo.oracle.xml
<bean id="connectionInfo" class="org.diffkit.db.DKDBConnectionInfo"> <constructor-arg index="0" value="oracle" /><constructor-arg index="1" value="ORACLE" />
<constructor-arg index="2" value="XE" />
<constructor-arg index="3" value="10.0.1.11" />
<constructor-arg index="4" value="1521" />
<constructor-arg index="5" value="diffkit" />
<constructor-arg index="6" value="diffkit" />
</bean>
| Your name for this ConnectionInfo element. You can select an abitrary name, and it has no relationship with any real DB construct. This name is merely for presentation-- it will appear in the logs and some types of reports. | |
| The "Flavor" of connection. Can be any one of: H2, MYSQL, ORACLE, DB2, SQLSERVER, POSTGRES. These correspond to the constants in the Java enum org.diffkit.db.DKDBFlavor. | |
| The database name. This is what the vendor refers to as the database name. | |
| The hostname. Can also be an ip address. | |
| The port. | |
| The DB username you want to log in as. | |
| The DB password for username in 6. |
For Java programmers
DiffKit is configured using the "core" Spring framework. The above <bean></bean> XML element simply plugs the constructor-args into the longest Constructor of the org.diffkit.db.DKDBConnectionInfo class.