public class PostgreSQLDriver implements Driver:
PostgreSQL driver entry point for klyn.databases.sql.
import klyn.databases.sql.postgresql
# cnx = PostgreSQLDriver.connect("postgresql://localhost:5432/app", "app", "secret")| Modifier and Type | Member | Description |
|---|---|---|
| public readonly property | namename as String: |
Human-readable driver name. |
| Modifier and Type | Member | Description |
|---|---|---|
| public | PostgreSQLDriver | Creates the stateless PostgreSQL driver object. |
| Modifier and Type | Member | Description |
|---|---|---|
| public static | connectconnect(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 | openConnectionopenConnection(url as String, properties as Map<String, String> = null) as Connection throws SQLException: |
Opens a PostgreSQL connection from URL and connection properties. |
| public | supports | Returns true for PostgreSQL connection URLs. |