Skip to main content

Module connection

Module connection 

Source
Expand description

Connection management

This module handles:

  • Transport abstraction (TCP vs Unix socket)
  • Connection lifecycle (startup, auth, query execution)
  • State machine enforcement
  • TLS configuration and support

Structs§

Connection
Postgres connection
ConnectionConfig
Connection configuration
ConnectionConfigBuilder
Builder for creating ConnectionConfig with advanced options
TlsConfig
TLS configuration for secure Postgres connections.

Enums§

ConnectionState
Connection state
Transport
Transport layer abstraction

Functions§

parse_server_name
Parse server name from hostname for TLS SNI (Server Name Indication).