This repository contains the source code of the examples and code demos included in some of the "PostgreSQL and Java" trainings that 8Kdata delivers.
Included in the java
directory are some maven-ized Java projects:
helloJDBC
: an iterative approach to JDBC, where a simple example is improved across several executable programs, adding better JDBC constructs and Java best-practiceshellojOOQ
: a simple project to show how to take back control of your SQL with jOOQhelloMyBatis
: a simple project to show how to use the MyBatis mapperhelloProcessBuilder
: connect to PostgreSQL via the stdinhelloPool
: a simple project to show how to use of connection pool with HikariCP and FlexyiPoolhelloPLJava
: call Java from inside of PostgreSQL via PL/Java
Included in the db
directory is an example database used by the projects in the java
folder. This database is derived from the PgFoundry Sample Databases world database.