Updated external content (Jenkins build 1157)
parent
c7684f63a8
commit
0328031f30
|
@ -20,7 +20,7 @@ The service uses an abstraction layer that theoretically allows it to support ma
|
|||
It will create one table named `historic_item` where all item states are stored.
|
||||
The item state is stored in a string representation.
|
||||
|
||||
The service currently supports MySQL, Apache Derby and PostgreSQL databases.
|
||||
The service currently supports Apache Derby, MariaDB, MySQL and PostgreSQL databases.
|
||||
Only the embedded Apache Derby database driver is included.
|
||||
Other drivers must be installed manually.
|
||||
(See below for more information on that.)
|
||||
|
@ -29,12 +29,13 @@ Other drivers must be installed manually.
|
|||
|
||||
This service can be configured in the file `services/jpa.cfg`.
|
||||
|
||||
| Property | Default | Required | Description |
|
||||
| -------- | ------- | :-------: | ------------------------------------------------------------ |
|
||||
| url | | Yes | JDBC connection URL. Examples:<br/><br/>`jdbc:postgresql://hab.local:5432/openhab`<br/>`jdbc:derby://hab.local:1527/openhab;create=true`<br/>`jdbc:mysql://localhost:3306/openhab` |
|
||||
| driver | | Yes | database driver. Examples:<br/><br/>`org.postgresql.Driver`<br/>`org.apache.derby.jdbc.ClientDriver`<br/>`com.mysql.jdbc.Driver`<br/></br>Only the Apache Derby driver is included with the service. Drivers for other databases must be installed manually. This is a trivial process. Normally JDBC database drivers are packaged as OSGi bundles and can just be dropped into the `addons` folder. This has the advantage that users can update their drivers as needed. The following database drivers are known to work:<br/><br/>`postgresql-9.4-1203-jdbc41.jar`<br/>`postgresql-9.4-1206-jdbc41.jar` |
|
||||
| user | | if needed | database user name for connection |
|
||||
| password | | if needed | database user password for connection |
|
||||
| Property | Default | Required | Description |
|
||||
| ------------ | ------- | :-------: | ------------------------------------------------------------ |
|
||||
| url | | Yes | JDBC connection URL. Examples:<br/><br/>`jdbc:derby://hab.local:1527/openhab;create=true`<br/>`jdbc:mariadb://localhost:3306/openhab`<br/>`jdbc:mysql://localhost:3306/openhab`<br/>`jdbc:postgresql://hab.local:5432/openhab` |
|
||||
| driver | | Yes | database driver. Examples:<br/><br/>`com.mysql.jdbc.Driver`<br/>`org.apache.derby.jdbc.ClientDriver``org.mariadb.jdbc.Driver`<br/><br/>`org.postgresql.Driver`<br/></br>Only the Apache Derby driver is included with the service. Drivers for other databases must be installed manually. This is a trivial process. Normally JDBC database drivers are packaged as OSGi bundles and can just be dropped into the `addons` folder. This has the advantage that users can update their drivers as needed. The following database drivers are known to work:<br/><br/>`postgresql-9.4-1203-jdbc41.jar`<br/>`postgresql-9.4-1206-jdbc41.jar` |
|
||||
| user | | if needed | database user name for connection |
|
||||
| password | | if needed | database user password for connection |
|
||||
| syncmappings | | if needed | The OpenJPA synchronize mappings configuration |
|
||||
|
||||
## Adding support for other JPA supported databases
|
||||
|
||||
|
|
Loading…
Reference in New Issue