pgwire::pg_server

Function handle_connection

source
pub async fn handle_connection<S, SM>(
    stream: S,
    session_mgr: Arc<SM>,
    tls_config: Option<TlsConfig>,
    peer_addr: AddressRef,
    redact_sql_option_keywords: Option<RedactSqlOptionKeywordsRef>,
)
where S: AsyncWrite + AsyncRead + Unpin, SM: SessionManager,