Skip to content

Class

PostgresConnection

A Postgres connection. Use it to run queries against a Postgres server.
final class PostgresConnection

Overview

Thread safety is achieved by dispatching all access to shared state onto the underlying EventLoop.

Topics

Structures

Instance Properties

  • closeFuture
  • eventLoop
    The underlying EventLoop of both the connection and its channel.
  • id
    The connection’s identifier. The identifier is passed to the connection factory method and must stay attached to the connection at all times. It must not change during the connection’s lifetime.
  • isClosed
  • logger
    A logger to use for background events.

Instance Methods

Type Aliases

Type Properties

  • defaultEventLoopGroup
    Returns the default EventLoopGroup singleton, automatically selecting the best for the platform.

Type Methods

Default Implementations

Relationships

Conforms To

  • PostgresDatabase
  • Swift.Copyable
  • Swift.Escapable
  • Swift.Sendable
  • Swift.SendableMetatype
  • _ConnectionPoolModule.PooledConnection

See Also

Essentials