Autodiscovery Driver for Scriptella.
Automatically discovers a driver based on the specified url.
Note:
Autodiscovery serves for convenience purposes and works only with JDBC drivers and URL schemes supported by Scriptella,
in other cases driver's name has to be specified manually.
General information
Driver class: | scriptella.driver.auto.Driver |
Driver alias name: | auto |
URL: | Specific to an underlying driver |
Runtime dependencies: | Depends on an underlying driver. |
Example
<!-- connection to a SQL Server database via JTDS driver-->
<connection driver="auto" url="jdbc:jtds:sqlserver://localhost:1433/northwind"/>
<!-- connection to a JNDI bound datasource -->
<connection driver="auto" url="jndi:ds/appDataSource"/>
<!-- connection to a Spring managed datasource -->
<connection driver="auto" url="spring:myDataSource"/>
<!-- connection to Mail driver-->
<connection driver="auto" url="mailto:user@host?subject=Hello">
mail.smtp.host=mail.host.name
mail.user=user
mail.password=password
</connection>
|