data PG::Lease
What a connection is made of, as a Shareable value: its socket and the
session's state, so that it can move to another task, which makes a
PG::Connection of it again (PG::Connection#release,
PG::Connection.adopt). PG::Pool keeps its idle connections so.
Methods
def with(*, io: IO = …, config: PG::Config = …, process_id: Int = …, secret: Bytes = …, parameters: Hash[String, String] = …, statements: PG::StatementCache::Snapshot = …, notifications: Array[PG::Notification] = …, channels: Set[String] = …, unsure: Bool = …) -> PG::Lease
A copy with the fields given replaced.
def to_h -> Hash[Symbol, Object]
The fields as a Hash, by name.
def io -> IO
def config -> PG::Config
def process_id -> Int
def secret -> Bytes
def parameters -> Hash[String, String]
def statements -> PG::StatementCache::Snapshot
def notifications -> Array[PG::Notification]
The notifications received and not yet taken, and the channels
listened to (PG::Connection#listen).
def channels -> Set[String]
def unsure -> Bool
Whether a LISTEN may be in force that channels does not show.