UDT (User Defined Types) code generator for PGJDBC-NG
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
.gitignore
LICENSE
README.md
pom.xml

README.md

pgjdbc-ng-udt

UDT (User Defined Types) code generator for pgjdbc-ng.

http://impossibl.github.io/pgjdbc-ng

UDT Code Generation

Execute:

java -jar pgjdbc-ng-udt-{version}-complete.jar [options]

Options

  • -types List of types of which to generate code Required

  • -h (--host) Host of server connection. Defaults to localhost

  • -t (--port) Port of server connection. Defaults to 5432

  • -d, (--database) Database name. Required

  • -u (--user) Database user. Required

  • -p (--password) Database password. Required

  • -o (--out) Target output directory (package directories are appended). Defaults to current directory

  • -pkg (--package) Target Java package. Defaults to No Package

License

pgjdbc-ng is released under the 3 clause BSD license.

Building

The driver is built with maven. Simply build with:

mvn clean package

This will produce, in the target directory, two JAR files. One with dependencies packaged inside and another without.

Testing

The unit tests need a PostgreSQL database to execute against. The tests assume theses defaults:

SERVER:     localhost
PORT:       5432
DATABASE:   test
USERNAME:   pgjdbc
PASSWORD:   test

The following system properties are supported in order to customize the setup

pgjdbc.test.server
pgjdbc.test.port
pgjdbc.test.db
pgjdbc.test.user
pgjdbc.test.password

If you'd like to build the driver without running the unit tests use the command:

mvn clean package -DskipTests