docs: public static PgConnectOptions fromEnv() {
      PgConnectOptions pgConnectOptions = new PgConnectOptions();
  
      if (getenv("PGHOSTADDR") == null) {
        if (getenv("PGHOST") != null) {
          pgConnectOptions.setHost(getenv("PGHOST"));
        }
      } else {
        pgConnectOptions.setHost(getenv("PGHOSTADDR"));
      }
  
      if (getenv("PGPORT") != null) {
        try {
          pgConnectOptions.setPort(parseInt(getenv("PGPORT")));
        } catch (NumberFormatException e) {
          // port will be set to default
        }
      }
  
      if (getenv("PGDATABASE") != null) {
        pgConnectOptions.setDatabase(getenv("PGDATABASE"));
      }
      if (getenv("PGUSER") != null) {
        pgConnectOptions.setUser(getenv("PGUSER"));
      }
      if (getenv("PGPASSWORD") != null) {
        pgConnectOptions.setPassword(getenv("PGPASSWORD"));
      }
      if (getenv("PGSSLMODE") != null) {
        pgConnectOptions.setSslMode(SslMode.of(getenv("PGSSLMODE")));
      }
      return pgConnectOptions;
    }