def connect
import bend-kit-postgres@0.3.0.0/postgres.bend as Postgresimport Base
455# TCP, SSLRequest and TLS when cfg.tls (checking the certificate and host name), StartupMessage,
456# cleartext or SCRAM-SHA-256 authentication, then ReadyForQuery. MD5 is refused as Auth.
457def connect(+cfg: Config) -> IO(Result<&1, &1, Failure, Conn>):
458 connect.to(key(cfg), cfg)