Postgres

class Postgres(configuration: Postgres.Configuration) : ConnectionFactory<Database>

A ConnectionFactory for a PostgresSQL database.

Constructors

Link copied to clipboard
constructor(configuration: Postgres.Configuration)

Types

Link copied to clipboard
data class Configuration(val databaseName: String = "notifications_service", val username: String, val password: String, val host: String, val port: Int)

The configuration to connect to the PostgresSQL database.

Functions

Link copied to clipboard
open override fun connect(): Result<Database>