|
|
Project Sections:
Home
| Specifications
| QA
| Development
| Database Drivers
Database drivers: PostgreSQL | Linux MDB | SQLite postgresql-sdbc-driverContent
IntroductionThe postgresql SDBC Driver allows to use the postgresql database from OpenOffice.org without any wrapper layer such as odbc or jdbc.The current version 0.7.5 can be considerded as good beta quality ( with some known issues and missing features). The driver is aimed at the 1.1 OpenOffice.org and OpenOffice.org 2.x versions, it does not work with OOo1.0.x trees. The final aim is to have an easier to use, faster, more feature rich database driver than the jdbc-odbc solution. The current version should already allow this in most places (though I actually have never compared them feature by feature). RequirementsInstall a postgresql server if you haven't one already. The current driver version was tested using postgresql-7.3.2. It does not work with postgresql 7.2.x server version. It should work with all other currently available including 8.x versions.Install OpenOffice.org 1.1 or OpenOffice.org 2.x (recommended). DownloadDownload the binary version of the driver. Follow below installation instructions
If your platform does not appear in the above list, you can build the driver from source. Installation with OOo 2.x
Installation with OOo 1.1.x
Supported and missing features
Using the driver via the APIYou may use the driver via the API directly by instantiatingorg.openoffice.comp.connectivity.pq.Driver
service. You can use the driver also from within a python process or with a standalone java/C++ program.
Building from sourceBuild in a OO1.1 environment (this is needed to keep up compatibility with OOo1.1). I have actually never checked, whether the driver builds in OOo2.0 env also.
Download the postgresql module from here, it
contains the makefiles to build postgresql client API. You must place the
postgresql-7.3.2 tarball into the
download directory. Build and deliver the Check out the connectivity project (e.g. cvs co -r OpenOffice_1_1_rc3 connectivity and then retrieve the postgresql driver code with this special tag OO_PQSDBC_x_y_z (where x,y,z are the major, minor, micro of the version you wish to build).
cvs update -d connectivity/source/drivers/postgresql
connectivity/workben/postgresql . Build connectivity/source/drivers/postgresql. You will then find a TestIn order to test your build, you need a running instance of postgresql database server and PyUNO. The test can be found in connectivity/workben/postgresql. The test syntax for the dmake command isdmake runtest
"dburl=sdbc:postgresql:dbname=pqtest" . You should create a fresh
database pqtest (or any other name) as the test also writes data and drops
tables.
(Note, when you have never used postgresql server before and just want to test your build, this short series of calls should give you an postgresql test-server [note, that this is not the suggested way to install a postgresql server, follow the postgresql instructions therefor]).
Reporting bugsPlease read through the known bugs section before reporting bugs. Create an issue and assign the issue to myself (jbu@openoffice.org).Questions should be raised in dev@dba.openoffice.org mailinglist. Please don't fire usage questions directly at myself.AuthorsThe driver has been implemented and is maintained by Joerg Budischewski (JoergBudi@gmx.de ) in my spare time. |


