class PG::Testing::Server

A server to test against: PG_TEST_URL's, or a cluster of ours.

src/testing.qz:49

Class methods

def self.new(url: String, dir: String?, bin: String) -> PG::Testing::Server

(Made by PG::Testing.start.)

src/testing.qz:59

Methods

def url -> String

A URL to connect to it, with its password.

src/testing.qz:62

def ours? -> Bool

Whether it is a cluster of ours (whose pg_hba.conf has the lines start was given), not PG_TEST_URL's server.

src/testing.qz:66

def socket_dir -> String?

The directory of its unix socket, for a cluster of ours.

src/testing.qz:69

def password -> String

The password in the URL.

src/testing.qz:72

def port -> Int

The port in the URL.

src/testing.qz:75

def stop -> Void

Stops a cluster of ours and removes its directory; nothing for PG_TEST_URL's.

src/testing.qz:79