diff --git a/bundles/persistence/org.openhab.persistence.sql.postgresql/.classpath b/bundles/persistence/org.openhab.persistence.sql.postgresql/.classpath new file mode 100644 index 00000000000..0591996a02b --- /dev/null +++ b/bundles/persistence/org.openhab.persistence.sql.postgresql/.classpath @@ -0,0 +1,7 @@ + + + + + + + diff --git a/bundles/persistence/org.openhab.persistence.sql.postgresql/.project b/bundles/persistence/org.openhab.persistence.sql.postgresql/.project new file mode 100644 index 00000000000..dec147ff3c0 --- /dev/null +++ b/bundles/persistence/org.openhab.persistence.sql.postgresql/.project @@ -0,0 +1,28 @@ + + + org.openhab.persistence.sql.postgresql + + + + + + org.eclipse.jdt.core.javabuilder + + + + + org.eclipse.pde.ManifestBuilder + + + + + org.eclipse.pde.SchemaBuilder + + + + + + org.eclipse.pde.PluginNature + org.eclipse.jdt.core.javanature + + diff --git a/bundles/persistence/org.openhab.persistence.sql.postgresql/.settings/org.eclipse.jdt.core.prefs b/bundles/persistence/org.openhab.persistence.sql.postgresql/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 00000000000..c537b63063c --- /dev/null +++ b/bundles/persistence/org.openhab.persistence.sql.postgresql/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,7 @@ +eclipse.preferences.version=1 +org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled +org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6 +org.eclipse.jdt.core.compiler.compliance=1.6 +org.eclipse.jdt.core.compiler.problem.assertIdentifier=error +org.eclipse.jdt.core.compiler.problem.enumIdentifier=error +org.eclipse.jdt.core.compiler.source=1.6 diff --git a/bundles/persistence/org.openhab.persistence.sql.postgresql/.settings/org.eclipse.pde.core.prefs b/bundles/persistence/org.openhab.persistence.sql.postgresql/.settings/org.eclipse.pde.core.prefs new file mode 100644 index 00000000000..f29e940a005 --- /dev/null +++ b/bundles/persistence/org.openhab.persistence.sql.postgresql/.settings/org.eclipse.pde.core.prefs @@ -0,0 +1,3 @@ +eclipse.preferences.version=1 +pluginProject.extensions=false +resolve.requirebundle=false diff --git a/bundles/persistence/org.openhab.persistence.sql.postgresql/META-INF/MANIFEST.MF b/bundles/persistence/org.openhab.persistence.sql.postgresql/META-INF/MANIFEST.MF new file mode 100644 index 00000000000..dc5019c0582 --- /dev/null +++ b/bundles/persistence/org.openhab.persistence.sql.postgresql/META-INF/MANIFEST.MF @@ -0,0 +1,9 @@ +Manifest-Version: 1.0 +Bundle-ManifestVersion: 2 +Bundle-Name: PostgreSQL Driver for openHAB SQL Persistence bundle +Bundle-SymbolicName: org.openhab.persistence.sql.postgresql +Bundle-Version: 1.4.0.qualifier +Fragment-Host: org.openhab.persistence.sql;bundle-version="1.1.0" +Bundle-RequiredExecutionEnvironment: JavaSE-1.6 +Bundle-ClassPath: lib/postgresql-9.2-1003.jdbc4.jar, + . diff --git a/bundles/persistence/org.openhab.persistence.sql.postgresql/build.properties b/bundles/persistence/org.openhab.persistence.sql.postgresql/build.properties new file mode 100644 index 00000000000..fe56e72a81e --- /dev/null +++ b/bundles/persistence/org.openhab.persistence.sql.postgresql/build.properties @@ -0,0 +1,4 @@ +output.. = target/classes/ +bin.includes = META-INF/,\ + .,\ + lib/postgresql-9.2-1003.jdbc4.jar diff --git a/bundles/persistence/org.openhab.persistence.sql.postgresql/lib/postgresql-9.2-1003.jdbc4.jar b/bundles/persistence/org.openhab.persistence.sql.postgresql/lib/postgresql-9.2-1003.jdbc4.jar new file mode 100644 index 00000000000..1e2dda9df9f Binary files /dev/null and b/bundles/persistence/org.openhab.persistence.sql.postgresql/lib/postgresql-9.2-1003.jdbc4.jar differ diff --git a/bundles/persistence/org.openhab.persistence.sql.postgresql/pom.xml b/bundles/persistence/org.openhab.persistence.sql.postgresql/pom.xml new file mode 100644 index 00000000000..6519b8478a8 --- /dev/null +++ b/bundles/persistence/org.openhab.persistence.sql.postgresql/pom.xml @@ -0,0 +1,22 @@ + + + + + org.openhab.bundles + persistence + 1.4.0-SNAPSHOT + + + + org.openhab.persistence.sql.postgresql + org.openhab.persistence.sql.postgresql + + + 4.0.0 + org.openhab.persistence + org.openhab.persistence.sql.postgresql + + openHAB SQL Persistence - PostgreSQL Driver + + eclipse-plugin + diff --git a/bundles/persistence/pom.xml b/bundles/persistence/pom.xml index e9eb37bbc70..a02a581c008 100644 --- a/bundles/persistence/pom.xml +++ b/bundles/persistence/pom.xml @@ -25,6 +25,7 @@ org.openhab.persistence.exec.test org.openhab.persistence.sql org.openhab.persistence.sql.mysql + org.openhab.persistence.sql.postgresql org.openhab.persistence.cosm org.openhab.persistence.gcal org.openhab.persistence.mqtt diff --git a/distribution/openhabhome/configurations/openhab_default.cfg b/distribution/openhabhome/configurations/openhab_default.cfg index b27339b27cf..e5c924bc155 100644 --- a/distribution/openhabhome/configurations/openhab_default.cfg +++ b/distribution/openhabhome/configurations/openhab_default.cfg @@ -225,7 +225,7 @@ logging:pattern=%date{ISO8601} - %-25logger: %msg%n ############################ SQL Persistence Service ################################## # -# the JDBC driver class like 'com.mysql.jdbc.Driver' +# the JDBC driver class like 'com.mysql.jdbc.Driver' or 'org.postgresql.Driver' #sql:driverClass= # the database url like 'jdbc:mysql://:/'