PostgreSQLDriver
classin packageklyn.databases.sql.postgresql
public class PostgreSQLDriver implements Driver
PostgreSQLDriver
All Implemented Interfaces: Driver

PostgreSQL driver entry point for klyn.databases.sql.

import klyn.databases.sql.postgresql

# cnx = PostgreSQLDriver.connect("postgresql://localhost:5432/app", "app", "secret")
Properties
Modifier and Type Member Description
public readonly property name
name as String
Human-readable driver name.
Constructors
Modifier and Type Member Description
public PostgreSQLDriver Creates the stateless PostgreSQL driver object.
Methods
Modifier and Type Member Description
public static connect
connect(url as String, user as String = "", password as String = "", properties as Map<String, String> = null, sslContext as SSLContext = null) as PostgreSQLConnection throws Exception
Opens a PostgreSQL connection.
public openConnection
openConnection(url as String, properties as Map<String, String> = null) as Connection throws SQLException
Opens a PostgreSQL connection from URL and connection properties.
public supports
supports(url as String) as Boolean
Returns true for PostgreSQL connection URLs.