PostgreSQLSocketAdapter
classin packageklyn.databases.sql.postgresql
public class PostgreSQLSocketAdapter
PostgreSQLSocketAdapter

Socket adapter for PostgreSQL communication.

Constructors
Modifier and Type Member Description
public PostgreSQLSocketAdapter No summary.
Methods
Modifier and Type Member Description
public close
close() as Void
Closes the socket.
public flush
flush() as Void throws SQLException
Flushes the socket.
public isSecure
isSecure() as Boolean
Returns true if using TLS.
public read
read(buffer as Byte[], offset as Int, length as Int) as Int throws SQLException
Reads bytes from the socket.
public upgradeToTLS
upgradeToTLS(host as String, port as Int, sslContext as SSLContext) as Void throws SQLException
Upgrades to TLS.
public write
write(buffer as Byte[], offset as Int, length as Int) as Void throws SQLException
Writes bytes to the socket.