Class PostgresDatabase


public class PostgresDatabase extends ServerDatabase
A PostgreSQL server, over its wire protocol with no driver. See ServerDatabase.
  • Field Details

    • DEFAULT_PORT

      public static final int DEFAULT_PORT
      The port PostgreSQL listens on unless configured otherwise.
      See Also:
  • Constructor Details

    • PostgresDatabase

      public PostgresDatabase(String host, int port, String database, String user, String password) throws IOException
      Connects WITHOUT TLS (sslMode=disable): the password and the data cross the network unencrypted. Connecting, and each wait for the server, may take 30 seconds.
      Throws:
      IOException
    • PostgresDatabase

      public PostgresDatabase(String host, int port, String database, String user, String password, String sslMode, int timeoutMillis) throws IOException
      Connects and signs in; see ServerDatabase for sslMode.
      Throws:
      IOException